Every thing work fine before setting
minifyEnabled true
and
shrinkResources true
Afte
Okay got the solution. Just replace your hard codded signing config:
release {
storeFile file('/home/rishabh/Documents/dekhoJks/release.jks')
storePassword "XXXXXXX"
keyAlias "XXXXXXXX"
keyPassword "XXXXXXXXX"
}
and instead of that create separate signing.properties file :
STORE_FILE=/home/XXX/XXX/XXX
STORE_PASSWORD=XXXXXX
KEY_ALIAS=XXXXXXXX
KEY_PASSWORD=XXXXXXXXX
and use in your gradle. Hope it helps!!
Two solutions
Use the following classpath. (I was getting this error when i was using the version 2.3.2.)
classpath 'com.android.tools.build:gradle:2.2.2'
Disable the split apk option for a temporary fix if you can't change the classpath version.
Upgrade:
classpath 'com.android.tools.build:gradle:4.0.0'