Open talamaska opened 4 years ago
Also experiencing the same issue, would like to see if there are other people in the same situation.
I have other problem, i can't find the database inspector screen in a flutter project.
I have other problem, i can't find the database inspector screen in a flutter project.
You can find it on the menu View -> Tool Windows -> Database Explorer
I have other problem, i can't find the database inspector screen in a flutter project.
You can find it on the menu View -> Tool Windows -> Database Explorer
It does not show on me???
Maybe your Android Studio needs to be updated?
This is more of a AS issue, not a Flutter one.
Same issue for me. my android native project can view it but my flutter project cannot
If anyone encounter the same issue you can try to open your "MainActivity" class and click "Open for Editing in Android Studio" and choose "New Window" to open the class in separate window. the database inspector work in that opened window but you will need to run your flutter project from the flutter project window.
@mpgamelas is it? Flutter plugin should make sure AS recognizes the android app and provide a way to use the android dev tools work with a flutter app.
Database Inspector does not work for Flutter projects in Android Studio. Sadly.
Is there any chance any sort of database inspector will be added?
It seems that at the moment the only solutions to view the DB are to either manually copy the database file and open it in a on a local computer (which is time consuming as you'd need to do it multiple times) or to add multiple print statements in build
function (again, time consuming and this code could slip to production).
There is also a flutter package that uses chrome dev tools to show the database but it doesn't work with latest version of flutter.
vscode: in flutter project, right click on android
folder, then click Open in Android Studio
, on android studio toolbar, click View
-> Tool Windows
-> App Inspection
, then select tab Database Inspector
.
Following these instructions https://developer.android.com/studio/inspect/database I launched the Database inspector. This is what I get - No debuggable process detected My simulator is with api 29, as seen on the screenshot and I for sure have an sqlite in my app and I use it extensively and my app is currently running.
I have latest AS plugins for dart and flutter. Here is my flutter doctor
Would be really nice if something an be done to make it work for flutter apps
Update: Running the android itself from AS. Now my app shows as a process to attach, but I still don't see any database
Maybe that should be directed to sqflite? I'm fine with removing this issue if this is not the right place.