相关疑难解决方法(0)

无法解决:com.facebook.android:facebook-android-sdk:[4,5)

我在我的项目中使用facebook sdk.Facebook SDK直到昨天仍然有效.但今天当我打开我的项目时,构建失败并显示错误如下

 Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
   > Could not resolve com.facebook.android:facebook-android-sdk:[4,5).
     Required by:
         project :app
      > Could not resolve com.facebook.android:facebook-android-sdk:[4,5).
         > Failed to list versions for com.facebook.android:facebook-android-sdk.
            > Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/android/facebook-android-sdk/maven-metadata.xml.
               > Could not GET 'https://jcenter.bintray.com/com/facebook/android/facebook-android-sdk/maven-metadata.xml'.
                  > jcenter.bintray.com
      > Could not resolve com.facebook.android:facebook-android-sdk:[4,5).
         > Failed to list versions for com.facebook.android:facebook-android-sdk.
            > Unable to load Maven meta-data from https://jitpack.io/com/facebook/android/facebook-android-sdk/maven-metadata.xml.
               > Could not GET 'https://jitpack.io/com/facebook/android/facebook-android-sdk/maven-metadata.xml'.
                  > …
Run Code Online (Sandbox Code Playgroud)

android facebook android-gradle-plugin

10
推荐指数
6
解决办法
1万
查看次数

本机反应-无法解析配置':classpath'的所有依赖项

我正在开发我的React本机应用程序,突然之间出现了Javascript React版本不匹配的情况。

当我寻找解决方法时,有人建议调用该命令 react-native upgrade

运行命令后,它会完全重置我的android应用程序包。我必须为自己react-native install <my-react-native-packages>包含的所有库都做,因为找不到其他方法。

这样做之后,这是我在致电时收到的错误 react-native run-android

Scanning folders for symlinks (9ms)
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'CustomApp'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not find com.android.tools.build:gradle:3.1.2.
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.pom
         https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.jar
     Required by:
         :CustomApp:unspecified

* Try:
Run with …
Run Code Online (Sandbox Code Playgroud)

react-native

5
推荐指数
1
解决办法
8191
查看次数

react-native run-android,无法解析配置“:classpath”的所有工件

我按照适用于 Windows 和 Android 的“使用本机代码构建项目”选项卡中的React Native 入门的说明进行操作。

这是 \AwesomeProject\android\build.gradle 的内容,之后执行时出现错误:react-native run-android

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext {
        buildToolsVersion = "28.0.2"
        minSdkVersion = 16
        compileSdkVersion = 28
        targetSdkVersion = 27
        supportLibVersion = "28.0.0"
    }
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories { …
Run Code Online (Sandbox Code Playgroud)

android build.gradle react-native

4
推荐指数
1
解决办法
2万
查看次数

Bitrise:无法解析配置“:classpath”的所有工件无法解析com.google.gms:google-services:4.2.0

更新后com.android.tools.build:gradlecom.google.gms:google-services我可以在本地构建项目(命令gradlew build --scan),但Bitrise我收到“构建失败”和消息:

FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'git'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:4.1.0.
Required by:
project :
> Could not resolve com.android.tools.build:gradle:4.1.0.
> Could not get resource 
'http://dl.bintray.com/populov/maven/com/android/tools/build/gradle/4.1.0/gradle-4.1.0.pom'.
> Could not GET 
'http://dl.bintray.com/populov/maven/com/android/tools/build/gradle/4.1.0/gradle-4.1.0.pom'. 
Received status code 502 from server: Bad Gateway
> Could not resolve com.google.gms:google-services:4.2.0.
Required by:
project :
> …
Run Code Online (Sandbox Code Playgroud)

android gradle bitrise

1
推荐指数
1
解决办法
1715
查看次数