简体   繁体   English

React Native:安装到虚拟/物理设备失败

[英]React Native: Install to virtual/physical device failed

I'm currently using React Native to code my final year project.我目前正在使用 React Native 编写我最后一年的项目。 I have an issue when build and install it to virtual/physical devices althought a month ago it worked fine .我在构建并将其安装到虚拟/物理设备时遇到问题,尽管一个月前它运行良好 Can someone explain to me wwhat wrongs with my code or files?有人可以向我解释我的代码或文件有什么问题吗? Does it get corrupted?它会损坏吗? Because I tried to created a blank new file I still get the same errors.因为我试图创建一个空白的新文件,所以我仍然遇到相同的错误。

My error:我的错误:

> Task :app:processDebugResources FAILED

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

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     C:\Users\minht\SmartRoom\node_modules\react-native-image-crop-picker\android\build\intermediates\library_manifest\debug\AndroidManifest.xml:10:5-14:15: AAPT: error: unexpected element <queries> found in <manifest>.


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

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

Seems like you need upgrade Gradle from Android studio and then try if you can run your project from Android Studio.似乎您需要从 Android 工作室升级 Gradle,然后尝试是否可以从 Android 工作室运行您的项目。

暂无
暂无

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

相关问题 运行 react-native run-android 时无法在物理设备上安装调试 APK - 无法解析 APK 文件:/data/local/tmp/app-debug.apk - Unable to install debug APK on physical device when running react-native run-android - Failed to parse APK file: /data/local/tmp/app-debug.apk 摇动手势不适用于具有本机反应的物理设备 - Shake gesture not working on physical device with react native React-Native 物理设备未连接到服务器 - React-Native physical device not connecting to server React Native 应用程序未在物理设备上运行 - React Native app is not running on physical device Android-无法在物理设备上安装APK,但在模拟器上成功 - Android - Failed to install apk on physical device but successful on emulator 使用Android Studio虚拟设备执行任务&#39;:react-native-gesture-handler:compileDebugJavaWithJavac&#39;的执行失败 - Execution failed for task ':react-native-gesture-handler:compileDebugJavaWithJavac' with Android Studio Virtual Device 只能在模拟器上更新本机反应,而不是物理设备 - Can only update react native on emulator, not physical device 无法通过隧道在物理设备上运行我的本机应用程序 - Can't run my react native app on physical device by tunnel 无法在物理Android设备上重新加载我的React-native应用程序 - Cant reload my React-native app on physical android device 在 Android 物理设备上反应本机 axios 后请求网络错误 - React native axios post request network error on Android physical device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM