\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:
- Change API level Android studio
- Android studio reported an error in the release package: Lint found fatal errors while assembling a release target
- Solve the problem of permission after flutter package_ Handler failure
- Commandinvocationfailure: failed to build APK problem record
- Solution: unity package failed. Commandinvocationfailure: gradle build failed
- The solution of “failed to load il2cpp” in Android package launched by unity
- Flutter – iOS: Command /bin/sh failed with exit code 255
- Unity package encountered an error report about gradle build failed
- Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: … has no certificates at entry AndroidManifest.xml]
- How to Fix com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
- How to Fix Android Error:This Gradle plugin requires Studio 3.0 minimum
- How to Fix Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
- package.json And package- clock.json The difference between
- Unity package APK exception failed to re package resources
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- Unity Android packaging error “UnityEditor.BuildPlayerWindow+BuildMethodException” solution record
- Android studio disable install run
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
- Android Error | Failed to find target with hash string ”android-23′ in…
- Using Mocha to test can not find module ‘. /build/release/scrypt’ (Fixed)