红米3s,Android6.0,miui10无法launch插件,在模拟器中是没有问题的。
shijiacheng opened this issue · 0 comments
10-06 16:03:38.236 16570-16570/com.shijc.neptunedemo:plugin1 E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.shijc.neptunedemo:plugin1, PID: 16570
java.lang.RuntimeException: Unable to start service org.qiyi.pluginlibrary.component.ServiceProxy1@49e1dff with Intent { act=org.qiyi.plugin.library.START_PLUGIN cmp=com.shijc.neptunedemo/org.qiyi.pluginlibrary.component.ServiceProxy1 (has extras) }: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3108)
at android.app.ActivityThread.access$2400(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1496)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5601)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:774)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)
Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
at android.app.ContextImpl.startActivity(ContextImpl.java:682)
at android.app.ContextImpl.startActivity(ContextImpl.java:669)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:341)
at org.qiyi.pluginlibrary.runtime.PluginManager.doRealLaunch(PluginManager.java:729)
at org.qiyi.pluginlibrary.runtime.PluginManager.readyToStartSpecifyPlugin(PluginManager.java:625)
at org.qiyi.pluginlibrary.runtime.PluginManager.launchPlugin(PluginManager.java:485)
at org.qiyi.pluginlibrary.runtime.PluginManager.launchPlugin(PluginManager.java:422)
at org.qiyi.pluginlibrary.component.ServiceProxy1.onStartCommand(ServiceProxy1.java:227)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3088)
at android.app.ActivityThread.access$2400(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1496)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5601)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:774)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)