Git Product home page Git Product logo

Comments (3)

jisuz avatar jisuz commented on August 18, 2024

记录错误日志
java.lang.RuntimeException: Unable to create service %org.fourthline.cling.android.AndroidUpnpServiceImpl: java.lang.reflect.UndeclaredThrowableException
at com.limpoxe.fairy.core.PluginShadowService.callServiceOnCreate(PluginShadowService.java:74)
at com.limpoxe.fairy.core.PluginShadowService.onCreate(PluginShadowService.java:34)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2702)
at android.app.ActivityThread.access$2100(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1348)
at com.limpoxe.fairy.core.PluginAppTrace.handleMessage(PluginAppTrace.java:40)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5314)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.UndeclaredThrowableException
at $Proxy9.acquireMulticastLock(Native Method)
at android.net.wifi.WifiManager$MulticastLock.acquire(WifiManager.java:2077)
at org.fourthline.cling.android.AndroidRouter.setWiFiMulticastLock(AndroidRouter.java:171)
at org.fourthline.cling.android.AndroidRouter.enable(AndroidRouter.java:95)
at org.fourthline.cling.UpnpServiceImpl.(UpnpServiceImpl.java:87)
at org.fourthline.cling.android.AndroidUpnpServiceImpl$1.(AndroidUpnpServiceImpl.java:54)
at org.fourthline.cling.android.AndroidUpnpServiceImpl.onCreate(AndroidUpnpServiceImpl.java:54)
at com.limpoxe.fairy.core.PluginShadowService.callServiceOnCreate(PluginShadowService.java:70)
at com.limpoxe.fairy.core.PluginShadowService.onCreate(PluginShadowService.java:34) 
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2702) 
at android.app.ActivityThread.access$2100(ActivityThread.java:139) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1348) 
at com.limpoxe.fairy.core.PluginAppTrace.handleMessage(PluginAppTrace.java:40) 
at android.os.Handler.dispatchMessage(Handler.java:98) 
at android.os.Looper.loop(Looper.java:136) 
at android.app.ActivityThread.main(ActivityThread.java:5314) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680) 
at dalvik.system.NativeStart.main(Native Method) 
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.limpoxe.fairy.core.proxy.MethodHandler.invoke(MethodHandler.java:37)
at $Proxy9.acquireMulticastLock(Native Method) 
at android.net.wifi.WifiManager$MulticastLock.acquire(WifiManager.java:2077) 
at org.fourthline.cling.android.AndroidRouter.setWiFiMulticastLock(AndroidRouter.java:171) 
at org.fourthline.cling.android.AndroidRouter.enable(AndroidRouter.java:95) 
at org.fourthline.cling.UpnpServiceImpl.(UpnpServiceImpl.java:87) 
at org.fourthline.cling.android.AndroidUpnpServiceImpl$1.(AndroidUpnpServiceImpl.java:54) 
at org.fourthline.cling.android.AndroidUpnpServiceImpl.onCreate(AndroidUpnpServiceImpl.java:54) 
at com.limpoxe.fairy.core.PluginShadowService.callServiceOnCreate(PluginShadowService.java:70) 
at com.limpoxe.fairy.core.PluginShadowService.onCreate(PluginShadowService.java:34) 
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2702) 
at android.app.ActivityThread.access$2100(ActivityThread.java:139) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1348) 
at com.limpoxe.fairy.core.PluginAppTrace.handleMessage(PluginAppTrace.java:40) 
at android.os.Handler.dispatchMessage(Handler.java:98) 
at android.os.Looper.loop(Looper.java:136) 
at android.app.ActivityThread.main(ActivityThread.java:5314) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680) 
at dalvik.system.NativeStart.main(Native Method) 
Caused by: java.lang.SecurityException: WifiService: Neither user 10049 nor current process has android.permission.CHANGE_WIFI_MULTICAST_STATE.
at android.os.Parcel.readException(Parcel.java:1468)
at android.os.Parcel.readException(Parcel.java:1422)
at android.net.wifi.IWifiManager$Stub$Proxy.acquireMulticastLock(IWifiManager.java:1133)
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.limpoxe.fairy.core.proxy.MethodHandler.invoke(MethodHandler.java:37) 
at $Proxy9.acquireMulticastLock(Native Method) 
at android.net.wifi.WifiManager$MulticastLock.acquire(WifiManager.java:2077) 
at org.fourthline.cling.android.AndroidRouter.setWiFiMulticastLock(AndroidRouter.java:171) 
at org.fourthline.cling.android.AndroidRouter.enable(AndroidRouter.java:95) 
at org.fourthline.cling.UpnpServiceImpl.(UpnpServiceImpl.java:87) 
at org.fourthline.cling.android.AndroidUpnpServiceImpl$1.(AndroidUpnpServiceImpl.java:54) 
at org.fourthline.cling.android.AndroidUpnpServiceImpl.onCreate(AndroidUpnpServiceImpl.java:54) 
at com.limpoxe.fairy.core.PluginShadowService.callServiceOnCreate(PluginShadowService.java:70) 
at com.limpoxe.fairy.core.PluginShadowService.onCreate(PluginShadowService.java:34) 
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2702) 
at android.app.ActivityThread.access$2100(ActivityThread.java:139) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1348) 
at com.limpoxe.fairy.core.PluginAppTrace.handleMessage(PluginAppTrace.java:40) 
at android.os.Handler.dispatchMessage(Handler.java:98) 
at android.os.Looper.loop(Looper.java:136) 
at android.app.ActivityThread.main(ActivityThread.java:5314) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680) 
at dalvik.system.NativeStart.main(Native Method) 

from android-plugin-framework.

limpoxe avatar limpoxe commented on August 18, 2024

@jisuz

仔细看log。。

Caused by: java.lang.SecurityException: WifiService: Neither user 10049 nor current process has android.permission.CHANGE_WIFI_MULTICAST_STATE.

from android-plugin-framework.

jisuz avatar jisuz commented on August 18, 2024

谢谢,谢谢!是我最近的疏忽,忘记把权限配置加入到demo中。。。。。

from android-plugin-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.