Problem with Android-Runners

HI,

This message is mainly to the developer of android-runners.

I have run into 2 problems with this plugin:

First, with the new R12 release for android SDK, the tools directory has changed to home_folder\platform-tools from home_folder\platforms\android-x\tools:

[11:52:56]: [Packaging resources...] java.util.concurrent.ExecutionException: com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "C:\Program Files (x86)\Android\android-sdk\platforms\android-9\tools\aapt.exe"

Second, there seems to be a problem with running the javac command. It looks like if the temporary directory being used to build all the code is under "program files" or anything with a space it cannot build with the error:

[15:18:30]: [Android] Compiling sources...
[15:18:30]: [Compiling sources...] javac: invalid flag: C:\Program
[15:18:30]: [Compiling sources...] Usage: javac <options> <source files>
[15:18:30]: [Compiling sources...] use -help for a list of possible options
[15:18:30]: [Compiling sources...] Execution failed. Exit code is 2.


Temp directory in this case is: C:\Program Files (x86)\TeamCity\buildAgent\work\febd9321d8262f1c


Do you think this is something you could fix and re-submit the plugin? I would love to use Teamcity for my android products too. Let me know if there's anything I can do to help out.


I really appreciate what you have already done and hope to hear from you soon.


Thanks,
-Stewart
2 comments
Comment actions Permalink

In addition I should add that the first problem can be worked around by copying the contents from the new tools directory to where the plugin expects it to be. So this is not a blocker but I would think an easy fix. Looks like this is not the only android tool faced with this issue.

Maybe for backwards/forwards compatibility you can just remove the auto-append of "\tools" to the forced "target location". Then the user can jsut point the target to Platform-tools directory directly.

0
Comment actions Permalink

As a workaround for the second issue you can relocate work directory to a path without spaces, for example to \ProgramData\
It can be specifies inside buildAgent.properties config file.

Android runner is an unofficial plugin, and at the moment we concentrate our resources on TeamCity core components and features.
But the plugin sources are open, and we welcome patches.

Thanks
Michael

0

Please sign in to leave a comment.