bastengao / react-native-usb-serialport-for-android

MIT License
13 stars 28 forks source link

Targeting S+ version 31 requires FLAG_IMMUTABLE Error Solved #5

Closed MelihaDuman closed 1 year ago

MelihaDuman commented 1 year ago

This issue: Getting Error while running in Android 12 #4 solved Build gradle file added android>app>build.gradle In that file this line added implementation ("androidx.work:work-runtime:2.7.0")

In UsbSerialportForAndroidModule.java file FLAG_IMMUTABLE added

bastengao commented 1 year ago

Why move android files to android/app?

MelihaDuman commented 1 year ago

Thanks for your fast reply! second build.gradle is in the same file with src/main so I wanted to clarified the places and levels of files.

MelihaDuman commented 1 year ago

Now I understood what is wrong what I did. Sorry for the confusion and thank you for your time and work.