sqlite - Gradle项目中的SQLite

标签 sqlite gradle

添加sqlite后无法构建我的项目。
我添加了字符串

compile group:'org.xerial', name:'sqlite-jdbc', version:'3.33.0'
到build.gradle的依赖项部分,下载SQLite并将其添加到系统路径。
错误文本为“任务':compileJava'执行失败。

Could not resolve all files for configuration ':compileClasspath'. Could not find org.xerial:sqlite-jdbc:3.33.0. Searched in the following locations: - https://jcenter.bintray.com/org/xerial/sqlite-jdbc/3.33.0/sqlite-jdbc-3.33.0.pom If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration." Should I add something to repositories section?

最佳答案

错误很明显:

Could not resolve all files for configuration ':compileClasspath'. Could not find org.xerial:sqlite-jdbc:3.33.0. Searched in the following locations: (...)


如果您查看最新版本:https://github.com/xerial/sqlite-jdbc/tags
3.33.0不存在。它在Maven Central中也不存在:https://search.maven.org/artifact/org.xerial/sqlite-jdbc
切换到可用版本,例如3.32.3.2

关于sqlite - Gradle项目中的SQLite,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63982936/

相关文章:

sqlite - gosqlite(golang)中出现奇怪的 sqlite 错误

php - 为什么 PDO rollback() 需要 closeCursor() 才能反射(reflect)在输出中?

javascript - AngularJS 从 SQLite 数据库中填充选择下拉列表

android-studio - 如何检测AndroidStudio项目的build.gradle中何时存在依赖库版本更新

jenkins - Gradle "gradle-wrapper.properties"动态/可配置的 distributionUrl

SQLite浮点问题

android - 如何将双引号 (") 插入 SQLite 数据库 Varchar 字段?

cordova - `ionic platform add android`失败了吗?

android - 支持的最低Gradle版本为2.14.1。当前版本是2.10

android - 应用程序未导入android studio