react-native运行android错误

时间:2018-08-11 14:12:45

标签: react-native react-native-android react-native-ios react-native-navigation

我已经尝试过几次在手机上运行React Native的简单应用程序,但我认为我面前有一堵大墙。
我以前已完成以下修复:

  1. 默认类路径“ com.android.tools.build:gradle:2.3.0”更改为类路径“ com.android.tools.build:gradle:3.0.1”
  2. 将google()添加到存储库
  3. 将myapp / android / gradle / wrapper / gradle.properties更改如下:

    ... distributionUrl = https://services.gradle.org/distributions/gradle-4.1- all.zip

    所以我的build.gradle是这样的:


    
    buildscript {
        repositories {
            jcenter()
            google()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.0.1'
        }
    }

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

    ext {
        buildToolsVersion = "26.0.3"
        minSdkVersion = 16
        compileSdkVersion = 26
        targetSdkVersion = 26
        supportLibVersion = "26.1.0"
    }

    

,现在出现以下错误:
Could not resolve org.jetbrains.trove4j:trove4j:20160824.

我找不到更多!感谢您的帮助。

0 个答案:

没有答案