android - 无法解决依赖 Android Studio
问题描述
我在构建项目时遇到问题。我收到了这个错误:
感谢您的帮助:D
在 0 秒内配置成功错误:无法解析“:uhabits-android@debugAndroidTest/compileClasspath”的依赖关系:无法解析 com.squareup:javawriter:2.1.1。显示详细信息 受影响的模块:uhabits-android
错误:无法解析 ':uhabits-android@debugAndroidTest/compileClasspath' 的依赖关系:无法解析 com.squareup:javawriter:2.5.1。显示详细信息 受影响的模块:uhabits-android
错误:无法解析 ':uhabits-android@debugAndroidTest/compileClasspath' 的依赖关系:无法解析 com.squareup:javawriter:2.1.1。显示详细信息 受影响的模块:uhabits-android
解决方案
在 app 模块 build.gradle 中添加以下依赖项
dependencies {
compile 'com.squareup:javawriter:2.5.1'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'}
并使用
repositories {
mavenCentral()
}
推荐阅读
- stanford-nlp - 将 CorefChain 映射到 Stanford Core NLP 中的 CoreEntityMention
- javascript - 如何从 mongoose `$where()` 查询中引用局部变量?
- google-analytics - 会话范围自定义维度未在小部件中显示数据
- node.js - Git bash,在 Windows 上使用 VIM 8.1 :Term 命令。节点 REPL 无法正常工作
- c - 空格不应计入字符串长度
- use-case - 用例图“详细信息”选项卡显示“无详细信息”
- c# - 将业务逻辑与 API 解耦——如何解耦辅助类
- laravel - Laravel Office365 预期响应代码 250 但得到代码“”,带有消息“”
- python - 如何在python中使用scrapy将自定义信息添加到json文件
- arrays - BigQuery argmax:进行 CROSS JOIN UNNEST 时是否保持数组顺序