错误原因:App里面方法数超过64K
解决方法:
在android/app/build.gradle中添加
implementation 'com.android.support:multidex:1.0.3'
1

defaultConfig中添加

multiDexEnabled true
1

android中添加

dexOptions {
jumboMode true
javaMaxHeapSize "4g"
}
1
2
3
4

————————————————
版权声明:本文为CSDN博主「张瑞东」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_42368597/article/details/112002279

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
  • 2022-12-23
  • 2021-05-07
  • 2022-12-23
猜你喜欢
  • 2021-06-12
  • 2021-08-26
  • 2021-05-23
  • 2022-12-23
  • 2021-11-02
  • 2022-01-29
  • 2021-12-25
相关资源
相似解决方案