[英]I get error on my react-native app while I am trying to execute following code
FAILURE: Build failed with an exception. FAILURE:构建失败并出现异常。
What went wrong: Task 'installDebug' not found in project ':app'.出了什么问题:在项目“:app”中找不到任务“installDebug”。
Try: Run gradlew tasks to get a list of available tasks.尝试:运行 gradlew 任务以获取可用任务列表。 Run with --stacktrace option to get the stack trace.
使用 --stacktrace 选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output.
使用 --info 或 --debug 选项运行以获得更多日志 output。 Run with --scan to get full insights.
运行 --scan 以获得完整的见解。
Get more help at https://help.gradle.org在https://help.gradle.org获得更多帮助
Follow these instructions按照这些说明
brew install node
brew install watchman
brew cask install adoptopenjdk/openjdk/adoptopenjdk8
Download and install Android Studio下载并安装 Android Studio
Choose a "Custom" setup when prompted to select an installation type.当提示 select 安装类型时,选择“自定义”设置。 Make sure the boxes next to all of the following are checked:
确保选中以下所有选项旁边的框:
Add the following lines to your $HOME/.bash_profile or $HOME/.bashrc config file:将以下行添加到您的 $HOME/.bash_profile 或 $HOME/.bashrc 配置文件中:
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.