After upgrading target sdk version to 29, there are so many crashes on android 10:
backtrace:
#00 pc 0000000000082fb4 /apex/com.android.runtime/lib64/bionic/libc.so (abort+160)
#01 pc 00000000004b4888 /apex/com.android.runtime/lib64/libart.so (art::Runtime::Abort(char const*)+2268)
#02 pc 000000000000c5b4 /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+608)
#03 pc 0000000000442f8c /apex/com.android.runtime/lib64/libart.so (art::OatHeader::GetCompilerFilter() const+280)
#04 pc 000000000044a884 /apex/com.android.runtime/lib64/libart.so (art::OatFile::GetCompilerFilter() const+40)
#05 pc 0000000000455d38 /apex/com.android.runtime/lib64/libart.so (art::OatFileManager::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+376)
#06 pc 00000000004c1d78 /apex/com.android.runtime/lib64/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+104)
#07 pc 00000000004d5ad8 /apex/com.android.runtime/lib64/libart.so (art::SignalCatcher::HandleSigQuit()+1356)
#08 pc 00000000004d4b6c /apex/com.android.runtime/lib64/libart.so (art::SignalCatcher::Run(void*)+252)
#09 pc 00000000000e205c /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
#10 pc 0000000000084af0 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
build.gradle is following
implementation 'com.android.installreferrer:installreferrer:2.1'
implementation "com.google.android.gms:play-services-base:17.4.0"
implementation "com.google.android.gms:play-services-gcm:17.0.0"
implementation "com.google.android.gms:play-services-ads:19.3.0"
implementation "com.google.android.gms:play-services-auth:18.1.0"
implementation "com.google.android.gms:play-services-location:17.0.0"
implementation "com.google.firebase:firebase-core:17.5.0"
implementation "com.google.firebase:firebase-messaging:20.2.4"
implementation "com.google.firebase:firebase-config:19.2.0"
implementation 'com.google.firebase:firebase-auth:19.3.2'
implementation 'com.google.firebase:firebase-crashlytics:17.2.1'
implementation "com.facebook.android:facebook-login:5.15.3"
implementation "com.facebook.android:facebook-messenger:5.15.3"
implementation 'com.facebook.android:audience-network-sdk:5.8.0'
Anyone seeing similar issues knows what's going on?
Force Stop the App When an app is acting up, the best thing to do is to Force Stop it. Go to Settings. Click on Apps and Notifications. Click on Show All Apps or Manage Apps. Choose the specific app that keeps crashing. Force the app by tapping Force Stop. Relaunch the app, and it’ll work just fine.
All the crashes are happening only in Android 10 devices. Apart from these, there is no other info.
Some Android users opt to downgrade their Android version as a solution to this problem. Well, this is not an option for most Android users who are not techies. Here are a few other ways you can stop apps from crashing on Android 10.
When you build your app with the targetSdkVersion set to 29, there are specific platform changes you should be aware of. Some of these changes, which are described on the Android 10 behavior changes page, can significantly affect your app's behavior or cause crashes — even if you do not yet use new APIs.
Update audience-network-sdk to version 6.1.0 can fixed the bug. Tested with some devices on firmware 10
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With