android - Android 8.0 设备的 native 崩溃 tgkill

标签 android crash native

我遇到了 android 8.0 设备的 native 崩溃。只有崩溃 发生在运行 Android 8+ 的设备上。 我在“Android Vitals - ANRs & crashes”中发现了很多 native 崩溃。 我无法重现这些问题。 设备(全部采用 Android 8.0): 盖乐世 S7 edge (hero2lte)
盖乐世 S7 (herolte) 盖乐世 S8 (dreamlte)
盖乐世 A5(2017) (a5y17lte) Galaxy Note8(伟大的)

### Crash log  ###
#00  pc 000000000004b3ac  /system/lib/libc.so (tgkill+12)
#01  pc 000000000001a473  /system/lib/libc.so (abort+54)
#02  pc 000000000033a8bb  /system/lib/libart.so 
(_ZN3art7Runtime5AbortEPKc+370)
#03  pc 000000000033aeb3  /system/lib/libart.so 
(_ZN3art7Runtime7AborterEPKc+10)
#04  pc 00000000003f3419  /system/lib/libart.so 
(_ZN7android4base10LogMessageD1Ev+456)
#05  pc 0000000000171b07  /system/lib/libart.so 
(_ZN3art2gc9collector17ConcurrentCopying17PushOntoMarkStackEPNS_
6mirror6ObjectE+574)
#06  pc 00000000001762a5  /system/lib/libart.so 
(_ZN3art2gc9collector17ConcurrentCopying4CopyEPNS_
6mirror6ObjectES5_NS_12MemberOffsetE+2524)
#07  pc 00000000000a9ea3  /system/lib/libart.so 
(_ZN3art11ReadBarrier4MarkEPNS_6mirror6ObjectE+610)
#08  pc 00000000002dbfc7  /system/lib/libart.so 
(_ZN3artL9Field_getEP7_JNIEnvP8_jobjectS3_+694)
#09  pc 0000000000250fa5  /system/framework/arm/boot.oat 
(java.lang.Class.getDeclaredConstructorInternal [DEDUPED]+92)
#10  pc 000000000000297b  /dev/ashmem/dalvik-jit-code-cache (deleted)  

最佳答案

android/app/build.gradle 中将 minifyEnabled 设置为 false 为我修复了它。

只有在 Debug模式下从 Google Play 下载应用时才会崩溃。

关于android - Android 8.0 设备的 native 崩溃 tgkill,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51611722/

相关文章:

android - Android中刷新按钮的动画

IOS启动时发生未知崩溃,没有崩溃日志,没有报告,我该如何捕获它?

xcode - Xcode 5.0在10.9崩溃

android - 是否可以编辑/修改.SO文件?

java - "private static Class clazz = SnappyDecompressor.class"源文件中的 clazz 用于什么?

android - Xperia 在模拟器上播放皮肤

java - 从数据列表中查找项目在 RecyclerView 中的位置

scala - Scala 是否足以用于 native 、系统和内核编程?

android - 扩展 FragmentActivity 而不是 Activity

android - 切换 Activity 会导致Android应用崩溃