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. about sync

Is the database different between ContentProvider's databse and
Media's database?

if yes,

ContentProvider's databse can sync with contentresolver, then how can
i sync the Media's database?

-- 

2. How to autostart shell script when os boots up

I have a shell script which I want it to be executed right after android 
boots up, 

Anyone has make it work on Froyo without recompiling system image?

cheers,
Jian

-- 

3. Detecting an answered outgoing call

4. mac layout editor issues ...

5. Preferences not save after restart app

6. 3D Game Developement

7. How to see Android Manifest.xml