0
錯誤只發生在使用發佈apk時 這是一個與清單xml文件的權限問題嗎?我也使用Jsoup。 我有附着在下面的日誌部分:錯誤使用AsyncTask只有當運行發佈apk ...請幫助:(
10-16 19:21:09.109: E/AndroidRuntime(9237): FATAL EXCEPTION: AsyncTask #1
10-16 19:21:09.109: E/AndroidRuntime(9237): java.lang.RuntimeException: An error occured while executing doInBackground()
10-16 19:21:09.109: E/AndroidRuntime(9237): at android.os.AsyncTask$3.done(AsyncTask.java:278)
10-16 19:21:09.109: E/AndroidRuntime(9237): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
10-16 19:21:09.109: E/AndroidRuntime(9237): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
10-16 19:21:09.109: E/AndroidRuntime(9237): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
10-16 19:21:09.109: E/AndroidRuntime(9237): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
10-16 19:21:09.109: E/AndroidRuntime(9237): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
10-16 19:21:09.109: E/AndroidRuntime(9237): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
10-16 19:21:09.109: E/AndroidRuntime(9237): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
10-16 19:21:09.109: E/AndroidRuntime(9237): at java.lang.Thread.run(Thread.java:856)
10-16 19:21:09.109: E/AndroidRuntime(9237): Caused by: java.lang.ExceptionInInitializerError
10-16 19:21:09.109: E/AndroidRuntime(9237): at a.a.b.f.<init>(Unknown Source)
10-16 19:21:09.109: E/AndroidRuntime(9237): at a.a.b.e.<init>(Unknown Source)
10-16 19:21:09.109: E/AndroidRuntime(9237): at a.a.c.dh.b(Unknown Source)
10-16 19:21:09.109: E/AndroidRuntime(9237): at a.a.c.dh.a(Unknown Source)
10-16 19:21:09.109: E/AndroidRuntime(9237): at a.a.c.b.a(Unknown Source)
10-16 19:21:09.109: E/AndroidRuntime(9237): at a.a.c.ad.a(Unknown Source)
10-16 19:21:09.109: E/AndroidRuntime(9237): at a.a.a.a.a(Unknown Source)
10-16 19:21:09.109: E/AndroidRuntime(9237): at a.a.a.j.e(Unknown Source)
10-16 19:21:09.109: E/AndroidRuntime(9237): at a.a.a.e.a(Unknown Source)
10-16 19:21:09.109: E/AndroidRuntime(9237): at gilz.magtxt4droid.b.a(Unknown Source)
10-16 19:21:09.109: E/AndroidRuntime(9237): at gilz.magtxt4droid.b.doInBackground(Unknown Source)
10-16 19:21:09.109: E/AndroidRuntime(9237): at android.os.AsyncTask$2.call(AsyncTask.java:264)
10-16 19:21:09.109: E/AndroidRuntime(9237): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
10-16 19:21:09.109: E/AndroidRuntime(9237): ... 5 more
10-16 19:21:09.109: E/AndroidRuntime(9237): Caused by: java.lang.ExceptionInInitializerError
10-16 19:21:09.109: E/AndroidRuntime(9237): at a.a.b.k.<clinit>(Unknown Source)
10-16 19:21:09.109: E/AndroidRuntime(9237): ... 18 more
10-16 19:21:09.109: E/AndroidRuntime(9237): Caused by: java.lang.NullPointerException
10-16 19:21:09.109: E/AndroidRuntime(9237): at java.util.Properties.load(Properties.java:246)
10-16 19:21:09.109: E/AndroidRuntime(9237): at a.a.b.j.d(Unknown Source)
10-16 19:21:09.109: E/AndroidRuntime(9237): at a.a.b.j.<clinit>(Unknown Source)
10-16 19:21:09.109: E/AndroidRuntime(9237): ... 19 more
我有Jsoup 1.7.2完全相同的錯誤,你怎麼會。解決這個問題? –