在Android上执行本机反应时出错

时间:2018-12-07 11:58:41

标签: android react-native

当我运行react-native run-android时出现此错误 我做了这个链接中的所有步骤 https://facebook.github.io/react-native/docs/getting-started.html 但我仍然得到那些错误 我使用Windows 10 btw

C:\Windows\System32\amjad3\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

> Task :app:mergeDebugResources FAILED Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details


FAILURE: Build failed with an exception.

* What went wrong: Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details

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

* Get more help at https://help.gradle.org

BUILD FAILED in 1s 9 actionable tasks: 1 executed, 8 up-to-date 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/getting-started.html

以及有关此文件夹的信息 C:\ Windows \ System32 \ amjad3 \ android \ app \ build \ intermediates \ res \ merged \ debug 我在我的文件中有它,但是它是空的

0 个答案:

没有答案