摘要:Normally Gradle looks for a build script file with the name build.gradle in the current directory to execute a build. But we can easily use a differen...
阅读全文
摘要:In Gradle we can assign a task to a group. Gradle uses the group for example in the output of $ gradle -t to output all the tasks of the same group to...
阅读全文
摘要:Gradle has a very powerful incremental build feature. This means Gradle will not execute a task unless it is necessary. We can help Gradle and configu...
阅读全文
摘要:In a previous post we learned how we can use the inputs and outputs properties to set properties or files that need to be checked to see if a task is ...
阅读全文
摘要:Gradle adds the task rule clean to our projects when we apply the base plugin. This task is able to remove any output files or directories we have def...
阅读全文
摘要:In Gradle we can create dependencies between tasks. But we can also exclude certain tasks from those dependencies. We use the command-line option -x o...
阅读全文
摘要:To see which tasks are available for our build we can run Gradle with the command-line option -t or --tasks. Gradle outputs the available tasks from o...
阅读全文
摘要:With the copy task of Gradle we can copy files that are parsed by Groovy's SimpleTemplateEngine. This means we can expand properties in the source fil...
阅读全文
摘要:Gradle Goodness: Copy Files with FilteringGradle's copy task is very powerful and includes filtering capabilities. This means we can change the conten...
阅读全文
摘要:With the Gradle copy task we can define renaming rules for the files that are copied. We use the rename() method of the copy task to define the naming...
阅读全文
摘要:If we want to know more about how much time is spent in tasks we can use the --profile command-line option. Gradle will generate a report file in the ...
阅读全文
摘要:Gradle support the definition of so called live collections. These collections are mostly created based on criteria like with a filter() or matching()...
阅读全文
摘要:In Gradle we can group related tasks using the group property of a task. We provide the name of our group and if we look at the output of the tasks ta...
阅读全文
摘要:If we want to set an explicit encoding for the Java compiler in Gradle we can use the options.encoding property. For example we could add the followin...
阅读全文
摘要:To create an archive with Gradle is easy. We have several tasks like Zip, Tar, Jar, War and Ear to create a new archive. But there is no UnZip or UnTa...
阅读全文
摘要:With Gradle we can execute Java applications using the JavaExec task or the javaexec() method. If we want to run Java code from an external dependency...
阅读全文
摘要:Gradle Goodness: Task Output Annotations Create Directory AutomaticallyOne of the great features of Gradle is incremental build support. With incremen...
阅读全文
摘要:Gradle Goodness: Init Script for Adding Extra Plugins to Existing ProjectsGradle is very flexible. One of the ways to alter the build configuration is...
阅读全文
摘要:Gradle uses the name build.gradle as the default name for a build file. If we write our build code in a file build.gradle then we don't have to specif...
阅读全文
摘要:We can run a Gradle build without any of the task actions being executed. This is a so-called dry run of our build. We can use the dry run of a build ...
阅读全文
摘要:To get the current Gradle version we can use the gradleVersion property of the Gradle object. This returns a string value we can use for displaying th...
阅读全文
摘要:If we use Gradle in a multi-module project we can define project dependencies between modules. Gradle uses the information from the project dependenci...
阅读全文
摘要:If we run a Gradle build and one of the tasks fails, the whole build stops immediately. So we have fast feedback of our build status. If we don't want...
阅读全文
摘要:Migrating from Ant to Gradle is very easy with the importBuild method from AntBuilder. We only have to add this single line and reference our existing...
阅读全文
摘要:http://mrhaki.blogspot.jp/2014/12/gradle-goodness-rename-ant-task-names.html
阅读全文
摘要:Original:http://sysmagazine.com/posts/216591/Many plowing on open space Github, I found assemblage of interesting designs, source the codes, and libra...
阅读全文
摘要:原文:Compile a native C Android application翻译: Zhiwei.Li通过上网搜索,你可以发现很多种编译Android native应用的方法.我想说的是,不同的控制台应用, 守护程序(daemon), C/C++库,等等.这些程序在你自己的计算机上编译没有任何...
阅读全文
摘要:This is the last post in my series regarding Android thread communications. Parts 1 through 4 are linked in below.Part 1Part 2Part 3Part 4In this seri...
阅读全文
摘要:In parts 1-3 of this series, I have explored three different means for an Android non-UI thread to communicate user interface updates to the UI thread...
阅读全文
摘要:Original:http://www.intertech.com/Blog/android-non-ui-to-ui-thread-communications-part-3-of-5/Continuing my series on Android non-UI thread-to-UI thre...
阅读全文
摘要:Original:http://www.intertech.com/Blog/android-non-ui-to-ui-thread-communications-part-2-of-5/his isthe second part of my series of blog posts on Andr...
阅读全文
摘要:original:http://www.intertech.com/Blog/android-non-ui-to-ui-thread-communications-part-1-of-5/ANDROID UI THREAD AND ANROn the Android platform,applica...
阅读全文
摘要:NDK里有个例子: android-ndk-r10/samples/module-exports/jni一看就懂了———————————————————————————–从r5版本开始,就支持预编译的库(共享和静态). 也就是说在你的应用中,可包含和使用 预先编译的库。这个功能的用处1. 你想分发你...
阅读全文
摘要:Originally posted on:http://ph0b.com/android-studio-gradle-and-ndk-integration/With the recent changes (release 0.7.3 around Dec 27), thenew Android B...
阅读全文
摘要:0. 下载LAME 并解压缩http://lame.sourceforge.net/download.phphttp://sourceforge.net/projects/lame/files/lame/3.99/lame-3.99.5.tar.gz1. 创建jni/libmp3lame/src目录...
阅读全文
摘要:Originally posted on:http://www.kylethielk.com/blog/include-native-so-library-in-apk-with-android-studio/Using the Android NDK is well documented thro...
阅读全文