生成debug apk 并安装

gradle installDebug

生成realde apk

gradlew assembleRelease
gradlew assembleDebug

命令列表

gradle tasks

Parallel execution with configuration on demand is an incubating feature.:tasks------------------------------------------------------------All tasks runnable from root project------------------------------------------------------------Android tasks-------------androidDependencies - Displays the Android dependencies of the project.signingReport - Displays the signing info for each variant.sourceSets - Prints out all the source sets defined in this project.Build tasks-----------assemble - Assembles all variants of all applications and secondary packages.assembleAndroidTest - Assembles all the Test applications.assembleDebug - Assembles all Debug builds.assembleRelease - Assembles all Release builds.build - Assembles and tests this project.buildDependents - Assembles and tests this project and all projects that depend on it.buildNeeded - Assembles and tests this project and all projects it depends on.clean - Deletes the build directory.compileDebugAndroidTestSourcescompileDebugSourcescompileDebugUnitTestSourcescompileReleaseSourcescompileReleaseUnitTestSourcesmockableAndroidJar - Creates a version of android.jar that's suitable for unit tests.Build Setup tasks-----------------init - Initializes a new Gradle build. [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' (some of the displayed tasks may belong to subprojects).Install tasks-------------installDebug - Installs the Debug build.installDebugAndroidTest - Installs the android (on device) tests for the Debug build.uninstallAll - Uninstall all applications.uninstallDebug - Uninstalls the Debug build.uninstallDebugAndroidTest - Uninstalls the android (on device) tests for the Debug build.uninstallRelease - Uninstalls the Release build.Verification tasks------------------check - Runs all checks.connectedAndroidTest - Installs and runs instrumentation tests for all flavors on connected devices.connectedCheck - Runs all device checks on currently connected devices.connectedDebugAndroidTest - Installs and runs the tests for debug on connected devices.deviceAndroidTest - Installs and runs instrumentation tests using all Device Providers.deviceCheck - Runs all device checks using Device Providers and Test Servers.lint - Runs lint on all variants.lintDebug - Runs lint on the Debug build.lintRelease - Runs lint on the Release build.test - Run unit tests for all variants.testDebugUnitTest - Run unit tests for the debug build.testReleaseUnitTest - Run unit tests for the release build.Other tasks-----------assembleDefaultcdvBuildDebugcdvBuildReleasecdvPrintPropsjarDebugClassesjarReleaseClassespackageDebugJarArtifactpackageReleaseJarArtifacttransformResourcesWithMergeJavaResForDebugUnitTesttransformResourcesWithMergeJavaResForReleaseUnitTestwrapperRules-----Pattern: clean: Cleans the output files of a task.Pattern: build: Assembles the artifacts of a configuration.Pattern: upload: Assembles and uploads the artifacts belonging to a configuration.To see all tasks and more detail, run gradle tasks --allTo see more detail about a task, run gradle help --task BUILD SUCCESSFULTotal time: 6.462 secs

更多相关文章

  1. 用命令行使用7z压缩
  2. Android(安卓)UI控件-Spinner(下拉列表)
  3. Android设备上调用谷歌应用的的Intent 列表
  4. Ubuntu16.04上Android(安卓)N开发环境配置
  5. Android(安卓)使用Room 生成不了数据库文件
  6. android之popupwindow显示文件列表
  7. 【黑马Android】(13)Linux操作系统/cron计划任务
  8. android BottomSheetDialog新控件解析,实现知乎评论列表效果
  9. Ubuntu10.10下Android真机调试

随机推荐

  1. Android(安卓)在百度地图上显示自己的实
  2. 简单了解XML 树结构
  3. 简单了解XML 树结构
  4. 板绘线稿如何入门?板绘线稿入门教程
  5. 模态框练习
  6. 仿php中文网右侧内容
  7. php中文网下侧区域的实例演示
  8. 选择器权重与伪类选择器
  9. PHP实现爬虫爬取图片代码实例
  10. PHP的imageTtfText()函数深入详解