我收到此错误 react-native run-android
这是完整的日志
出了什么问题:配置根项目's7sportsApp'时出现问题 . 无法解析配置':classpath'的所有依赖项 . 无法解决com.android.tools.build:gradle:3.0.0 . 要求:: s7sportsApp:unspecified无法解析com.android.tools.build:gradle:3.0.0 . 无法获得资源'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom' . 无法获取'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom' . 权限被拒绝:连接尝试:使用--stacktrace选项运行以获取堆栈跟踪 . 使用--info或--debug选项运行以获取更多日志输出 .
另外......我的工作计算机中不会发生此错误 . 为什么?
这是我的build.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
jcenter()
maven {
url 'https://maven.google.com'
}
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven {
url "https://jitpack.io"
}
}
}