求助啊 发现com.android.tools.build:gradle3.0后打包的apk不能运行在OPPO R15上 64位?

05-22 12:07:37.181 975-1332/? E/LightsService: Light requested not available on this device. 2

05-22 12:07:37.347 17298-17298/? E/AndroidRuntime: FATAL EXCEPTION: main

    Process: com.gonghui.myapplication, PID: 17298

    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.gonghui.myapplication/com.gonghui.myapplication.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.gonghui.myapplication.MainActivity" on path: DexPathList[[zip file "/data/app/com.gonghui.myapplication-wl25MeVzKyyQ3tJ_KS62lA==/base.apk"],nativeLibraryDirectories=[/data/app/com.gonghui.myapplication-wl25MeVzKyyQ3tJ_KS62lA==/lib/arm64, /system/lib64, /vendor/lib64]]

        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2901)

        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3078)

        at android.app.ActivityThread.-wrap11(Unknown Source:0)

        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)

        at android.os.Handler.dispatchMessage(Handler.java:106)

        at android.os.Looper.loop(Looper.java:183)

        at android.app.ActivityThread.main(ActivityThread.java:7014)

        at java.lang.reflect.Method.invoke(Native Method)

        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:514)

        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888)

    Caused by: java.lang.ClassNotFoundException: Didn't find class "com.gonghui.myapplication.MainActivity" on path: DexPathList[[zip file "/data/app/com.gonghui.myapplication-wl25MeVzKyyQ3tJ_KS62lA==/base.apk"],nativeLibraryDirectories=[/data/app/com.gonghui.myapplication-wl25MeVzKyyQ3tJ_KS62lA==/lib/arm64, /system/lib64, /vendor/lib64]]

        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)

        at android.app.Instrumentation.newActivity(Instrumentation.java:1174)

        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2891)

        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3078) 

        at android.app.ActivityThread.-wrap11(Unknown Source:0) 

        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) 

        at android.os.Handler.dispatchMessage(Handler.java:106) 

        at android.os.Looper.loop(Looper.java:183) 

        at android.app.ActivityThread.main(ActivityThread.java:7014) 

        at java.lang.reflect.Method.invoke(Native Method) 

        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:514) 

        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888) 

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容