Android proguard issue: path may not be null or empty string. path='null'

前端 未结 3 1843
独厮守ぢ
独厮守ぢ 2021-02-14 01:59

Every thing work fine before setting

minifyEnabled true

and

shrinkResources true

Afte

相关标签:
3条回答
  • 2021-02-14 02:33

    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!!

    0 讨论(0)
  • 2021-02-14 02:55

    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.

    0 讨论(0)
  • 2021-02-14 02:56

    Upgrade:

            classpath 'com.android.tools.build:gradle:4.0.0'
    
    0 讨论(0)
提交回复
热议问题