Skip to content

Instantly share code, notes, and snippets.

@ftabashir
Last active December 13, 2017 06:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ftabashir/956f41bcc683a0b1f4993120e3b731eb to your computer and use it in GitHub Desktop.
Save ftabashir/956f41bcc683a0b1f4993120e3b731eb to your computer and use it in GitHub Desktop.
common problems during release build variant in android
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