Building the Android Gradle Plugin
来源:互联网 发布:sqlserver 2005 dev 编辑:程序博客网 时间:2024/05/16 10:44
The code of the plugin and its dependencies is located in tools/base. You can open this project with IntelliJ as there is already a tools/base/.idea setup.
tools/base/build-system/integration-test/sample contain a number of sample projects and tests for the plugin. To run the integration tests. run:
$ ./gradlew :base:integration-test:test
To run just a single test, you can use the --tests argument with the test class you want to run. e.g.:
$ ./gradlew :base:integration-test:test --tests com.android.build.gradle.integration.application.BasicTest
Or simply:
$ ./gradlew :b:i:test --tests *.BasicTest
To compile the samples manually, publish the plugin and its libraries first with
$ ./gradlew publishLocal
(Tip: you can use camelcase prefixes for target names, so for the above you can just run
gradlew pL
).Then set the CUSTOM_REPO environment variable to the repository in the "
out
" folder inside the directory where you checked out the tools. For example, if you ran the repo init command above in /my/aosp/work
, then the repository will be in /my/aosp/work/out/repo.(Also, running check, :base:integration-test:test, and connectedIntegrationTest does publishLocal first).
http://tools.android.com/build/gradleplugin
0 0
- Building the Android Gradle Plugin
- the android gradle plugin version is too old 解决方法
- Android Gradle Plugin 版本
- Gradle Android Plugin 使用手册
- android-maven-gradle-plugin
- Android Gradle Plugin解析
- Android开发:Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'anno
- Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProc
- Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProc
- android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor'
- Gradle sync failed: 'com.android.build.gradle.BasePlugin' does not implement the Plugin interface
- Android Gradle plugin版本和Gradle版本
- Android Studio Error running app IDE or the Gradle plugin to the latest version
- the Android gradle plugin version xxx is too old please update to the lateset version
- Android Gradle Plugin指南(一)
- Android plugin for Gradle基础
- Android studio更新后项目报错Error:android-apt plugin is incompatible with the Android Gradle plugin. Pleas
- Building the android code
- 【计算机网络复习】:链路层差错编码 & mac协议
- 织梦中自定义表单必填项JS控制
- Android APK优化工具Zipalign详解
- 深入剖析Java中的装箱和拆箱
- ios 里如何判断当前应用的定位服务是否可用
- Building the Android Gradle Plugin
- Java基础——Java重点基础之反射
- Git基本常用命令
- UVA 11029 Leading and Trailing
- 扉页
- 【Android】【USB】USB相关开发
- Java Web学习笔记——Cookie&Session
- SEERC15 求一个正整数n,使得a+n和b+n的LCM值最小
- NSCondition的用法