I do proguard for PublicSuffixDatabase, but still got java.lang.IllegalStateException: Unable to load publicsuffixes.gz resource from the classpath.
See original GitHub issueI do proguard for PublicSuffixDatabase, but still got java.lang.IllegalStateException: Unable to load publicsuffixes.gz resource from the classpath. this is my proguard cfg:
#okhttp3
-dontwarn okhttp3.**
-dontwarn okio.**
-dontwarn javax.annotation.**
-keep class okhttp3.internal.publicsuffix.PublicSuffixDatabase
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
is there any other reason to cause this exception? eg: load fail?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Crash analysis: Unable to load publicsuffixes.gz resource from ...
java.lang.IllegalStateException: Unable to load publicsuffixes.gz resource from the classpath. The investigation was inconclusive at the time, but found the ...
Read more >Strange error with GLIDE while loading image on production ...
E/vw: Glide failed to load image with exception: UNABLE TO LOAD PUBLICSUFFIXES.GZ RESOURCE FROM THE CLASSPATH. java.lang.IllegalStateException: ...
Read more >ProGuard Manual: Troubleshooting - Guardsquare
Troubleshooting for building Java and Android apps with ProGuard. ... For example, if ProGuard complains that it can't find a java.lang class, you...
Read more >ProGuard - Xamarin - Microsoft Learn
Xamarin.Android ProGuard is a Java class file shrinker, optimizer, and pre-verifier. It detects and removes unused code, analyzes and optimizes ...
Read more >ProGuard Troubleshooting
can't be mapped to ... Error: You have to specify '-keep' options; Error: Expecting class path separator ';' before 'Files\Java\...' ( ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Encountered the same problem and resolved it by rebuild project.
Typically this means you’ve stripped OkHttp’s
okhttp3/internal/publicsuffix/publicsuffixes.gz
resource from your.jar
file. If you can make sure that file is inside your okhttp.jar file, you’re good.