Error creating dex file while building using ANT

by phoenix » Sat, 24 Oct 2009 02:46:22 GMT


Sponsored Links
 I created a sample project using the below command:
android create project --target 1 --name HelloAndroid --path ./
HelloAndroid --activity HelloAndroid --package com.helloandroid

then attempted to build it using ANT. It gives the below error while
creating the .dex file.

C:\workspace\HelloAndroid>ant debug
Buildfile: build.xml
    [setup] Project Target: Android 1.1
    [setup] API level: 2

dirs:
     [echo] Creating output directories if needed...

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

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

compile:
    [javac] Compiling 1 source file to C:\workspace\HelloAndroid\bin
\classes

dex:
     [echo] Converting compiled files and external libraries into bin/
classes.de
x...
    [apply]
    [apply] trouble writing output:
java.security.NoSuchAlgorithmException: SHA-
1 MessageDigest not available

BUILD FAILED
C:\android-sdk-windows-1.6_r1\platforms\android-1.1\templates
\android_rules.xml:
129: apply returned: 2

Total time: 5 seconds

Can you please suggest how should I solve this problem.

--~--~---------~--~----~------------~-------~--~----~



Error creating dex file while building using ANT

by RichardC » Sat, 24 Oct 2009 08:04:36 GMT


 What does:

java -vesion

return?

--
RichardC



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. How to check a activity have exit?

Hi,

Does anyone know how to check if a activity have exit, I know the
activity's package name, I use the 'ps' to check the process list. but
android did not free the process after activity quit.

Pan

--~--~---------~--~----~------------~-------~--~----~

2. Andreas Constantinou on Mobile OS's and App Stores

Material just published of interest to Android Developers:

http://ecommconf.com/blog/2009/01/mobile-operating-systems.html

Android got a bit more of a knocking than what I'd expect.

Regards

Lee

PS Don't forget the early bird for the conf. closes TODAY http://eCommConf.com

--
Gmail: lee.dryburgh
Twitter: leedryburgh
Skype: leedryburgh

LinkedIn:
www.linkedin.com/in/leedryburgh

Facebook:
www.facebook.com/profile.php?id=531428361

--~--~---------~--~----~------------~-------~--~----~

3. Exception: WakeLock finalized while still held

4. Android Development Phone Setup - Vodafone India

5. Share data between tabbed intents

6. Replace the current view by an other view

7. After the ADT 0.9 update, Eclipse can not create R.java automatically