houkx / android-pluginmgr

apk plug apkplug apk load
1.58k stars 545 forks source link

插件工程 线程问题Can't create handler inside thread that has not called Looper.prepare() #32

Open astro5206771 opened 7 years ago

astro5206771 commented 7 years ago

异常信息如下: W/System.err(1585): java.lang.RuntimeException: Unable to create Application for com.XX.android.XX: Can't create handler inside thread that has not called Looper.prepare() 貌似是插件项目功能里需要在主线程里调用,而pluginmgr是新启动一个工作线程调用,如果在主线程中调动pluginmrg不会阻塞吗?这个该怎么解决;