Setup android testing development with jenkins on Windows 8


I assume we already have android environment works in our Windows 8. Don’t forget to add “sdktools” into windows global environment variable PATH. So, we can run “android” commmand from DOS. Also, make sure there already ANDROID_HOME that pointing into sdk folder.

First, we should have ant installed. We can download it from http://ant.apache.org/bindownload.cgi.
Download binary and extract it. After that, try to add it into global environment variable.
It will make “ant” command executable from DOS.

In project folder

1
ant clean debug

I got error:

1
2
3
BUILD FAILED
C:UsersyodiDownloadseclipse-androidsdktoolsantbuild.xml:466: Invalid fil
e: D:Mobileappgoogle-play-services_libbuild.xml

What i need here is go to that folder and do “android update project -p .”. Keep doing this for another conflicted libraries. I also got error duplicate android-support-v4.jar. This error occured because different SHA1 android-support-v4.jar in your project and libraries. Make them same by copy android-support-v4.jar from your project and replace all libraries android-support-v4.jar with it.

Now, we are ready to run “ant clean debug” in project folder. Later, we can run “ant clean emma debug install test” in test folder.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.