android sdk Oppo A83 问题反馈

sdk
android
标签: #<Tag:0x00007fb83bcc7c48> #<Tag:0x00007fb83bcc7950>

(李炜) #1

极光Android sdk 开发工程师您好:

目前我集成sdk会有一个找不到so文件的错误
个人使用jcenter 方式集成

从官方下载的demo 中也会有如下问题
我尝试过 gradle 文件中添加多个 cpu 支持型号,并且 gradle.properties 文件中也添加 android.useDeprecatedNdk=true

测试机型:oppo a83 系统版本 7.1.1
机型 cpu信息:

A83:/ $ cat /proc/cpuinfo                                                                                                                                                                                                                                             
Processor       : AArch64 Processor rev 4 (aarch64)
processor       : 0
model name      : AArch64 Processor rev 4 (aarch64)
BogoMIPS        : 26.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4
    java.lang.RuntimeException: Unable to instantiate application com.example.jpushdemo.ExampleApplication: java.lang.ClassNotFoundException: Didn't find class "com.example.jpushdemo.ExampleApplication" on path: DexPathList[[zip file "/data/app/com.laso.lasogene-1/base.apk"],nativeLibraryDirectories=[/data/app/com.laso.lasogene-1/lib/arm64, /system/fake-libs64, /data/app/com.laso.lasogene-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
        at android.app.LoadedApk.makeApplication(LoadedApk.java:862)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5903)
        at android.app.ActivityThread.-wrap2(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1784)
        at android.os.Handler.dispatchMessage(Handler.java:110)
        at android.os.Looper.loop(Looper.java:232)
        at android.app.ActivityThread.main(ActivityThread.java:6802)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1103)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.jpushdemo.ExampleApplication" on path: DexPathList[[zip file "/data/app/com.laso.lasogene-1/base.apk"],nativeLibraryDirectories=[/data/app/com.laso.lasogene-1/lib/arm64, /system/fake-libs64, /data/app/com.laso.lasogene-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at android.app.Instrumentation.newApplication(Instrumentation.java:992)
        at android.app.LoadedApk.makeApplication(LoadedApk.java:856)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5903) 
        at android.app.ActivityThread.-wrap2(ActivityThread.java) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1784) 
        at android.os.Handler.dispatchMessage(Handler.java:110) 
        at android.os.Looper.loop(Looper.java:232) 
        at android.app.ActivityThread.main(ActivityThread.java:6802) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1103) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964) 
2018-08-10 20:13:24.756 21371-21378/? E/art: Failed sending reply to debugger: Broken pipe
2018-08-10 20:13:24.818 21371-21371/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.laso.lasogene, PID: 21371
    java.lang.RuntimeException: Unable to instantiate application com.example.jpushdemo.ExampleApplication: java.lang.ClassNotFoundException: Didn't find class "com.example.jpushdemo.ExampleApplication" on path: DexPathList[[zip file "/data/app/com.laso.lasogene-1/base.apk"],nativeLibraryDirectories=[/data/app/com.laso.lasogene-1/lib/arm64, /system/fake-libs64, /data/app/com.laso.lasogene-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
        at android.app.LoadedApk.makeApplication(LoadedApk.java:862)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5903)
        at android.app.ActivityThread.-wrap2(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1784)
        at android.os.Handler.dispatchMessage(Handler.java:110)
        at android.os.Looper.loop(Looper.java:232)
        at android.app.ActivityThread.main(ActivityThread.java:6802)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1103)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.jpushdemo.ExampleApplication" on path: DexPathList[[zip file "/data/app/com.laso.lasogene-1/base.apk"],nativeLibraryDirectories=[/data/app/com.laso.lasogene-1/lib/arm64, /system/fake-libs64, /data/app/com.laso.lasogene-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at android.app.Instrumentation.newApplication(Instrumentation.java:992)
        at android.app.LoadedApk.makeApplication(LoadedApk.java:856)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5903) 
        at android.app.ActivityThread.-wrap2(ActivityThread.java) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1784) 
        at android.os.Handler.dispatchMessage(Handler.java:110) 
        at android.os.Looper.loop(Looper.java:232) 
        at android.app.ActivityThread.main(ActivityThread.java:6802) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1103) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)

#2

阅读本文

SDK 版本多少?

你是否将你的应用置于了手机系统应用?


(李炜) #3

这是在贵公司下载的JPushExample(1020202) 文件。 启动 同样出现 找不到 so 错误

测试机型是Oppo A83 机型 cpu 为 image


(李炜) #4

这是所提示的错误信息


(李炜) #5

对了,忘记说了。在其他手机上 执行是没有问题的。只有在oppoA83 中会出现启动不了的情况。删除极光相关的代码是可以正常启动的


#6

该报错是找不到 application 类,网上搜索
https://blog.csdn.net/zhaoqi2617/article/details/79130207
https://blog.csdn.net/hjq2013/article/details/78363964


(李炜) #7

感谢 :pray:,解决了我的问题。