DroidPlugin icon indicating copy to clipboard operation
DroidPlugin copied to clipboard

com.example.ApiTestcom.example.ApiTest.MyActivity

Open mosentest opened this issue 3 years ago • 11 comments

Unable to instantiate activity ComponentInfo{com.example.ApiTest/com.example.ApiTestcom.example.ApiTest.MyActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.ApiTestcom.example.ApiTest.MyActivity" on path: DexPathList[[zip file "/data/user/0/com.example.TestPlugin/Plugin/com.example.ApiTest/apk/base-1.apk"],nativeLibraryDirectories=[/data/user/0/com.example.TestPlugin/Plugin/com.example.ApiTest/lib, /system/lib64, /vendor/lib64]]

mosentest avatar Jul 30 '20 05:07 mosentest

Gradle Terrence803 2019/12/14 19:09 1c55e364 给这个大爷改出bug出来,没测试好,就提pr?还给合上去??

mosentest avatar Jul 30 '20 06:07 mosentest

if (name != null && name.startsWith(".")) { name = info.activityInfo.packageName + info.activityInfo.name; }

mosentest avatar Jul 30 '20 06:07 mosentest

                if (targetComponentName != null && targetComponentName.getClassName().startsWith("")) {
                    targetIntent.setClassName(targetComponentName.getPackageName(), targetComponentName.getPackageName() + targetComponentName.getClassName());
                }

mosentest avatar Jul 30 '20 06:07 mosentest

                if (targetComponentName != null && targetComponentName.getClassName().startsWith(".")) {
                    targetIntent.setClassName(targetComponentName.getPackageName(), targetComponentName.getPackageName() + targetComponentName.getClassName());
                }

mosentest avatar Jul 30 '20 06:07 mosentest

多谢老哥,我翻车了这么多天,才看到你这里。非常感谢!

z16388 avatar Aug 19 '20 06:08 z16388

哈哈,我也是被坑了一星期,以为自己使用的姿势不对。后来对比提交发现了bug。

XuchengJie avatar Aug 28 '20 01:08 XuchengJie

太坑了,简直浪费时间

qweenhool avatar Aug 28 '20 03:08 qweenhool

https://github.com/moz1q1/DroidPlugin 用我的吧,我已经pr给作者,但是他没合并,我已经适配9.0和10.设备,给个start

mosentest avatar Aug 28 '20 03:08 mosentest

https://github.com/moz1q1/DroidPlugin 用我的吧,我已经pr给作者,但是他没合并,我已经适配9.0和10.设备,给个start

请问能兼容带so的apk做插件吗,这个怎么做

z16388 avatar Aug 28 '20 03:08 z16388

能正常吧,我具体没测过,可以加我qq来交流

mosentest avatar Aug 28 '20 03:08 mosentest

https://github.com/moz1q1/DroidPlugin 用我的吧,我已经pr给作者,但是他没合并,我已经适配9.0和10.设备,给个start

能正常吧,我具体没测过,可以加我qq来交流

加个qq交流下

weithink avatar Apr 06 '21 06:04 weithink