I have App written with react-native and it's work very fine previously but when I install RN async-storage .
(我有用react-native编写的App,以前运行很好, 但是当我安装RN async-storage时 。)
I don't change anything in native android code (我不更改本地android代码中的任何内容)
I got an error when running the app.
(运行该应用程序时出现错误。)
I'm trying to remove it and rebuild my app BUT the issue still I don't know why!
(我正在尝试删除它并重建我的应用程序,但问题仍然是我不知道为什么!)
I'm 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 run react-native run-android
(但是在运行react-native run-android
)
I got
(我有)
What went wrong: Execution failed for task ':app:transformDexArchiveWithDexMergerForDebug'.
(出了什么问题:任务':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. (com.android.build.api.transform.TransformException:java.lang.RuntimeException:java.lang.RuntimeException:com.android.builder.dexing.DexArchiveMergerException:合并dex归档时出错:.dex文件中方法引用的数量不能超过64K。)
Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html (在https://developer.android.com/tools/building/multidex.html上了解如何解决此问题。)
So how can I solve it?
(那么我该如何解决呢?)
ask by Oliver D translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…