tags:

views:

128

answers:

3

I am beginner to Android programming and following the tutorails which is given in android developpeers site and while building my project using ant i am getting below error or build is failing.

C:\Documents and Settings\Administrator\Desktop\Android.K\samples\MyAppProject>ant debug Buildfile: C:\Documents and Settings\Administrator\Desktop\Android.K\samples\MyAppProject\build.xml [setup] Android SDK Tools Revision 6 [setup] Project Target: Android 2.2 [setup] API level: 8 [setup] WARNING: No minSdkVersion value set. Application will install on all Android versions. [setup] Importing rules file: platforms\android-8\ant\ant_rules_r2.xml

-compile-tested-if-test:

-dirs: [echo] Creating output directories if needed... [mkdir] Created dir: C:\Documents and Settings\Administrator\Desktop\Android.K\samples\MyAppProj ect\gen

-resource-src: [echo] Generating R.java / Manifest.java from the resources...

-aidl: [echo] Compiling aidl files into Java classes...

compile: [javac] C:\Documents and Settings\Administrator\Desktop\Android.K\android-sdk-windows\platforms\ android-8\ant\ant_rules_r2.xml:255: warning: 'includeantruntime' was not set, defaulting to build.sy sclasspath=last; set to false for repeatable builds [javac] Compiling 1 source file to C:\Documents and Settings\Administrator\Desktop\Android.K\sam ples\MyAppProject\bin\classes

-dex: [echo] Converting compiled files and external libraries into C:\Documents and Settings\Administ rator\Desktop\Android.K\samples\MyAppProject\bin\classes.dex... [apply] and was unexpected at this time.

BUILD FAILED C:\Documents and Settings\Administrator\Desktop\Android.K\android-sdk-windows\platforms\android-8\an t\ant_rules_r2.xml:268: The following error occurred while executing this line: C:\Documents and Settings\Administrator\Desktop\Android.K\android-sdk-windows\platforms\android-8\an t\ant_rules_r2.xml:125: apply returned: 255

Total time: 12 seconds

A: 

I would suggest using Eclipse to develop your apps. It takes all this ant stuff out of it for you. The eclipse build and deploy has worked very well for me. Probably a quicker solution than trying to troubleshoot the error you are getting. Especially if you are just beginning Android. You can come back to the Ant stuff later if you like.

Anthony Nolan
A: 

Anthony is right ..

As beginner.. start with

  • List item installing eclipse , adt plug in for eclipse, android sdk using avd manager, create an avd emulator and then go ahead with sample applications
success_anil
A: 

There is a great tutorial for beginners here on this site. it walks you through the basics of android till you can stand on your own feet... Try it... http://www.bogotobogo.com/android.html

Shouvik