gpt4 book ai didi

android - 在根项目 'android' React Native 中找不到“installDebug”

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:07:43 25 4
gpt4 key购买 nike

我正在尝试在 android 模拟器上运行我的项目。当我运行 react-native run-android 时,我得到以下信息:

FAILURE: Build failed with an exception.

* What went wrong: Task 'installDebug' not found in root project 'android'.

* Try: Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

如果我运行 ./gradlew tasks 我得到:

Build Setup tasks
-----------------
init - Initializes a new Gradle build. [incubating]
wrapper - Generates Gradle wrapper files. [incubating]

Help tasks
----------
buildEnvironment - Displays all buildscript dependencies declared in root project 'android'.
components - Displays the components produced by root project 'android'. [incubating]
dependencies - Displays all dependencies declared in root project 'android'.
dependencyInsight - Displays the insight into a specific dependency in root project 'android'.
help - Displays a help message.
model - Displays the configuration model of root project 'android'. [incubating]
projects - Displays the sub-projects of root project 'android'.
properties - Displays the properties of root project 'android'.
tasks - Displays the tasks runnable from root project 'android'.

知道为什么我的项目中没有 installDebug 任务吗?我如何取回它?

最佳答案

react-native run-android --variant [productFlavorName][调试/发布]

例如react-native run-android --variant Huaweidebug

关于android - 在根项目 'android' React Native 中找不到“installDebug”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39119301/

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