Please note that on a windows machine, the BuildHelper is writing the
temporary .pro file to the windows temp folder. If this is under
"Local Settings\Temp" then the space causes a problem and you can't
pass that full file name into the proguard.bat batch file.

NOTE also that if your workspace is also under a folder who has spaces
in it then this will cause more problems. You won't be able to pass
the other parameter into proguard.bat, and the content within the .pro
file will also have spaces in it when it shouldn't.

If the BuildHelper can be updated to fix this and either use quotes or
(more reliably) use the 8dot3 notation then this should fix it for
windows users. Considering the default for windows is a temp folder
that BuildHelper doens't like, I don't think it's right to ask all
users to move that elsewhere - some users may not be able to due to
local policies. Same with the workspace.

HTH

On Dec 7, 9:17 am, "Michael A." <michael.aki...@gmail.com> wrote:
> Hi,
>
> The missing space support was the problem here; moving the SDK to c:
> \Android seems to have fixed the problem on my install. Thanks again.
>
> Regards.
>
> Michael A.
>
> On Dec 7, 5:40 am, Xavier Ducrohet <x...@android.com> wrote:> Michael,
>
> > We're fixing ADT to properly report what the problem really is but we
> > just noticed the .bat that proguard ships with doesn't support path
> > with spaces.
> > We'll provide our own .bat for the next tools release but in the mean
> > time you may want to check this.
>
> > Xav
>
> > On Mon, Dec 6, 2010 at 3:37 PM, Michael A. <michael.aki...@gmail.com> wrote:
> > > I'm getting an error when trying to export using Proguard:
>
> > > !MESSAGE Failed to export application
> > > !STACK 0
> > > com.android.ide.eclipse.adt.internal.build.ProguardResultException
> > >        at
> > > com.android.ide.eclipse.adt.internal.build.BuildHelper.runProguard(Unknown
> > > Source)
> > >        at
> > > com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(
> > >  Unknown
> > > Source)
> > >        at
> > > com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.doExport(U
> > >  nknown
> > > Source)
> > >        at
> > > com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.access
> > > $0(Unknown Source)
> > >        at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard
> > > $1.run(Unknown Source)
> > >        at org.eclipse.jface.operation.ModalContext
> > > $ModalContextThread.run(ModalContext.java:121)
>
> > > This is a brand new, clean project in Eclipse Helios (Win7) with - as
> > > far as I know - the latest plugin and SDK. I'm guessing that there's
> > > something in my Eclipse/Windows environment that needs to be set up.
> > > Any tips?
>
> > > Regards,

-- 
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

Reply via email to