PluginApplication
PluginApplication copied to clipboard
学习Android插件化必备demo
2020-03-05 13:01:14.454 22678-22678/com.ctrip.pluginapplication E/AndroidRuntime: FATAL EXCEPTION: main Process: com.ctrip.pluginapplication, PID: 22678 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ctrip.pluginapplication/com.ctrip.pluginapplication.ProxyActivity}: java.lang.ClassCastException: com.ctrip.pluginapplication.MainActivity cannot be cast to com.ctrip.standard.AppInterface at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3318) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3429) at android.app.ActivityThread.-wrap12(Unknown...
` java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ctrip.pluginapplication/com.ctrip.pluginapplication.ProxyActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2193) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2243) at android.app.ActivityThread.access$800(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5019) 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:779) at...
1、首先将 thirdpartapplication打包输出为apk,copy到手机根目录:plugin_test/plugin.apk 2、权限管理里面打开PluginApplication的存储权限
请问Module中有WebView如何实现插件化呢?
这项目下下来运行就直接崩溃,运行thirdpartyapplication也崩溃,不知道是怎么地。还是我哪里操作有问题,麻烦大神指教~