【问题标题】:React Native run android Build failed with an exceptionReact Native 运行 android Build 失败并出现异常
【发布时间】:2018-08-26 09:28:28
【问题描述】:

我在 Mac 终端上尝试这个命令

  react-native run-android

得到了这个错误

  FAILURE: Build failed with an exception.

   * Where:
    Build file '/Users/web2/AwesomeProject/android/app/build.gradle' line: 1

   * What went wrong:
   A problem occurred evaluating project ':app'.

java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : 不支持的major.minor 52.0版

  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  BUILD FAILED

我已经安装了

  java version "1.6.0_65"

谢谢

【问题讨论】:

    标签: java android android-studio react-native


    【解决方案1】:

    我通过将 Java 版本 1.6 更新到 1.8 修复了这个错误 :)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-11-08
      • 1970-01-01
      • 2018-12-01
      • 1970-01-01
      • 2020-11-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多