今天刚更新了Android Studio 2.2,重新编译项目时就出现了以下问题:
 
Error:A problem was found 
with the 
configuration of task ':app:packageDebug'.
> 
File xxx specified 
for property 'resourceFile' does 
not exist.
 12
 12 
 在Stack Overflow查了下,有人说是开启了Instant Run,关闭即可;又有人说是设置了shrinkResources,只需将其设为false。试了下,只需要将shrinkResources改为false即可,开启Instant Run也不会报错,但依旧第一次运行时白屏…(TㅅT)
 
buildTypes {
    debug {
        
        zipAlignEnabled 
true
        
        shrinkResources 
false
        
        minifyEnabled 
false
        
        proguardFiles getDefaultProguardFile(
'proguard-android.txt'), 
'proguard-rules.pro'
    }
    release {
        
        zipAlignEnabled 
true
        
        shrinkResources 
true
        
        minifyEnabled 
true
        
        proguardFiles getDefaultProguardFile(
'proguard-android.txt'), 
'proguard-rules.pro'
    }
}
                
        
    
                    转载请注明原文地址: https://ju.6miu.com/read-1000287.html