You have already created a Freestyle project in Jenkins in Chapter 1, getting Started with Jenkins, in the recipe Creating a Freestyle Job for an Ant project. You need to create Freestyle project for an Android project.
Configuring an Android project for execution
Getting ready
You can use Android Lint for static code analysis. Before configuring Continuous Integration, install the required plugins.
Go to Jenkins dashboard | Manage Jenkins | ManagePlugins | Available
Install the Android Lint plugin:
Wait until the plugin has been installed successfully:
Go to Jenkins dashboard | Manage Jenkins | Global Tool Configuration | Gradle | Add Gradle, as shown in this screenshot:
Go to Jenkins dashboard | Manage Jenkins|Configure...