升级后构建失败反应本机到 0.44 v

Build failed after upgrade react native to 0.44 v

我刚刚将 React Native 升级到 0.44.0 版本,但出现此错误:

FAILURE: Build failed with an exception.

    What went wrong:
    Execution failed for task ':react-native-navigation:compileReleaseJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

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

BUILD FAILED

和Android工作室的事件日志:

Executing tasks: [:app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources, :react-native-navigation:generateDebugSources, :react-native-navigation:generateDebugAndroidTestSources, :react-native-navigation:mockableAndroidJar, :react-native-navigation:prepareDebugUnitTestDependencies, :realm:generateDebugSources, :realm:generateDebugAndroidTestSources, :realm:mockableAndroidJar, :realm:prepareDebugUnitTestDependencies]

需要一些帮助!谢谢!

环境

React Native Navigation version: 1.1.65
React Native version: 0.44.0
Platform(s) (iOS, Android, or both?): Android
Device info (Simulator/Device? OS version? Debug/Release?): AVD from Android Studio (6.0 API 23) and tested with a second AVD (7.1.1 API 25) => got same build failed

编辑 1:

这是我的pacakage.json

{
  "name": "App",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "^15.5.4",
    "react-native": "^0.44.0",
    "react-native-checkbox": "^1.1.0",
    "react-native-navigation": "^1.1.65",
    "realm": "^1.2.0",
    "redux": "^3.6.0"
  },
  "devDependencies": {
    "babel-jest": "19.0.0",
    "babel-preset-react-native": "1.9.1",
    "jest": "19.0.2",
    "react-test-renderer": "~15.4.1"
  },
  "jest": {
    "preset": "react-native"
  }
}

编辑 2:

我终于将我的 build.gradle 应用程序从 23 更新为 25,并将 buildToolsVersion 从“23.x.x”更新为“25.0.2”。

 android {
     compileSdkVersion 25
     buildToolsVersion "25.0.2"

它已编译,我现在可以 运行 我的应用程序了。

使用自动安装解决了我的pb