Android build with Ant

My project builds fine within IntelliJ, I can compile testing and production versions using the menu options.

I can also Generate Ant Build with no issue, but when I run the Ant build i have problems.

My project has a module dependency on another project.  I have all my resources in the 'other' module, in this case the Activities Icon file and Ant doesn't seem to be searching in the other module before throwing the error.

Here's what I'm getting:

     [echo] Generating / from the resources...
[aapt.exe] D:\projectName\AndroidManifest.xml:16: error: Error: No resource found that matches the given name (
at 'icon' with value '@drawable/myIcon').

1 comment
Comment actions Permalink

Hello, Jason

Unfortunatelly, now we don't support generating Ant build for Android applications. build.xml file is generated automatically (when creating a new Android module), you don't have to perform 'Generate Ant Build' for it. But When you add some dependency, build.xml and files are not affected, so you have to edit them manually. It seems, there is some information about it here. Also, you can create an issue about it in our bugtracker, if you want.


Please sign in to leave a comment.