简体   繁体   中英

React native app crashing on android 12+ on emulator

I am currently working on building a music app Wavelet . Here's my dependencies: package.json

I usually debug on an Android 11 emulator, but when using an Android 12 emulator and my physical device on Android 12L it crashes.

I was able to pick this log from my physical device.

Go into build.gradle and find dependencies

Look for androidx.work:work-runtime-ktx...

Add or update it to:

// fix for crash API 31
implementation "androidx.work:work-runtime-ktx:2.7.0"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM