gpt4 book ai didi

android - react-native android error Failed to install the app native_modules.gradle' line : 170

转载 作者:行者123 更新时间:2023-12-04 23:38:47 25 4
gpt4 key购买 nike

这个问题在这里已经有了答案:





react-native run-android fails from terminal

(9 个回答)


1年前关闭。




在 Windows 中运行 react-native run-android 但出现此错误:

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 app:installDebug -PreactNativeDevServerPort=8081 :ReactNative:Unexpected empty result of running 'npx --quiet --no-install react-native config' command from 'null' directory. :ReactNative:Running 'npx --quiet --no-install react-native config' command from 'null' directory failed.



FAILURE:构建失败并出现异常。
  • 在哪里:
    脚本'/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' 行:170
  • 什么地方出了错:
    评估脚本时出现问题。

    Command config unrecognized. Make sure that you have run npm install and that you are inside a react-native project.

  • 最佳答案

    尝试运行(在 android 文件夹内)

     ./gradlew clean 
    然后运行
     react-native run-android

    关于android - react-native android error Failed to install the app native_modules.gradle' line : 170,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59141108/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com