\build\intermediates\res\ resources-anzhi-debug-ap_ ‘specified for property ‘resourceFile’ does not exist, so I found a lot of information on the web.
Some say that the version of SDK is lower than the version of ADT. It is suggested to upgrade the SDK version. Some say that an option of the Android Studio setting is removed.
Finally on the net or found a solution to the code, now record.
In fact, we only need to modify the build.gradle code
BuildTypes {
release {
does not display the LOG/* * * */confused
/* * * */
/minifyEnabled false Zipalign optimization * * * */
zipAlignEnabled true
Remove useless resource files/* * * */
shrinkResources true
proguardFiles getDefaultProguardFile (‘ proguard – android. TXT), ‘proguard – rules. Pro’
}
The debug {
minifyEnabled false shrinkResources false
proguardFiles getDefaultProguardFile (‘ proguard – android. TXT), ‘proguard – rules. Pro’
}}
ShrinkResources = false Release ShrinkResources = false Interested can go to the Internet to check the reason.
The Android packaging problem is solved.
It’s as simple as that.
Read More:
- The solution of “failed to load il2cpp” in Android package launched by unity
- The solution of package main extensions undefined package struts default
- Android studio compilation error: style attribute ‘@ android:attr/windowEnterAnimation ‘not found the ultimate solution
- How to Solve Unity Package Android Project Error
- Android studio change package name
- Error: package android.support.annotation Does not exist
- 26、Error:No resource identifier found for attribute ’roundIcon’ in package ‘android’
- Android studio reported an error in the release package: Lint found fatal errors while assembling a release target
- AndroidStudio Android Unknown failure: Can’t find service: package
- Idea Maven project uses package to package and report error (package does not exist)
- Error: Error parsing D:\new_android\Android SDK\system-images\android-25\android-wear\armeabi-v7a\de
- [unity] Android package error java.lang.ClassNotFoundException Did not find class com.unity3d . player.MainActivity
- Solution of fileuriexposedexception for Android 7.0 behavior change
- Android Studio | Failed to find target with hash string ‘android-26’ in: D:\Android\sdk
- Android license status unknown solution
- No artifacts package solution for idea to configure Tomcat
- Dpkg: error processing package XXX solution
- How to select the jar package version for Maven package when the jar package versions referenced by multiple modules are inconsistent
- Unity Android packaging error “UnityEditor.BuildPlayerWindow+BuildMethodException” solution record
- Android compilation error unresolved reference: kotlinx solution