Error while build android library by ant


i'm using
teamcity 8.0.4
android sdk tools 22.2.1
android build tools 18.1

and every time during compiling i get an error

[17:54:36][-code-gen] do-only-if-manifest-hasCode

[17:54:36][do-only-if-manifest-hasCode] sequential

[17:54:36][sequential] if

[17:54:36][if] echo

[17:54:36][echo] Handling aidl files...

[17:54:36][if] aidl

[17:54:36][aidl] No AIDL files to compile.

[17:54:36][if] echo

[17:54:36][echo] ----------

[17:54:36][if] echo

[17:54:36][echo] Handling RenderScript files...

[17:54:36][if] echo

[17:54:36][echo] ----------

[17:54:36][if] echo

[17:54:36][echo] Handling Resources...

[17:54:36][if] aapt

[17:54:36][aapt] Generating resource IDs...

[17:54:36][aapt] invalid resource directory name: C:\TeamCity\buildAgent\work\12d871047cd933fb\<project_name>\bin\res/crunch

[17:54:36][aapt] null returned: 1

[17:54:36][do-only-if-manifest-hasCode] The following error occurred while executing this line: c:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:698: null returned: 1

as far as i know, this problem caused by new version of android sdk, ( described here : ), and the recomendation is just to use "and clean build" option. But what can i do in case of using teamcity? is there a way to use anything but "ant build"?

Please sign in to leave a comment.