Android Studio Preview 4.1 Database inspector crashes app

后端 未结 2 671
名媛妹妹
名媛妹妹 2021-01-18 01:18

I am getting such notice

Error reading Sqlite database: Unable to perform an operation on database (id=3). The database may have already been close

相关标签:
2条回答
  • 2021-01-18 01:55

    I got a simple solution not to use the DataBase inspector. remove it from the bottom menu. if you not click on it studio work properly. the problem comes after you open the 'Database inspector tab' remove process: Right-click on database inspector -> remove form slider

    0 讨论(0)
  • 2021-01-18 02:09

    I always have this issue with an Android 11 Emulator.

    Google known this issue and published an update for them. To solve this update your emulator Android 11 images to revision 9, and all things works fine.

    Steps to solving this issue:

    1. Open Preferences -> Appearance & Behavior -> System Settings -> Android SDK
    2. Open tab SDK Platforms
    3. Enable Show Package Details (right bottom corner)
    4. Expand Android 11.0 (R)
    5. Update all ... System Image options to minimum Revision 9
    6. Restart Emulator

    Now your application should work with active database inspector.

    0 讨论(0)
提交回复
热议问题