\build\intermediates\res\resources-anzhi-debug-stripped.ap_' specified for property 'resourceFile' does not exist

后端 未结 8 934
攒了一身酷
攒了一身酷 2020-12-01 05:05

I updated Android Studio to version 2.0. The build failed and also takes longer than Android Studio version 1.5 to build. Every time I run my application, I clean and reload

相关标签:
8条回答
  • 2020-12-01 05:46

    Probably you are shrinking the resources while avoiding minifying:

    minifyEnabled false
    shrinkResources true
    

    If you want to shrink the resources, you have to enable minifying:

    minifyEnabled true
    shrinkResources true
    

    Older versions of Build Tools were ignoring this issue, but it started throwing compilation issues on Build Tools 2.2.3

    More information here: https://developer.android.com/studio/build/shrink-code.html#shrink-resources

    0 讨论(0)
  • 2020-12-01 05:47

    As suggested by @Bartek-lipinski's post, I have confirmed on my own project that downgrading Gradle plugin to v2.1.3 will solve this problem of getting "InvalidUserDataException: File specified for property does not exist."

    I have filed a bug with the Android tools bugtracker website, please upvote to get some more visibility on the problem.

    0 讨论(0)
提交回复
热议问题