1

我是 react native 的新手,当我想运行我的第一个项目时,我收到了这个错误,

怎么解决,谢谢关注

" 找不到 com.android.tools.build:gradle:3.4.1。

在以下位置搜索:

这个这个

项目/build.gradle

// 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
//}


4

0 回答 0