Android play store build : SQLiteConstraintException: UNIQUE constraint failed - android

I'm Facing the following issue after when I upload build in google play store. in debug mode, it was working fine. but in LIVE when I open my app it getting crashed. any one have an idea about this issue how to resolve it?
here is my Android Studio Logcat Error,
E/SQLiteDatabase: Error inserting period=18000 preferred_charging_state=1 preferred_network_type=1 target_class=com.google.android.gms.measurement.PackageMeasurementTaskService required_network_type=0 runtime=1593181242118 required_idleness_state=0 source=16 service_kind=0 target_package=com.google.android.gms persistence_level=1 source_version=202117000 last_runtime=0 user_id=0 job_id=-1 requires_charging=0 tag=Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG flex_time=8000 task_type=0 retry_strategy={"maximum_backoff_seconds":{"3600":0},"initial_backoff_seconds":{"30":0},"retry_policy":{"0":0}}
android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: pending_ops.tag, pending_ops.target_class, pending_ops.target_package, pending_ops.user_id (code 2067 SQLITE_CONSTRAINT_UNIQUE)
at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:830)
at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)
at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)
at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1564)
at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1433)
at aqfz.a(:com.google.android.gms#202117030#20.21.17 (100408-316502805):146)
at aqfj.a(:com.google.android.gms#202117030#20.21.17 (100408-316502805):190)
at aqfj.a(:com.google.android.gms#202117030#20.21.17 (100408-316502805):23)
at aqfj.a(:com.google.android.gms#202117030#20.21.17 (100408-316502805):185)
at aqbt.run(:com.google.android.gms#202117030#20.21.17 (100408-316502805):9)
at skp.b(:com.google.android.gms#202117030#20.21.17 (100408-316502805):12)
at skp.run(:com.google.android.gms#202117030#20.21.17 (100408-316502805):8)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at sql.run(:com.google.android.gms#202117030#20.21.17 (100408-316502805):0)
at java.lang.Thread.run(Thread.java:764)
Thanks in advance!

Related

Firebase Android inexplicable crash

No data-related code is used in the project Most happened on Android 7.0 Most Samsung phones
The SDK that integrated a database before, I have deleted all and noted the references
Fatal Exception: android.database.sqlite.SQLiteException: cannot rollback - no transaction is active (code 1)
#################################################################
Error Code : 1 (SQLITE_ERROR)
Caused By : SQL(query) error or missing database.
(cannot rollback - no transaction is active (code 1))
#################################################################
at android.database.sqlite.SQLiteConnection.nativeExecute(SQLiteConnection.java)
at android.database.sqlite.SQLiteConnection.execute(SQLiteConnection.java:629)
at android.database.sqlite.SQLiteSession.endTransactionUnchecked(SQLiteSession.java:439)
at android.database.sqlite.SQLiteSession.endTransaction(SQLiteSession.java:401)
at android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:646)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.endTransaction
at androidx.work.impl.WorkDatabase$1.onOpen(WorkDatabase.java:131)
at androidx.work.impl.WorkDatabase_Impl$1.onOpen(WorkDatabase_Impl.java:91)
at androidx.room.RoomOpenHelper.onOpen(RoomOpenHelper.java:120)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onOpen
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:266)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:163)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableSupportDatabase
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase
at androidx.room.RoomDatabase.beginTransaction(RoomDatabase.java:328)
at androidx.work.impl.utils.ForceStopRunnable.cleanUp(ForceStopRunnable.java:135)
at androidx.work.impl.utils.ForceStopRunnable.run(ForceStopRunnable.java:79)
at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91)
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)

Geofence creation error in Android-Q- "com.google.android.gms.common.api.ApiException: 13"

I've a Geofence implemented app which has been working fine on Android versions below Q. On Android-Q, geofence creation gets succeed when I choose "Allow location all time" but fails to create when I choose "Allow only while using the app".
Device: Google Pixel 2 XL
O/S: Android-Q beta, last security patch update August 1, 2019
The error in case of choosing Allow only while using the app is **com.google.android.gms.common.api.ApiException: 13: **
The stacktrace is below:
2019-08-26 12:06:29.749 17668-17668/com.bdx.newhomesource.debug W/System.err: com.google.android.gms.common.api.ApiException: 13:
2019-08-26 12:06:29.750 17668-17668/com.bdx.newhomesource.debug W/System.err: at com.google.android.gms.common.internal.ApiExceptionUtil.fromStatus(Unknown Source:4)
2019-08-26 12:06:29.752 17668-17668/com.bdx.newhomesource.debug W/System.err: at com.google.android.gms.common.internal.zai.zaf(Unknown Source:2)
2019-08-26 12:06:29.753 17668-17668/com.bdx.newhomesource.debug W/System.err: at com.google.android.gms.common.internal.zaj.onComplete(Unknown Source:6)
2019-08-26 12:06:29.754 17668-17668/com.bdx.newhomesource.debug W/System.err: at com.google.android.gms.common.api.internal.BasePendingResult.zaa(Unknown Source:172)
2019-08-26 12:06:29.755 17668-17668/com.bdx.newhomesource.debug W/System.err: at com.google.android.gms.common.api.internal.BasePendingResult.setResult(Unknown Source:131)
2019-08-26 12:06:29.757 17668-17668/com.bdx.newhomesource.debug W/System.err: at com.google.android.gms.common.api.internal.BaseImplementation$ApiMethodImpl.setResult(Unknown Source:36)
2019-08-26 12:06:29.758 17668-17668/com.bdx.newhomesource.debug W/System.err: at com.google.android.gms.internal.location.zzba.zza(Unknown Source:22)
2019-08-26 12:06:29.759 17668-17668/com.bdx.newhomesource.debug W/System.err: at com.google.android.gms.internal.location.zzan.dispatchTransaction(Unknown Source:47)
2019-08-26 12:06:29.760 17668-17668/com.bdx.newhomesource.debug W/System.err: at com.google.android.gms.internal.location.zzb.onTransact(Unknown Source:22)
2019-08-26 12:06:29.762 17668-17668/com.bdx.newhomesource.debug W/System.err: at android.os.Binder.execTransactInternal(Binder.java:1021)
2019-08-26 12:06:29.764 17668-17668/com.bdx.newhomesource.debug W/System.err: at android.os.Binder.execTransact(Binder.java:994)
I ran into this problem several months ago and I had created a bug report on Google's issue tracker. They closed the bug report and said that this is the intended behavior.
I understand that Geofences shouldn't be able to be registered when your permission is set to foreground only. I just think they could've used a better error code. Error code 13 represents "failed for an unknown reason" when in reality the reason is very clear.
So yeah, this is the intended behavior but the error code and error message are really no help.

Unknown database and database operation found on my app

I am testing my android app using the android studio also I am using a lot of libraries from GitHub and my problem is when I check LogCat, it showing the unknown message from my phone there is no related app has installed to get this type of message.
What is the problem is my app is hacked?
0-23 12:41:56.486 19337-19379/? E/SQLiteDatabase: Error inserting imdata={"sender":"1007787459425466","is_video":true,"filesize":4229475,"alias":"aswin ps","original_id":".8HGNxeIGQGYKGdwELDentPbijFS","public_level":1,"sim_iso":"IN","type":"video"} is_public=1 buid=fof:fof object_id=.8HGNxeIGQGYKGdwELDentPbijFS original_id=.8HGNxeIGQGYKGdwELDentPbijFS view_type=1 timestamp=1540262393 group_num=0 message_read=0
android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: stories.buid, stories.object_id (code 2067)
at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:780)
at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)
at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)
at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1471)
at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1341)
at com.imo.android.imoim.util.v.a(SourceFile:79)
at com.imo.android.imoim.util.h.doInBackground(SourceFile:1026)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

android.database.sqlite.SQLiteConstraintException in android

android.database.sqlite.SQLiteConstraintException:
Logcat :
E/SQLiteDatabase: Error inserting Email_ID=1234567 USER_ID=abcd13
Password=a#g.com Mobile=1234567890 Name=asdf
android.database.sqlite.SQLiteConstraintException: UNIQUE constraint
failed: User.USER_ID (code 1555)
at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native
Method)
at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:780)
at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)
at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)
at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1471)
at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1341)
at edmt.dev.androidgridlayout.DatabaseHelper.saveUserData(DatabaseHelper.java:555)
at edmt.dev.androidgridlayout.Register$1.onClick(Register.java:80)
at android.view.View.performClick(View.java:5207)
at android.view.View$PerformClick.run(View.java:21168)
at android.os.Handler.handleCallback(Handler.java:746)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5443)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
Application terminated.
1
source edit rollback
Your database already has row with USER_ID=adcd13, therefore you must either update the row or remove it and insert again.

android.database.sqlite.SQLiteDiskIOException: disk I/O error (code 1802) with webView

I am facing an question that I don't know how to solve it.I guess it may relate to then webView.Can some one help me? Thanks very much.
android.database.sqlite.SQLiteDiskIOException: disk I/O error (code 1802)
at android.database.sqlite.SQLiteConnection.nativeExecuteForCursorWindow(Native Method)
at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:845)
at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)
at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)
at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:144)
at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:197)
at android.database.AbstractCursor.moveToFirst(AbstractCursor.java:237)
at android.webkit.WebViewDatabaseClassic.getUsernamePassword(WebViewDatabaseClassic.java:388)
at android.webkit.BrowserFrame.handleMessage(BrowserFrame.java:516)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:973)
at java.lang.Thread.run(Thread.java:841)

Categories

Resources