Android TeamCity build : package R does not exist


I am new on TeamCity framework, i'm currently setup full tests on Android applications/libraries.
I'm starting setup with junit tests with simple clases which is implements android API's with sccuess.

Second steps : build test with sample Activity.
When i run tests from teamcity dashboard i've this error durring compilation : "package R does not exist" on setContentView, findViewById, etc ..
I was search on google but i don't find any solutions ...

Can you help me ?



1 comment
Comment actions Permalink

Hi Mickael,

Please check that build runs successfully outside TeamCity. To do this try to run the build from the command line on the same machine as TeamCity agent, under the same user that the agent is running and with all the same settings. The detailed steps how to perform it are described in the documentation.


Please sign in to leave a comment.