0
点赞
收藏
分享

微信扫一扫

Room cannot create an SQLite connection to verify the queries


环境:

Java版本:java11

Gradle版本:7.2.1

AndroidStudio 版本:Android Studio Chipmunk 2021.2.1 Patch 1

问题:

在mac电脑中运行android项目时,出现了如下报错信息

Room cannot create an SQLite connection to verify the queries. Query verification will be disabled. Error: Error opening connection
public abstract class CacheDatabase extends RoomDatabase {

解决办法:

1、点击File> Project Struceure >  Project ,将Android Gradle Plugin Version 版本改为 4.2.2

,然后将Gradle Version 版本改为6.7.1 

Room cannot create an SQLite connection to verify the queries_数据库

   

 2、然后点击SDK Location > Gradle Setting ,将JDK的版本改为1.8

Room cannot create an SQLite connection to verify the queries_android_02

Room cannot create an SQLite connection to verify the queries_数据库_03

 

3、然后点击ok下载指定的gradle版本,下载完成以后重新运行项目即可解决该问题

 

举报

相关推荐

0 条评论