Suddenly I'm getting this in the event log when launching the app
Database Inspector: Error reading Sqlite database: Database 'LiveSqliteDatabaseId(path=/data/data/app-dir/databases/google_app_measurement_local.db, name=google_app_measurement_local.db, connectionId=1) not found
Upon checking the databases path, I saw there is google_app_measurement_local.db in the directory. Any idea what causing this to show up?
BTW, I'm using Android Studio 4.2 and here the versions of Firebase for this app
implementation "com.google.firebase:firebase-core:19.0.0"
implementation 'com.google.firebase:firebase-messaging:22.0.0'
implementation 'com.google.firebase:firebase-analytics:19.0.0'
implementation 'com.google.firebase:firebase-crashlytics:18.0.0'
implementation "com.google.firebase:firebase-database:20.0.0"
implementation "com.google.firebase:firebase-config:21.0.0"
This could happen due to many reasons, for example:
Not really much you can do in this case as the right fix, but as a workaround, you can disable your database inspector. As you have mentioned that you are using Android studio 4.2 and this version has the capability for user to disable database inspector.
Android Studio 4.2.0+
Database Inspector -> (device list dropdown in top-left corner) -> Stop Inspector
Below 4.2.0
File -> Invalidate Caches/Restart -> Just Restart (no need to invalidate caches)
Simply invalidate caches and restart the project
File -> Invalidate Caches/Restart -> Invalidate and Restart
This should resolve the problem if its build folder is corrupted.
First, make sure that you have the latest version of all of them. But I must recommend using Firebase Android Bom for versioning of the firebase libraries. it automatically controls which versions should be picked for each library that you have included in your app Gralde file. See example:
dependencies {
// Import the BoM for the Firebase platform
implementation platform('com.google.firebase:firebase-bom:28.3.0')
// Declare the dependencies for the desired Firebase products without specifying versions
// For example, declare the dependencies for Firebase Authentication and Cloud Firestore
implementation 'com.google.firebase:firebase-auth'
implementation 'com.google.firebase:firebase-firestore'
}
I hope this solves the problem for you. If IDE workaround works for you, make sure to file a bug/Issue to Google.
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