I have an App written with react-native and it's worked wonderfully previously but when I install RN async-storage. I don't change anything in the native Android code
I got an error when running the app.
I'm trying to remove it and rebuild my app BUT the issue is still I don't know why!
I'd tried to run these command
rm -rf node_modules
npm install
then
cd android && gradlew clean
and it's building successfully without any error
but after running react-native run-android
I got
What went wrong: Execution failed for task ':app:transformDexArchiveWithDexMergerForDebug'. com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: The number of method references in a .dex file cannot exceed 64K. Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html
So how can I solve it?