Skip to content

Instantly share code, notes, and snippets.

@ftabashir
ftabashir / Android_Release_Problems
Last active December 13, 2017 06:18
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'
@ftabashir
ftabashir / Git_SSL_Certificate_Error.txt
Last active August 30, 2017 06:49
this is a how to solve for this git problem: fatal: unable to access 'https://domain.com/path/to/git': SSL certificate problem: unable to get local issuer certificate. REFERENCE: to see original post visit here: https://stackoverflow.com/questions/11621768/how-can-i-make-git-accept-a-self-signed-certificate/26785963#26785963
SSL Certificate error:
- To permanently accept a specific certificate
1. Initial clone
- GIT_SSL_CAINFO=/path/to/cert.pem git clone https://repo.or.cz/org-mode.git
2. Ensure all future interactions with origin remote also work
- cd my-repo-directory
- git config http.sslCAInfo /etc/ssl/certs/rorcz_root_cert.pem
- To disable TLS/SSL verification for a single git command
git -c http.sslVerify=false clone https://domain.com/path/to/git
- To disable SSL verification for that singular repository