简体   繁体   English

ReactNative 错误:任务 ':react-native-reanimated:checkDebugManifest' 执行失败

[英]ReactNative error: Execution failed for task ':react-native-reanimated:checkDebugManifest'

I started to work on a react native project.我开始从事 React Native 项目。 But I have a problem now.但我现在有一个问题。 I built a simple project and execute react-native run-android .我构建了一个简单的项目并执行react-native run-android But error occurred.但是发生了错误。

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 954 file(s) to forward-jetify. Using 6 workers...
info Starting JS server...
info Installing the app...
> Task :app:createDebugCompatibleScreenManifests FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings
40 actionable tasks: 12 executed, 28 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:createDebugCompatibleScreenManifests'.
> Failed to create directory 'E:\web_project\fcManager\app\svn_prj\02_source\fcmanager\android\app\build\intermediates\compatible_screen_manifest\debug\createDebugCompatibleScreenManifests\out'

* 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 7s

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run 
CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:createDebugCompatibleScreenManifests'.
> Failed to create directory 'E:\web_project\fcManager\app\svn_prj\02_source\fcmanager\android\app\build\intermediates\compatible_screen_manifest\debug\createDebugCompatibleScreenManifests\out'      

* 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

And then I cleared the cache by yarn start --reset-cache , and execute again react-native run-android .然后我通过yarn start --reset-cache清除yarn start --reset-cache ,并再次执行react-native run-android Error again.再次出错。 But the latter errors are different from the former errors.但后一种错误与前一种错误不同。 What could be a problem?有什么问题?

Wow.哇。 I solve the problem.我解决了这个问题。

>cd android
android>./gradlew clean

And then apk is successfully installed on the emulator.然后在模拟器上成功安装了apk。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 React Native 中的任务 ':react-native-reanimated:androidJavadoc' 执行失败 - Execution failed for task ':react-native-reanimated:androidJavadoc' in React Native React-Native-Reanimated: 错误: node_modules\react-native-reanimated\src\index.ts: - React-Native-Reanimated: error: node_modules\react-native-reanimated\src\index.ts: React本机地图执行任务':react-native-maps:checkDebugManifest'失败 - React native maps Execution failed for task ':react-native-maps:checkDebugManifest' React Native - 无法确定任务':react-native-reanimated:generateJsonModelDebug'的依赖关系 - React Native - Could not determine the dependencies of task ':react-native-reanimated:generateJsonModelDebug' 构建失败“配置项目时出现问题:react-native-reanimated”。 在 React Native 项目中 - Build failed 'A problem occurred configuring project ':react-native-reanimated'. in React native project 运行应用程序时出错:@react-native-community_art:checkDebugManifest FAILED - Error running app :@react-native-community_art:checkDebugManifest FAILED 运行反应原生裸项目导致错误配置项目':react-native-reanimated'时出现问题 - Running react native bare project results in error A problem occurred configuring project ':react-native-reanimated' 错误:需要模块“node_modules\react-native-reanimated\src\Animated.js” - Error: Requiring module "node_modules\react-native-reanimated\src\Animated.js" 评估项目“:react-native-reanimated”时出现问题 - A problem occurred evaluating project ':react-native-reanimated' react-native-reanimated:configureCMakeDebug[arm64-v8a] 安装 react-native-vision-camera 后出错 - react-native-reanimated:configureCMakeDebug[arm64-v8a] error after install react-native-vision-camera
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM