Re: [android-developers] Proguard fails on second run with Conversion to Dalvik format failed with error 1

2012-01-09 Thread Peeyush Varshney
just call given below line and comment previous one in given location
\tools\proguard\bin

#call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %*
call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %1 %2 %3 %4 %5 %6
%7 %8 %9


On Mon, Jan 9, 2012 at 4:29 PM, Stephan Wiesner
wrote:

> Hi I am trying to get proguard running but keep running into problems.
> I use Eclipse and have a fresh system (Java, Eclipse, everything freshly
> installed and updated, keystore created new in eclipse)
>
> Export of signed APK works exactly once!
> On second run (no changes in the code or the configuration) I get an error
> (see below)
> This happens on different apps, even  newly created with no custom code of
> mine at all, and on different machines.
>
> My project.properties just contain:
>
> target=android-7
> proguard.config=proguard.cfg
>
> my proguard was not touched at all (eclipse default)
>
>
>
>
> com.android.ide.eclipse.adt.internal.build.DexException: Conversion to
> Dalvik format failed with error 1
> at
> com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(BuildHelper.java:756)
> at
> com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(ExportHelper.java:207)
> at
> com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.doExport(ExportWizard.java:290)
> at
> com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.access$0(ExportWizard.java:229)
> at
> com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard$1.run(ExportWizard.java:214)
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>
>
> Any help apreciated!
> Thanks,
> Stephan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Thank & Regards
Peeyush Varshney

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Proguard fails on second run with Conversion to Dalvik format failed with error 1

2012-01-09 Thread Nikolay Elenkov
On Mon, Jan 9, 2012 at 7:59 PM, Stephan Wiesner
 wrote:

> Export of signed APK works exactly once!
> On second run (no changes in the code or the configuration) I get an error
> (see below)
> This happens on different apps, evenĀ  newly created with no custom code of
> mine at all, and on different machines.
>

Replacing the ProGuard jars with the newest ones (from the project's website)
fixes this error for me (happens every time with the ADT libs).

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Proguard fails on second run with Conversion to Dalvik format failed with error 1

2012-01-09 Thread Stephan Wiesner
Hi I am trying to get proguard running but keep running into problems.
I use Eclipse and have a fresh system (Java, Eclipse, everything freshly
installed and updated, keystore created new in eclipse)

Export of signed APK works exactly once!
On second run (no changes in the code or the configuration) I get an error
(see below)
This happens on different apps, even  newly created with no custom code of
mine at all, and on different machines.

My project.properties just contain:

target=android-7
proguard.config=proguard.cfg

my proguard was not touched at all (eclipse default)




com.android.ide.eclipse.adt.internal.build.DexException: Conversion to
Dalvik format failed with error 1
at
com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(BuildHelper.java:756)
at
com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(ExportHelper.java:207)
at
com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.doExport(ExportWizard.java:290)
at
com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.access$0(ExportWizard.java:229)
at
com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard$1.run(ExportWizard.java:214)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)


Any help apreciated!
Thanks,
Stephan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en