When I try to build an Android test project on Jenkins I receive the following error message:
BUILD FAILED
C:\Progra~1\android-sdk\tools\ant\build.xml:444: The
following error occurred while executing this line:
C:\Progra~1\android-sdk\tools\ant\build.xml:444: subant task calling
its own parent target.
This seems somehow to be a known issue (https://code.google.com/p/android/issues/detail?id=21108, https://wiki.jenkins-ci.org/pages/viewpage.action?pageId=58917193). As reported, the issue should actually have been fixed, but I am still facing the described problem.
I am running Jenkins on a Windows Server, have the latest Android tools installed (SDK tools v22.0.1, platform and build tools v17) and utilizing Ant 1.9.0..
The project structure is:
- Project A
- Test Project for Project A
I created a dedicted build job on Jenkins for both of them. The build.xml files for both projects have been created with the "android update" command (as described in the Android specs). So they both are referencing the build.xml from the android-sdk/tools/ant folder. Refering to the Apache Ant specs for subant (http://ant.apache.org/manual/Tasks/subant.html) this might be the source of the failure?!
This task must not be used outside of a target if it invokes the same build file it is part of.
Has anyone of you encountered similar issues? Any ideas how to solve it?
Thanks in advance for your help.