【问题标题】:Error:(39, 13) Failed to resolve: com.parse.bolts:bolts-android:1.+错误:(39, 13) 无法解析:com.parse.bolts:bolts-android:1.+
【发布时间】:2015-10-10 05:54:27
【问题描述】:
Error:(39, 13) Failed to resolve: com.parse.bolts:bolts-android:1.+

这是我的 build.gradle

 dependencies {
    compile files('libs/aspose-cells-8.3.1.jar')
    compile files('libs/bcprov-jdk15-146.jar')
    compile files('libs/nineoldandroids-library-2.4.0.jar')
    compile files('libs/renderscript-v8.jar')
    compile files('libs/Parse-1.10.0.jar')
    compile 'com.android.support:support-v4:23.0.1'
    compile 'com.android.support:appcompat-v7:23.0.1'
    compile 'com.google.android.gms:play-services:8.1.0'
    compile 'com.android.support:multidex:1.0.0'
    compile 'com.parse.bolts:bolts-android:1.+'
    compile 'com.google.android.gms:play-services-ads:8.1.0'
    compile 'com.google.android.gms:play-services-identity:8.1.0'
    compile 'com.google.android.gms:play-services-gcm:8.1.0'
 }

Gradle Build Error Message

Project Structure - Dependencies

我需要你的帮助

【问题讨论】:

  • 试试这个compile 'com.parse.bolts:bolts-android:1.2.1'
  • 无法解析 com.parse.bolts:bolts-android:1.2.1
  • 它应该可以工作(确保你有活跃的互联网连接并且没有防火墙阻止android studio)或者你也可以像解析一样直接添加bolts JAR。看到这个:github.com/BoltsFramework/Bolts-Android
  • 同时检查您的gradle.properties 是否包含任何代理。还要检查 android studio 全局代理设置是否阻止了 android studio。
  • 你是否在 gradle 中使用离线模式?

标签: android android-studio parse-platform gradle build.gradle


【解决方案1】:

Go app->libs 然后选择 parse.1+.jar 右键单击​​它然后选择“As a library”

【讨论】:

    【解决方案2】:

    您只需更新您的 Android Studio。 “检查更新...” 已经

    【讨论】:

      【解决方案3】:

      在 Gradle 中包含以下依赖项 compile fileTree(include: ['*.jar'], dir: 'libs') 并选择 File->Invalidate Caches and Restart 并选择 Invalidate Caches and Restart。 等待几分钟,Android Studio 应该会重新启动,一切都会同步。 反正 Parse 已经过期了!!!

      【讨论】:

        【解决方案4】:
        allprojects {
            repositories {
                jcenter()
            }
        }
        

        使用此代码导入螺栓库,将其放置在build.gradle 文件中的buildscript 标记中。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2016-09-03
          • 2016-02-26
          • 2022-08-11
          • 1970-01-01
          • 2016-02-01
          • 1970-01-01
          • 1970-01-01
          • 2014-10-24
          相关资源
          最近更新 更多