Reputation: 59069
I've start developing android applications. but My PC has so poor resource cpu and ram for using eclipse so I'd like to develop by CLI javac..
How can I use CLI for developing android?
Upvotes: 0
Views: 220
Reputation: 45
"After that, just call 'ant compile'"
I built a CLI app and used "javac" instead of "ant compile" and it was MUCH faster.
======================================
Is the above wrong or just confusing? I meant to say javac is much better than GRADLE, but to a certain extent both are true. Sorry.
Upvotes: 0
Reputation: 16417
Basically after you have downloaded and installed the SDK and all the components, you just type 'android start project' with the right arguments and this is preparing everything for you.
Use your preferred editor to write some code in the src/...(package path).../ folder, you can also add any jar file in the libs and the layout or other resources, everything will be picked up automatically
After that, just call 'ant compile' or 'ant install' from the root folder of your application to compile or to compile and install on a real or virtual device.
Call 'android' without any argument and follow the right menus to create or launch a virtual device. There are also other tools you can launch directly from the command line like ddms, hierarchy viewer and such.
(I am all for vi editing and really hate Eclipse for a lot of different reasons, including eating computer resources for nothing). Doing Android development on the command line is really not that difficult and makes your code so much cleaner (at least as clean as you make it)
Upvotes: 1
Reputation: 28422
You could do everything you need from CLI: http://d.android.com/guide/developing/other-ide.html
Upvotes: 1