gpt4 book ai didi

java - Gradle 中的 InstallDebug 在哪里?如何安装测试 Android 应用程序?

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

我正在尝试在我的测试设备上安装我在 Android Studio 中开发的 Android 应用。我通常使用名为“InstallDebug”的 Gradle 任务执行此操作。但是,在我新创建的项目中,我现在在我的 Gradle 任务列表中不再看到此任务。我看到的唯一两件事是从 Install* 开始的

  • 安装DefaultFlavorDebug
  • 安装默认 flavor 测试

有人知道我需要使用哪个 Gradle Task 来将我的应用安装到我的手机上进行测试吗?

最佳答案

现在你会发现这个任务:

gradlew install<Flavor><Build Type>.

示例:2 种风格 f1,f2 和 2 种构建类型 debug, release

你会发现:

installF1Debug - Installs the Debug build for flavor f1
installF1DebugTest - Installs the Test build for the f1 build
installF1Release -- Installs the Release build for flavor f1
installF2Debug - Installs the Debug build for flavor f2
installF2DebugTest - Installs the Test build for the f2 build
installF2Release -- Installs the Release build for flavor f2

关于java - Gradle 中的 InstallDebug 在哪里?如何安装测试 Android 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21457546/

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