实施自定义库时应用崩溃

时间:2019-06-15 09:22:54

标签: android crash java-native-interface

我正在将我的应用程序代码库转换为库(例如myappsdk)。我已将代码制作到库模块中。当我创建一个使用库模块(myappsdk)和的新模块(例如myappmodule)时,当我尝试运行该应用程序时,它崩溃了。我在此处附上了日志消息。新模块

2019-06-15 14:37:00.943 29742-29742/? A/zygote: jni_internal.cc:625] JNI FatalError called: (PACKAGE_NAME) frameworks/base/core/jni/com_android_internal_os_Zygote.cpp:683: Failed to mkdirat on /mnt/runtime/write/0E17-0D06/Android/data/PACKAGE_NAME: Read-only file system
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602] Runtime aborting...
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602] Dumping all threads without appropriate locks held: thread list lock
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602] All threads:
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602] DALVIK THREADS (1):
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602] "main" prio=5 tid=1 Runnable
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602]   | group="" sCount=0 dsCount=0 flags=0 obj=0x723d7868 self=0xe9934e00
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602]   | sysTid=1601 nice=0 cgrp=default sched=0/0 handle=0xe9fd1dc8
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602]   | state=? schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602]   | stack=0xff22c000-0xff22e000 stackSize=8192KB
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602]   | held mutexes= "abort lock" "mutator lock"(shared held)
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602]   kernel: (couldn't read /proc/self/task/1601/stack)
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602]   native: (backtrace::Unwind failed for thread 1601: Thread doesn't exist)
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602]   at com.android.internal.os.Zygote.nativeForkAndSpecialize(Native method)
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602]   at com.android.internal.os.Zygote.forkAndSpecialize(Zygote.java:244)
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602]   at com.android.internal.os.ZygoteConnection.processOneCommand(ZygoteConnection.java:260)
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602]   at com.android.internal.os.ZygoteServer.runSelectLoop(ZygoteServer.java:449)
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602]   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:849)
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602] 
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602] Aborting thread:
2019-06-15 14:37:00.996 29742-29742/? A/zygote: runtime.cc:602] "main" prio=5 tid=1 Runnable
2019-06-15 14:37:00.997 29742-29742/? A/zygote: runtime.cc:602]   | group="" sCount=0 dsCount=0 flags=0 obj=0x723d7868 self=0xe9934e00
2019-06-15 14:37:00.997 29742-29742/? A/zygote: runtime.cc:602]   | sysTid=1601 nice=0 cgrp=default sched=0/0 handle=0xe9fd1dc8
2019-06-15 14:37:00.997 29742-29742/? A/zygote: runtime.cc:602]   | state=? schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100
2019-06-15 14:37:00.997 29742-29742/? A/zygote: runtime.cc:602]   | stack=0xff22c000-0xff22e000 stackSize=8192KB
2019-06-15 14:37:00.997 29742-29742/? A/zygote: runtime.cc:602]   | held mutexes= "abort lock" "mutator lock"(shared held)
2019-06-15 14:37:00.997 29742-29742/? A/zygote: runtime.cc:602]   kernel: (couldn't read /proc/self/task/1601/stack)
2019-06-15 14:37:00.997 29742-29742/? A/zygote: runtime.cc:602]   native: (backtrace::Unwind failed for thread 1601: Thread doesn't exist)
2019-06-15 14:37:00.997 29742-29742/? A/zygote: runtime.cc:602]   at com.android.internal.os.Zygote.nativeForkAndSpecialize(Native method)
2019-06-15 14:37:00.997 29742-29742/? A/zygote: runtime.cc:602]   at com.android.internal.os.Zygote.forkAndSpecialize(Zygote.java:244)
2019-06-15 14:37:00.997 29742-29742/? A/zygote: runtime.cc:602]   at com.android.internal.os.ZygoteConnection.processOneCommand(ZygoteConnection.java:260)
2019-06-15 14:37:00.997 29742-29742/? A/zygote: runtime.cc:602]   at com.android.internal.os.ZygoteServer.runSelectLoop(ZygoteServer.java:449)
2019-06-15 14:37:00.997 29742-29742/? A/zygote: runtime.cc:602]   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:849)
2019-06-15 14:37:00.997 29742-29742/? A/zygote: runtime.cc:602] 

    --------- beginning of crash
2019-06-15 14:37:00.997 29742-29742/? A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 29742 (main), pid 29742 (main)
2019-06-15 14:37:01.008 29749-29749/? E/libc: capset failed: Operation not permitted
2019-06-15 14:37:01.008 29749-29749/? E/libc: failed to raise ambient capability 0: Operation not permitted
2019-06-15 14:37:01.008 29749-29749/? E/libc: failed to raise ambient capability 1: Operation not permitted
2019-06-15 14:37:01.008 29749-29749/? E/libc: failed to raise ambient capability 2: Operation not permitted
2019-06-15 14:37:01.008 29749-297

0 个答案:

没有答案