android - Error when releasing APK with AsyncTask and Jsoup -


i'm getting error:

03-04 09:55:55.915: w/dalvikvm(20171): exception ljava/lang/nullpointerexception; thrown while initializing la/a/b/k; 03-04 09:55:55.915: w/dalvikvm(20171): exception ljava/lang/exceptionininitializererror; thrown while initializing la/a/b/l; 03-04 09:55:55.925: w/dalvikvm(20171): threadid=13: thread exiting uncaught exception (group=0x40ab3300) 03-04 09:55:55.945: e/androidruntime(20171): fatal exception: asynctask #1 03-04 09:55:55.945: e/androidruntime(20171): java.lang.runtimeexception: error occured while executing doinbackground() 03-04 09:55:55.945: e/androidruntime(20171):    @ android.os.asynctask$3.done(asynctask.java:299) 03-04 09:55:55.945: e/androidruntime(20171):    @ java.util.concurrent.futuretask$sync.innersetexception(futuretask.java:273) 03-04 09:55:55.945: e/androidruntime(20171):    @ java.util.concurrent.futuretask.setexception(futuretask.java:124) 03-04 09:55:55.945: e/androidruntime(20171):    @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:307) 03-04 09:55:55.945: e/androidruntime(20171):    @ java.util.concurrent.futuretask.run(futuretask.java:137) 03-04 09:55:55.945: e/androidruntime(20171):    @ android.os.asynctask$serialexecutor$1.run(asynctask.java:230) 03-04 09:55:55.945: e/androidruntime(20171):    @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1076) 03-04 09:55:55.945: e/androidruntime(20171):    @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:569) 03-04 09:55:55.945: e/androidruntime(20171):    @ java.lang.thread.run(thread.java:856) 03-04 09:55:55.945: e/androidruntime(20171): caused by: java.lang.exceptionininitializererror 03-04 09:55:55.945: e/androidruntime(20171):    @ a.a.b.f.<init>(unknown source) 03-04 09:55:55.945: e/androidruntime(20171):    @ a.a.b.e.<init>(unknown source) 03-04 09:55:55.945: e/androidruntime(20171):    @ a.a.c.dh.b(unknown source) 03-04 09:55:55.945: e/androidruntime(20171):    @ a.a.c.dh.a(unknown source) 03-04 09:55:55.945: e/androidruntime(20171):    @ a.a.c.b.a(unknown source) 03-04 09:55:55.945: e/androidruntime(20171):    @ a.a.c.ad.a(unknown source) 03-04 09:55:55.945: e/androidruntime(20171):    @ a.a.a.a(unknown source) 03-04 09:55:55.945: e/androidruntime(20171):    @ com.taco.bezoekerspasparkeren.c.a(unknown source) 03-04 09:55:55.945: e/androidruntime(20171):    @ com.taco.bezoekerspasparkeren.c.doinbackground(unknown source) 03-04 09:55:55.945: e/androidruntime(20171):    @ android.os.asynctask$2.call(asynctask.java:287) 03-04 09:55:55.945: e/androidruntime(20171):    @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:305) 03-04 09:55:55.945: e/androidruntime(20171):    ... 5 more 03-04 09:55:55.945: e/androidruntime(20171): caused by: java.lang.exceptionininitializererror 03-04 09:55:55.945: e/androidruntime(20171):    @ a.a.b.l.<clinit>(unknown source) 03-04 09:55:55.945: e/androidruntime(20171):    ... 16 more 03-04 09:55:55.945: e/androidruntime(20171): caused by: java.lang.nullpointerexception 03-04 09:55:55.945: e/androidruntime(20171):    @ java.util.properties.load(properties.java:246) 03-04 09:55:55.945: e/androidruntime(20171):    @ a.a.b.k.d(unknown source) 03-04 09:55:55.945: e/androidruntime(20171):    @ a.a.b.k.<clinit>(unknown source) 03-04 09:55:55.945: e/androidruntime(20171):    ... 17 more 03-04 09:55:55.995: w/activitymanager(265):   force finishing activity com.taco.bezoekerspasparkeren/.bezoekerspasactivity 

with piece of code:

class subscribe extends asynctask<string, void, result> {          @override         protected result doinbackground(string... s) {             // ...              document test = jsoup.parse("<html></html>"); // explodes here         } } 

this in release mode. i'm using jsoup 1.7.2. wrong? , how can see errors collapsed in "... 17 more" since guess clue lies there...

this same question error using asynctask when running release apk... please :( unanswered.

this 1 cracking me!

it indeed obfuscation problem proguard (which logical if problem exists in release-mode only), had add following proguard file:

-keep public class org.jsoup.** {     public *; } 

Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -