didi / VirtualAPK

A powerful and lightweight plugin framework for Android
Apache License 2.0
8.98k stars 1.52k forks source link

virtualapk启动插件时父类的方法可以调用,但是activity的方法没有反应(gradle:3.5.4版本) #379

Open nadyboy opened 4 years ago

nadyboy commented 4 years ago

自己对plugin模块做了一个gradle:3.5.4版本的升级,资源文件的问题修改好了后可以正常打出插件的apk包。但是在调用的时候自己的activity的方面没有任何反应

nadyboy commented 4 years ago

W/ResourceType: Invalid package identifier when getting bag for resource number 0x00000000 W/ActivityManager: startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { cmp=“主程序包名”/com.didi.virtualapk.core.C$1 (has extras) D/AppCompatDelegate: Exception while getting ActivityInfo android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{“主程序包名”/“模块包名”.TestActivity2}