添加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/