Android Studio3.0打包APK的时候 报错:

Error:Execution failed for task ':app:transformDexWithDexForRelease'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;

 

解决: 
App的build.gradle的defaultConfig配置 multiDexEnabled true

    defaultConfig {
         ...
        multiDexEnabled true
    }
posted @ 2018-01-06 15:42  小白look世界  阅读(997)  评论(0编辑  收藏  举报