android Build apk Error: Build

2019-03-20  本文已影响0人  八年_44da

我的解决方案 添加

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

上一篇 下一篇

猜你喜欢

热点阅读