在根项目’android’React Native中找不到’installDebug’

在根项目’android’React Native中找不到’installDebug’,第1张

概述我想在 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 t 我想在 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任务,我得到:

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] [deBUG / release]

例如react-native run-androID –variant HuaweIDeBUG

总结

以上是内存溢出为你收集整理的在根项目’android’React Native中找不到’installDebug’全部内容,希望文章能够帮你解决在根项目’android’React Native中找不到’installDebug’所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1128124.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存