native crashes for android 8.0 devices tgkill

我的未来我决定 提交于 2021-02-07 19:22:02

问题


I am getting native crashes for android 8.0 devices.The crashes only occur on Devices running Android 8+. I found a lot native crash in "Android Vitals - ANRs & crashes". I can not reproduce these issue. Devices (all with Android 8.0): Galaxy S7 edge (hero2lte)
Galaxy S7 (herolte) Galaxy S8 (dreamlte)
Galaxy A5(2017) (a5y17lte) Galaxy Note8 (greatlte)

### 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)  

回答1:


Setting the minifyEnabled to false in android/app/build.gradle fixed it for me.

It only crashes when the app is downloaded from Google Play while in Debug mode works fine.



来源:https://stackoverflow.com/questions/51611722/native-crashes-for-android-8-0-devices-tgkill

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!