I am using API 30 - Android 11.0 in my emulator. Whenever I am running my application, I am receiving more than 200 lines of the following message in the log:
Accessing hidden method Landroid/database/sqlite/SQLiteDatabase;->yieldIfContendedHelper(ZJ)Z (greylist-max-o, linking, denied)
But, for my application, I am NOT even using database. Searching in google, I come to this which basically mentions all non-SDK interfaces that were added to the SDK in Android 11.
So, is it possible to know why I am getting so many logs of that message when my app is not even using any database?
I have a similar problem with my bare-bones app, which definitely does not use SQLite. It looks like it is caused by Database Inspector in Android Studio.
The solution that worked for me is simple:
From these questions[1][2] it seems that Database Inspector can cause problems and no way has been found to disable it without restarting Android Studio.
Having the same problem, and I've also never touched the Database Inspector. My Android 10 phone doesn't get this message, but my Android 11 device does. Raising the minSdkVersion
to 29 seems to get rid of the log spam, FWIW
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With