Android studio2.2 各种坑

1.androidstudio nd Error:Execution failed for task ':app:clean'. > Unable to delete directory

这个是由于少了删除的权限,在gradle加上

task clean(type: Delete) {
    delete rootProject.buildDir
}
2.Warning:The `android.dexOptions.incremental` property is deprecated and it has no effect on the build process.

项目build.gradle 中删除下面配置 ,新的貌似不需要dex配置了!

我注释掉就好了

//    dexOptions {
//        jumboMode = true//忽略方法数限制的检查
//        incremental true
//        javaMaxHeapSize "4g"
//    }

猜你喜欢

转载自blog.csdn.net/u014369799/article/details/52956354