简体   繁体   中英

React-Native for Mobile

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup . Run CLI wit h --verbose flag for more details. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 [Fatal Error] gradle-3.1.4.pom:7:3: The element type "hr" must be terminated by the matching end-tag "".

When i built this project, then this errors show. I have try to write./gradlew clean and added some syntax into gradle.properties and also into gradle-wrapper.properties. Any one can help?

try to run this command

react-native doctor

and then if its showning some error, press f to fix the issues

open your 'settings.grandle' file in the android folder

change the '\' to '/'

save the file

run the command 'react-native run-android

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM