“如何修复”;找不到com.android.tools.build:gradle:3.4.1
我是react native的新手,当我想运行我的第一个项目时,我遇到了这个错误 如何修复,谢谢您的关注 找不到com.android.tools.build:gradle:3.4.1 在以下位置搜索: 及 项目/建筑梯度“如何修复”;找不到com.android.tools.build:gradle:3.4.1,android,react-native,gradle,react-android,Android,React Native,Gradle,React Android,我是react native的新手,当我想运行我的第一个项目时,我遇到了这个错误 如何修复,谢谢您的关注 找不到com.android.tools.build:gradle:3.4.1 在以下位置搜索: 及 项目/建筑梯度 // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories {
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
maven {
url 'https://dl.google.com/dl/android/maven2'
}
jcenter()
mavenCentral()
//apply plugin: 'jetty'
apply plugin: 'maven'
google()
jcenter()
maven { url 'https://maven.google.com' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.android.tools.build.jetifier:jetifier-core:1.0.0-beta04'
classpath 'com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta04'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
//task clean(type: Delete) {
// delete rootProject.buildDir
//}
build.gradle中的gradle版本是什么?你可以在这里发布
app/build.gradle
和project/build.gradle
。@NabeelK非常感谢,我下载了gradle3.4.1,但没有找到错误消息(.jar&.pom)中提到的2文件,我搜索了maven和dl.google,但也没有找到,我怎样才能找到文件?build.gradle中的gradle版本是什么?你能在这里发布app/build.gradle
和project/build.gradle
。@NabeelK非常感谢,我下载了gradle3.4.1,但没有找到错误消息(.jar&.pom)中提到的2文件吗,我搜索了maven和dl.google,但也没有找到,我如何才能找到这些文件?