Last active
December 13, 2017 06:18
-
-
Save ftabashir/956f41bcc683a0b1f4993120e3b731eb to your computer and use it in GitHub Desktop.
common problems during release build variant in android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROBLEM: Could not find tools.jar. Please check that C:\Program Files\Java\Jre8" is a valid JDK install | |
SOLUTION: I just added a gradle.properties file with the following content: | |
org.gradle.java.home=C:\\Program Files\\Java\\jdk1.8.0_45 | |
PROBLEM: 'build\intermediates\res\resources-release-stripped.ap_' specified for property 'resourceFile' does not exist | |
SOLUTION: shrinkResources works only if there is minifyEnabled set to true | |
PROBLEM: Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease' | |
SOLUTION: When you use ProGuard you have to always resolve all warnings. check proguard rules of your dependencies. | |
PROBLEM: Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol __isnanf referenced by libsupportjni.so | |
java.lang.ExceptionInInitializerError: at android.app.Application.<init>(Application.java:15) | |
SOLUTION: Run -> Edit Configurations -> Profiling -> **uncheck** "Enable advanced profiling" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment