React本机运行android错误找不到方法google()

React本机运行android错误找不到方法google(),android,reactjs,react-native,mobile,native,Android,Reactjs,React Native,Mobile,Native,我使用Android studio 2.3.3 npm-V6.12.0 react native--版本3.0.4 buildscript { ext { buildToolsVersion = "25.0.3" minSdkVersion = 15 compileSdkVersion = 25 targetSdkVersion = 25 } repositories { google()

我使用Android studio 2.3.3 npm-V6.12.0 react native--版本3.0.4

buildscript {
    ext {
        buildToolsVersion = "25.0.3"
        minSdkVersion = 15
        compileSdkVersion = 25
        targetSdkVersion = 25
    }
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:2.3.3")

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

allprojects {
    repositories {
        mavenLocal()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url("$rootDir/../node_modules/react-native/android")
        }
        maven {
            // Android JSC is installed from npm
            url("$rootDir/../node_modules/jsc-android/dist")
        }

        google()
        jcenter()
        maven { url 'https://jitpack.io' }
    }
}

运行react native并在模拟器上的安装应用程序中的第11行google()中获取错误

i将
maven url
值更改为url“”,但不安装i将
maven url
值更改为url“”,但不安装