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

java.lang.IllegalArgumentException: Invalid token limit when targetSdkVersion and compileSdkVersion is 30 #53

Open
manegirish opened this issue Jul 27, 2021 · 0 comments

Comments

@manegirish
Copy link

When I changed target and compile sdk to version 30 then it stopped working with following error;
2021-07-27 20:32:06.086 31504-1478/com.luck.pictureselector W/System.err: java.lang.IllegalArgumentException: Invalid token limit
2021-07-27 20:32:06.087 31504-1478/com.luck.pictureselector W/System.err: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:172)
2021-07-27 20:32:06.087 31504-1478/com.luck.pictureselector W/System.err: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
2021-07-27 20:32:06.087 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentProviderProxy.query(ContentProviderNative.java:472)
2021-07-27 20:32:06.088 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1186)
2021-07-27 20:32:06.088 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1118)
2021-07-27 20:32:06.088 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1074)
2021-07-27 20:32:06.088 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.model.LocalMediaPageLoader.getFirstCover(LocalMediaPageLoader.java:194)
2021-07-27 20:32:06.088 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.PictureSelectorActivity$2.doInBackground(PictureSelectorActivity.java:572)
2021-07-27 20:32:06.088 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.PictureSelectorActivity$2.doInBackground(PictureSelectorActivity.java:561)
2021-07-27 20:32:06.088 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.thread.PictureThreadUtils$Task.run(PictureThreadUtils.java:1193)
2021-07-27 20:32:06.088 31504-1478/com.luck.pictureselector W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
2021-07-27 20:32:06.088 31504-1478/com.luck.pictureselector W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
2021-07-27 20:32:06.088 31504-1478/com.luck.pictureselector W/System.err: at java.lang.Thread.run(Thread.java:923)
2021-07-27 20:32:06.088 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.thread.PictureThreadUtils$UtilsThreadFactory$1.run(PictureThreadUtils.java:1120)
2021-07-27 20:32:06.104 31504-1478/com.luck.pictureselector W/System.err: java.lang.IllegalArgumentException: Invalid token limit
2021-07-27 20:32:06.104 31504-1478/com.luck.pictureselector W/System.err: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:172)
2021-07-27 20:32:06.104 31504-1478/com.luck.pictureselector W/System.err: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
2021-07-27 20:32:06.104 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentProviderProxy.query(ContentProviderNative.java:472)
2021-07-27 20:32:06.104 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1186)
2021-07-27 20:32:06.104 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1118)
2021-07-27 20:32:06.104 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1074)
2021-07-27 20:32:06.104 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.model.LocalMediaPageLoader.getFirstCover(LocalMediaPageLoader.java:194)
2021-07-27 20:32:06.104 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.PictureSelectorActivity$2.doInBackground(PictureSelectorActivity.java:572)
2021-07-27 20:32:06.104 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.PictureSelectorActivity$2.doInBackground(PictureSelectorActivity.java:561)
2021-07-27 20:32:06.104 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.thread.PictureThreadUtils$Task.run(PictureThreadUtils.java:1193)
2021-07-27 20:32:06.105 31504-1478/com.luck.pictureselector W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
2021-07-27 20:32:06.105 31504-1478/com.luck.pictureselector W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
2021-07-27 20:32:06.105 31504-1478/com.luck.pictureselector W/System.err: at java.lang.Thread.run(Thread.java:923)
2021-07-27 20:32:06.105 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.thread.PictureThreadUtils$UtilsThreadFactory$1.run(PictureThreadUtils.java:1120)
2021-07-27 20:32:06.115 31504-1478/com.luck.pictureselector W/System.err: java.lang.IllegalArgumentException: Invalid token limit
2021-07-27 20:32:06.115 31504-1478/com.luck.pictureselector W/System.err: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:172)
2021-07-27 20:32:06.115 31504-1478/com.luck.pictureselector W/System.err: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
2021-07-27 20:32:06.115 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentProviderProxy.query(ContentProviderNative.java:472)
2021-07-27 20:32:06.115 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1186)
2021-07-27 20:32:06.115 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1118)
2021-07-27 20:32:06.115 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1074)
2021-07-27 20:32:06.115 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.model.LocalMediaPageLoader.getFirstCover(LocalMediaPageLoader.java:194)
2021-07-27 20:32:06.116 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.PictureSelectorActivity$2.doInBackground(PictureSelectorActivity.java:572)
2021-07-27 20:32:06.116 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.PictureSelectorActivity$2.doInBackground(PictureSelectorActivity.java:561)
2021-07-27 20:32:06.116 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.thread.PictureThreadUtils$Task.run(PictureThreadUtils.java:1193)
2021-07-27 20:32:06.116 31504-1478/com.luck.pictureselector W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
2021-07-27 20:32:06.116 31504-1478/com.luck.pictureselector W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
2021-07-27 20:32:06.116 31504-1478/com.luck.pictureselector W/System.err: at java.lang.Thread.run(Thread.java:923)
2021-07-27 20:32:06.116 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.thread.PictureThreadUtils$UtilsThreadFactory$1.run(PictureThreadUtils.java:1120)
2021-07-27 20:32:06.125 31504-1478/com.luck.pictureselector W/System.err: java.lang.IllegalArgumentException: Invalid token limit
2021-07-27 20:32:06.125 31504-1478/com.luck.pictureselector W/System.err: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:172)
2021-07-27 20:32:06.125 31504-1478/com.luck.pictureselector W/System.err: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
2021-07-27 20:32:06.125 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentProviderProxy.query(ContentProviderNative.java:472)
2021-07-27 20:32:06.125 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1186)
2021-07-27 20:32:06.125 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1118)
2021-07-27 20:32:06.125 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1074)
2021-07-27 20:32:06.125 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.model.LocalMediaPageLoader.getFirstCover(LocalMediaPageLoader.java:194)
2021-07-27 20:32:06.125 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.PictureSelectorActivity$2.doInBackground(PictureSelectorActivity.java:572)
2021-07-27 20:32:06.125 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.PictureSelectorActivity$2.doInBackground(PictureSelectorActivity.java:561)
2021-07-27 20:32:06.125 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.thread.PictureThreadUtils$Task.run(PictureThreadUtils.java:1193)
2021-07-27 20:32:06.126 31504-1478/com.luck.pictureselector W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
2021-07-27 20:32:06.126 31504-1478/com.luck.pictureselector W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
2021-07-27 20:32:06.126 31504-1478/com.luck.pictureselector W/System.err: at java.lang.Thread.run(Thread.java:923)
2021-07-27 20:32:06.126 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.thread.PictureThreadUtils$UtilsThreadFactory$1.run(PictureThreadUtils.java:1120)
2021-07-27 20:32:06.134 31504-1478/com.luck.pictureselector W/System.err: java.lang.IllegalArgumentException: Invalid token limit
2021-07-27 20:32:06.134 31504-1478/com.luck.pictureselector W/System.err: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:172)
2021-07-27 20:32:06.134 31504-1478/com.luck.pictureselector W/System.err: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
2021-07-27 20:32:06.134 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentProviderProxy.query(ContentProviderNative.java:472)
2021-07-27 20:32:06.135 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1186)
2021-07-27 20:32:06.135 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1118)
2021-07-27 20:32:06.135 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1074)
2021-07-27 20:32:06.135 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.model.LocalMediaPageLoader.getFirstCover(LocalMediaPageLoader.java:194)
2021-07-27 20:32:06.135 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.PictureSelectorActivity$2.doInBackground(PictureSelectorActivity.java:572)
2021-07-27 20:32:06.135 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.PictureSelectorActivity$2.doInBackground(PictureSelectorActivity.java:561)
2021-07-27 20:32:06.135 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.thread.PictureThreadUtils$Task.run(PictureThreadUtils.java:1193)
2021-07-27 20:32:06.135 31504-1478/com.luck.pictureselector W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
2021-07-27 20:32:06.135 31504-1478/com.luck.pictureselector W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
2021-07-27 20:32:06.135 31504-1478/com.luck.pictureselector W/System.err: at java.lang.Thread.run(Thread.java:923)
2021-07-27 20:32:06.135 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.thread.PictureThreadUtils$UtilsThreadFactory$1.run(PictureThreadUtils.java:1120)
2021-07-27 20:32:06.146 31504-1478/com.luck.pictureselector W/System.err: java.lang.IllegalArgumentException: Invalid token limit
2021-07-27 20:32:06.146 31504-1478/com.luck.pictureselector W/System.err: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:172)
2021-07-27 20:32:06.146 31504-1478/com.luck.pictureselector W/System.err: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
2021-07-27 20:32:06.146 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentProviderProxy.query(ContentProviderNative.java:472)
2021-07-27 20:32:06.146 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1186)
2021-07-27 20:32:06.146 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1118)
2021-07-27 20:32:06.146 31504-1478/com.luck.pictureselector W/System.err: at android.content.ContentResolver.query(ContentResolver.java:1074)
2021-07-27 20:32:06.146 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.model.LocalMediaPageLoader.getFirstCover(LocalMediaPageLoader.java:194)
2021-07-27 20:32:06.146 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.PictureSelectorActivity$2.doInBackground(PictureSelectorActivity.java:572)
2021-07-27 20:32:06.146 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.PictureSelectorActivity$2.doInBackground(PictureSelectorActivity.java:561)
2021-07-27 20:32:06.146 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.thread.PictureThreadUtils$Task.run(PictureThreadUtils.java:1193)
2021-07-27 20:32:06.146 31504-1478/com.luck.pictureselector W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
2021-07-27 20:32:06.146 31504-1478/com.luck.pictureselector W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
2021-07-27 20:32:06.146 31504-1478/com.luck.pictureselector W/System.err: at java.lang.Thread.run(Thread.java:923)
2021-07-27 20:32:06.146 31504-1478/com.luck.pictureselector W/System.err: at com.luck.picture.lib.thread.PictureThreadUtils$UtilsThreadFactory$1.run(PictureThreadUtils.java:1120)

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