Android JSOUP ExceptionInInitializerError

后端 未结 4 1842
清酒与你
清酒与你 2021-02-15 23:53

I updated my dex classes with amigo library (it\'s changing one apk for another apk with the same key and signature, all is working except JSOUP)

Error:

相关标签:
4条回答
  • 2021-02-16 00:11

    I saw something similar and my solution is in proguard

    -keep class org.jsoup.**
    
    0 讨论(0)
  • 2021-02-16 00:19

    Update the library, use this one :

    implementation 'org.jsoup:jsoup:1.13.1'

    Your problem will be resolved...

    0 讨论(0)
  • 2021-02-16 00:33

    in my case, my problem is solved by turning minifyEnabled to false in the app's build.gradle, this will keep all classes in the final release apk.

    android {
    ....
        buildTypes {
    ...
            release {
                minifyEnabled false
    
            }
        }
    }
    
    0 讨论(0)
  • 2021-02-16 00:37

    add Jsoup library in libs folder and add -keep class org.jsoup.** in your proguard-rules.pro file.

    Then it will work.

    0 讨论(0)
提交回复
热议问题