question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I do proguard for PublicSuffixDatabase, but still got java.lang.IllegalStateException: Unable to load publicsuffixes.gz resource from the classpath.

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
changyujiangcommented, Sep 6, 2018

Encountered the same problem and resolved it by rebuild project.

2reactions
swankjessecommented, Feb 18, 2018

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.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found