Execution failed for task ':faceunity:compileDebugJavaWithJavac'.



  • 这几个问题 困扰了半个月,查百度各种方式都试过了还是没解决,改了compileSdkVersion和buildToolsVersion版本也没用 求解决方法 谢谢
    FAILURE: Build completed with 3 failures.

    1: Task failed with an exception.

    • What went wrong:
      Execution failed for task ':faceunity:compileDebugJavaWithJavac'.

    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.
      ==============================================================================

    2: Task failed with an exception.

    • What went wrong:
      Execution failed for task ':IMKit:processDebugResources'.

    com.android.ide.common.process.ProcessException: Failed to execute aapt

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

    3: Task failed with an exception.

    • What went wrong:
      Execution failed for task ':bugsnag-react-native:processDebugResources'.

    com.android.ide.common.process.ProcessException: Failed to execute aapt

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

    BUILD FAILED

    Total time: 33.934 secs
    Could not install the app on the device, read the error above for details.
    Make sure you have an Android emulator running or a device connected and have
    set up your Android development environment:
    https://facebook.github.io/react-native/docs/android-setup.html