How to create an Ant build for an Android project using IntelliJ?
I'm working on an Android app in IntelliJ IDEA and I want to be at a point where I have an Ant build process that builds the app. I used the IDE's tool to create the Ant build script and properties, I've added it to the tools, so I can run the Ant build through the IDE, and in the IDE it all appears to work ok, however I cannot see that it has actually produced an APK file.
Am I misunderstanding the output location, or is it to be expected that the Ant script only compiles the Java source to class files, and isn't meant to produce the APK? If so, can anyone point me to any resources showing me how to extend the Ant script to produce an APK file?
Also, if anyone knows of any sources of information explaining how to do these I'd be very grateful:
- Sign an Android APK with a production certificate
- Change the Google Maps API key during the build process to use a production key
- Obfuscate the application using Proguard
I'm completely fresh to Ant, so appreciate any help you can offer.
Thx
请先登录再写评论。
Hello Oliver,
Right now IntelliJ IDEA generates an Ant build script when you create a new
Android module. "Generate Ant build" indeed doesn't generate any Android-specific
steps; you can vote for http://youtrack.jetbrains.net/issue/IDEA-53006 to
get notified when this is implemented.
General questions on setting up an Ant build for Android applications are
out of scope for this forum; you'll probably have better luck getting this
answered on Android forums.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Your message doesn't help me at all.
Whether your product supports it or not, I am using IntelliJ, and I need to get an Ant script up and running.
Can you please let me know whether you think I should edit the autogenerated Ant script to add Android build targets, or whether I am better off creating an Android Ant script and pulling that into IntelliJ?
The main reason I want this script is because IntelliJ has no support for Proguard