android Build apk Error: Build-in class shrinker and multidex are not supported yet.

我的解决方案 添加

shrinkResources false  调试和发布 buildTypes:

buildTypes {

debug {

//minifyEnabled false

shrinkResources false

//useProguard false

proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt','proguard-user.txt'

jniDebuggable true

}

release {

minifyEnabled false

shrinkResources false

//useProguard true

proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt','proguard-user.txt'

signingConfig signingConfigs.release

}

}

在 AndroidManifest.xml 添加 

android:name="android.support.multidex.MultiDexApplication" to the application

你可能感兴趣的:(android Build apk Error: Build-in class shrinker and multidex are not supported yet.)