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

     [echo] Creating output directories if needed...

     [echo] Generating / from the resources...

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

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

     [echo] Converting compiled files and external libraries into bin/
    [apply] trouble writing output: SHA-
1 MessageDigest not available

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




Sponsored Links

Other Threads

1. cara ganti keyboard swype

misi suhu2..
cara ganti keyboard swype gimana yah?
kan kalo keyboard standard, tinggal tekan dan tahan tombol yang ada di
pojok kiri bawah. trus tinggal ganti deh di input methods, kalo swype
gimana yah?

"Indonesian Android Community [id-android]" 

2. Where permissions has to declare in a application.

Hi All,

I have a doubt

For using Phone contact we have to set permission in menifest file

  <uses-permission android:name="android.permission.READ_CONTACTS" />
  <uses-permission android:name="android.permission.WRITE_CONTACTS" />

My doubt is where(in which file) it is written in Contact Application
that you have to set these permissions.
because i want to make a sample application and i want if anyone want
to get data from my application, have to get some permission.

Please let me know that where we plan which permission has to get by
other application to get data from a application.

Sohan Badaya


3. Where permissions has to declare in a application.

4. Bluetooth working only from command line after porting

5. AndroidTestCase fails with dependency on third project

6. Setting email jadi yahoo.

7. SecurityException in AccountManager.get(mContext).getPassword(account);