ReactNativeUtil icon indicating copy to clipboard operation
ReactNativeUtil copied to clipboard

Dex: Error converting bytecode to dex: Cause: com.android.dex.DexIndexOverflowException: Cannot merge new index 65947 into a non-jumbo instruction!

Open wuyunqiang opened this issue 7 years ago • 0 comments

android 方法数超过64K 解决方法: 1:app/build.gradle

compile'com.android.support:multidex:1.0.0'

2:

 defaultConfig {
        multiDexEnabled true
    }

3:在application里面

  @Override
  protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
  }

will be ok.

wuyunqiang avatar Nov 28 '17 03:11 wuyunqiang