Comments (3)
记录错误日志
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.
仔细看log。。
Caused by: java.lang.SecurityException: WifiService: Neither user 10049 nor current process has android.permission.CHANGE_WIFI_MULTICAST_STATE.
from android-plugin-framework.
谢谢,谢谢!是我最近的疏忽,忘记把权限配置加入到demo中。。。。。
from android-plugin-framework.
Related Issues (20)
- 启动直接崩溃问题 HOT 1
- 宿主调用独立插件的Fragment报ClassCastException
- com.google.android.gms不是插件包名
- 如何预加载 HOT 1
- Windows环境下使用的若干问题反馈 HOT 1
- HostInfo.prop文件丢失,请检查此路径:E:\AndroidProject\plugindemo\app\build\outputs\baselinePatch\HostInfo.prop
- 一直提示没有配置application id HOT 6
- 这个支付谷歌和facebook吗?
- 宿主app 不能开启 minifyEnabled true 混淆
- 能用来启动uiautomator2单元测试项目吗
- 插件apk 是否可以打包证书jks,保持插件自己的包名和签名?不同于宿主包名和签名? HOT 1
- 支持androidx吗 HOT 2
- studio4.0.1版本下,androidx 在SDK初始化报错 HOT 2
- 独立apk 安装完毕, 打开不了 HOT 4
- 有没有办法让宿主和插件用同一个applicationID HOT 1
- 请更新支持 Android 12
- 插件无法使用显示在应用上层特性 HOT 3
- 成功安装之后,查询列表也可以顺利得到安装包名,但是无法打开 HOT 1
- 能否过 Google Play 市场?
- 为什么集成不了?也没有Demo吗? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-plugin-framework.