android chromium resourceExtractor error - android

Suddenly my app in production phase started to get Chromium ResourceExtractor errors in api 7 even though I had not changed anything in the app.
Is there any solution or update for this error?
Fatal Exception: java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:318)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:762)
Caused by java.lang.RuntimeException
at org.chromium.base.ResourceExtractor$ExtractTask.doInBackground$51DKOQJ1EPGIUR31DPJIULJFD5I3MAACD9GNCO9FDHGMSPPFAPNMIP1R0(ResourceExtractor.java:24)
at org.chromium.base.ResourceExtractor$ExtractTask.doInBackground(ResourceExtractor.java:78)
at android.os.AsyncTask$2.call(AsyncTask.java:304)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:762)
Fatal Exception: java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:318)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:762)
Caused by java.lang.RuntimeException: java.io.IOException
at org.chromium.base.ResourceExtractor$ExtractTask.doInBackground$51DKOQJ1EPGIUR31DPJIULJFD5I3MAACD9GNCO9FDHGMSPPFAPNMIP1R0(ResourceExtractor.java:52)
at org.chromium.base.ResourceExtractor$ExtractTask.doInBackground(ResourceExtractor.java:78)
at android.os.AsyncTask$2.call(AsyncTask.java:304)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:762)
Caused by java.io.IOException
at org.chromium.base.ResourceExtractor$ExtractTask.extractResourceHelper(ResourceExtractor.java:15)
at org.chromium.base.ResourceExtractor$ExtractTask.doInBackground$51DKOQJ1EPGIUR31DPJIULJFD5I3MAACD9GNCO9FDHGMSPPFAPNMIP1R0(ResourceExtractor.java:47)
at org.chromium.base.ResourceExtractor$ExtractTask.doInBackground(ResourceExtractor.java:78)
at android.os.AsyncTask$2.call(AsyncTask.java:304)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:762)

Related

How do I fix this java.lang.NoSuchMethodError?

View the FATAL EXCEPTION error message below:
02-23 23:42:41.596 9581-9705/com.example.restapi_user E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
Process: com.example.restapi_user, PID: 9581
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.NoSuchMethodError: com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient$Builder.setBatchPath
at com.example.echo.dbquery.Dbquery$Builder.setBatchPath(Dbquery.java:586)
at com.example.echo.dbquery.Dbquery$Builder.<init>(Dbquery.java:565)
at com.example.restapi_user.MainActivity$ExecuteApiCall.doInBackground(MainActivity.java:127)
at com.example.restapi_user.MainActivity$ExecuteApiCall.doInBackground(MainActivity.java:116)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
at java.lang.Thread.run(Thread.java:841)
How do I fix this problem? I already tried cleaning and then rebuilding my project.

How to understand this type of SQLException

My app crashes with next exception without any explanation:
java.lang.RuntimeException:
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Caused by: android.database.sqlite.SQLiteException:
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method:0)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1093)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:670)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:59)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:31)
at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1607)
at android.database.sqlite.SQLiteDatabase.insertOrThrow(SQLiteDatabase.java:1505)
How to fix it?
I found reason, that's because onUpgrade not called from SQLiteOpenHelper, I'm forget to change DATABASE_VERSION in new release

java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapSerializationEnvelope with SDK 19 in android studio

hello i m using android studio this error generate and crash application in only sdk version 19. i did not found the reason .i search so many things but not found proper way to resolve this.
Log Show as below
FATAL EXCEPTION: AsyncTask #2
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapSerializationEnvelope
at com.Wsdl2Code.WebServices.User_Setup_Service.User_Setup_Service.ReadMultiple(User_Setup_Service.java:241)
at com.Wsdl2Code.WebServices.User_Setup_Service.User_Setup_Service$3.doInBackground(User_Setup_Service.java:223)
at com.Wsdl2Code.WebServices.User_Setup_Service.User_Setup_Service$3.doInBackground(User_Setup_Service.java:216)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
and org.ksoap2.serialization.SoapSerializationEnvelope belong from external library folder

Exception while integration OKHTTP2.5

I Just integrate OKHTTP2.5 in my Android application but after integration i am getting following exception in the application.
FATAL EXCEPTION: AsyncTask #3
Process: com.testpoint, PID: 16397
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:304)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.NoSuchMethodError: No virtual method setTransports(Ljava/util/List;)Lcom/squareup/okhttp/OkHttpClient; in class Lcom/squareup/okhttp/OkHttpClient; or its super classes (declaration of 'com.squareup.okhttp.OkHttpClient' appears in /data/data/com.testpoint/files/instant-run/dex/slice-okhttp-2.5.0_f7c3855e345b00f0c70af04a10c2a1ce2468221a-classes.dex)
at com.squareup.okhttp.internal.HttpsHandler.newOkHttpClient(HttpsHandler.java:39)
at com.squareup.okhttp.internal.HttpHandler.openConnection(HttpHandler.java:30)
at java.net.URL.openConnection(URL.java:479)
at com.testpoint.client.AsyncHttpRequest.doInBackground(AsyncHttpRequest.java:190)
at com.testpoint.client.AsyncHttpRequest.doInBackground(AsyncHttpRequest.java:1)
at android.os.AsyncTask$2.call(AsyncTask.java:292)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)

Facebook and proguard

I'm trying to integrate Facebook into my app and whenever the app starts, I get the following error:
com.facebook.as: com.facebook.c.f got an unexpected method signature: public abstract org.json.JSONObject com.facebook.c.c.c() at com.facebook.c.h.a(Unknown Source) at com.facebook.c.f.b(Unknown Source) at com.facebook.c.f.invoke(Unknown Source) at $Proxy0.c(Native Method) at com.facebook.b.bo.a(Unknown Source) at com.facebook.b.bo.onPostExecute(Unknown Source) at android.os.AsyncTask.finish(AsyncTask.java:632) at android.os.AsyncTask.access$600(AsyncTask.java:177) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5118) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:610) at dalvik.system.NativeStart.main(Native Method) java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:300) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355) at java.util.concurrent.FutureTask.setException(FutureTask.java:222) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: com.facebook.as: com.facebook.c.f got an unexpected method signature: public abstract org.json.JSONObject com.facebook.c.c.c() at com.facebook.c.h.a(Unknown Source) at com.facebook.c.f.b(Unknown Source) at com.facebook.c.f.invoke(Unknown Source) at $Proxy0.c(Native Method) at com.facebook.b.bn.a(Unknown Source) at com.facebook.widget.c.a(Unknown Source) at com.facebook.widget.c.doInBackground(Unknown Source) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237) ... 4 more
Reading on the internet made me realize that it relates to proguard so I added the following to proguard-project.txt as instructed:
-keep class com.facebook.** { *; }
-keepattributes Signature
but the same happens... what am I missing?

Categories

Resources