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