proguard problem after updating to android gradle plugin 3.5

后端 未结 2 1384
有刺的猬
有刺的猬 2021-01-18 01:10

I save the json presentation of some objects as cache in my app. I had no problem after updating each release of the app and json objects was corre

2条回答
  •  旧时难觅i
    2021-01-18 01:38

    I should exclude cached objects from obfuscating but temporarily I disabled R8 and enabled proguard, by adding this line to gradle.properties file:

    android.enableR8=false
    

    And adding this line to app build.gradle file:

    useProguard true
    minifyEnabled true
    

    And the problem solved.

提交回复
热议问题