Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLite Exception for android version lower than Marshmallow #11

Open
Zeus9820 opened this issue Apr 5, 2021 · 0 comments
Open

SQLite Exception for android version lower than Marshmallow #11

Zeus9820 opened this issue Apr 5, 2021 · 0 comments

Comments

@Zeus9820
Copy link

Zeus9820 commented Apr 5, 2021

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.gi.musicsystem, PID: 25889
java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=0, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.gi.musicsystem/com.gi.musicsystem.HomeActivity}: android.database.sqlite.SQLiteException: no such column: bucket_id (code 1): , while compiling: SELECT _data, title, bucket_id, album_id, album, artist, duration, _display_name, _id FROM audio WHERE (is_music != 0) ORDER BY LOWER (title) ASC
at android.app.ActivityThread.deliverResults(ActivityThread.java:4179)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4222)
at android.app.ActivityThread.-wrap20(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1581)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:163)
at android.app.ActivityThread.main(ActivityThread.java:6238)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:933)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
Caused by: android.database.sqlite.SQLiteException: no such column: bucket_id (code 1): , while compiling: SELECT _data, title, bucket_id, album_id, album, artist, duration, _display_name, _id FROM audio WHERE (is_music != 0) ORDER BY LOWER (title) ASC
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:179)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
at android.content.ContentProviderProxy.query(ContentProviderNative.java:421)
at android.content.ContentResolver.query(ContentResolver.java:534)
at android.content.ContentResolver.query(ContentResolver.java:475)
at com.CodeBoy.MediaFacer.AudioGet.getAllAudioFolderContent(AudioGet.java:324)
at com.gi.musicsystem.HomeActivity.setStats(HomeActivity.java:488)
at com.gi.musicsystem.HomeActivity.permissionGranted(HomeActivity.java:301)
at com.gi.musicsystem.HomeActivity.onRequestPermissionsResult(HomeActivity.java:168)
at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:7273)
at android.app.Activity.dispatchActivityResult(Activity.java:7125)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4175)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4222)
at android.app.ActivityThread.-wrap20(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1581)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:163)
at android.app.ActivityThread.main(ActivityThread.java:6238)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:933)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
I/Process: Sending signal. PID: 25889 SIG: 9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant