luojilab / DDComponentForAndroid

一套完整有效的android组件化方案,支持组件的组件完全隔离、单独调试、集成调试、组件交互、UI跳转、动态加载卸载等功能
MIT License
3.34k stars 570 forks source link

切换组件运行,会出现ClassNotFoundException,clean之后再运行就ok #56

Closed gaoneng102 closed 6 years ago

gaoneng102 commented 6 years ago

java.lang.RuntimeException: Unable to instantiate application com.mrzhang.share.runalone.application.ShareApplication: java.lang.ClassNotFoundException: Didn't find class "com.mrzhang.share.runalone.application.ShareApplication" on path: DexPathList[[zip file "/data/app/com.mrzhang.share-1/base.apk"],nativeLibraryDirectories=[/data/app/com.mrzhang.share-1/lib/arm, /vendor/lib, /system/lib]]

mqzhangw commented 6 years ago

切换组件,你的意思是之前单独运行reader,切换成单独运行reader吗?

gaoneng102 commented 6 years ago

@mqzhangw 之前组件reader单独运行,然后切换到share组件单独运行,就出现上面的问题

mqzhangw commented 6 years ago

嗯,这估计有概率出问题,因为as会缓存上次运行的数据,这个我看后面怎么在切换后强制clean。目前使用时,先手动clean一下在运行吧

lilipu1 commented 6 years ago

我也是出现了这个问题,百分之百出现

mqzhangw commented 6 years ago

切换组件后记得clean

wangqingnan commented 6 years ago

我也出现了这个问题,clean了之后还是没用