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"
//    }

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章