【问题标题】:Unable to resolve Dependecy Android Studio无法解决依赖 Android Studio
【发布时间】:2019-07-06 10:10:51
【问题描述】:

我在构建项目时遇到问题。 我收到了这个错误:

感谢您的帮助:D

0s配置成功 错误:无法解析 ':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

【问题讨论】:

    标签: android module dependencies


    【解决方案1】:

    在 app 模块 build.gradle 中添加以下依赖

    dependencies {
    compile 'com.squareup:javawriter:2.5.1'
    androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'} 
    

    并使用

    repositories {
        mavenCentral()
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-05-09
      • 2016-03-06
      • 2018-04-22
      • 2016-09-03
      • 2021-01-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多