Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android targetSdkVersion=30,ndk arm64-v8a。启动必崩 #90

Open
songmingwen opened this issue Dec 30, 2021 · 0 comments
Open

Android targetSdkVersion=30,ndk arm64-v8a。启动必崩 #90

songmingwen opened this issue Dec 30, 2021 · 0 comments

Comments

@songmingwen
Copy link

Android targetSdkVersion=30
ndk {
abiFilters "armeabi-v7a","arm64-v8a"
}
ndk 加上 arm64-v8a 后启动必然崩溃。

有两种解决方案:
1、targetSdkVersion 降低到 27。
2、删除 ndk 中 arm64-v8a 配置项。
日志如下:
作者看看是啥问题。

2021-12-30 15:12:18.383 1019-1019/? E/com.song.sunse: Unknown bits set in runtime_flags: 0x8000
2021-12-30 15:12:18.424 1019-1019/? E/RefClass: java.lang.reflect.InvocationTargetException
2021-12-30 15:12:19.480 1019-1019/com.song.sunset E/LoadedApk: Unable to instantiate appComponentFactory
java.lang.ClassNotFoundException: Didn't find class "com.song.sunset.song" on path: DexPathList[[zip file "/data/app/com.song.sunset-ycopE9KBo9zJget2gkd2DA==/base.apk"],nativeLibraryDirectories=[/data/app/com.song.sunset-ycopE9KBo9zJget2gkd2DA==/lib/arm64, /data/app/com.song.sunset-ycopE9KBo9zJget2gkd2DA==/base.apk!/lib/arm64-v8a, /system/lib64, /system/product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.LoadedApk.createAppFactory(LoadedApk.java:273)
at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:933)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:1028)
at android.app.LoadedApk.getResources(LoadedApk.java:1279)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2566)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2558)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6776)
at android.app.ActivityThread.access$1600(ActivityThread.java:252)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2083)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:238)
at android.app.ActivityThread.main(ActivityThread.java:7878)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:512)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028)
2021-12-30 15:12:19.597 1019-1019/com.song.sunset E/MLInitializerProvider: MLInitializerProvider Done
2021-12-30 15:12:19.644 1019-1019/com.song.sunset A/libc: Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7c699ab0f0 in tid 1019 (com.song.sunset), pid 1019 (com.song.sunset)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant