gpt4 book ai didi

android - 在Android Studio中,为什么Gradle console的输出总是空的?

转载 作者:行者123 更新时间:2023-11-29 19:26:10 27 4
gpt4 key购买 nike

在 Android Studio 2.2.3 中,无论我触发什么任务,Gradle 控制台的输出始终为空。它被弃用了吗?

enter image description here

最佳答案

Build Your App from the Command Line In this document About build types Build a debug APK Build a release APK Run your app on the emulator Run your app on a device You can execute all the build tasks available to your Android project using the Gradle wrapper command line tool. It's available as a batch file for Windows (gradlew.bat) and a shell script for Linux and Mac (gradlew.sh), and it's accessible from the root of each project you create with Android Studio.

To run a task with the wrapper, use one of the following commands:

On Windows: gradlew task-name On Mac or Linux: ./gradlew task-name To see a list of all available build tasks for your project, execute tasks: gradlew tasks

阅读更多信息 https://developer.android.com/studio/build/building-cmdline.html

https://developer.android.com/studio/run/index.html

关于android - 在Android Studio中,为什么Gradle console的输出总是空的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41357143/

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