0

I am trying to export apk file from my Project using Proguard.

I am stuck with:

java.io.IOException: Can't read [C:\DOCUME~1\GSWIER~1\USTAWI~1\Temp\android_7816298505795781618.jar;

I have moved my workspace and android-sdk to directory without spaces as suggested here

I have changed proguard.bat file as mentioned here, too.

The problem seems to be that during build, IDE is creating temp files in directory with spaces which are then passed to ProGuard.

Is there any way to change that directory? Maybe that will solve the problem.

Community
  • 1
  • 1
gswierczynski
  • 3,213
  • 2
  • 20
  • 22
  • Is it picking up the first part of the path (C:\DOCUME~1\GSWIER~1\USTAWI~1\Temp\) from your TEMP environment variable? If so could you not just change it to a path that doesn't contain spaces? – NickT Mar 01 '12 at 14:34
  • I figured out that solution a couple of minutes ago, but maybe there is better than messing with environment variables. So a simple solution is to change this variables for the time of building application for release. In WinXP this can be done by right clicking on My Computer>Advanced>Environment Variables and changing values for TEMP. – gswierczynski Mar 01 '12 at 15:03
  • Glad you fixed it. The best solution is just to use Eclipse for debug builds and use Ant for the release/Proguarded builds. You can set it up so that it produces the output binaries outside the Eclipse workspace and have it sign your apks automatically. – NickT Mar 01 '12 at 15:14
  • Thanks for input NickT. I might check it out. The wizard provided with Eclipse plugin also creates keystore, manages certificates and sings apks - just needs a little tinkering if one wants to also use ProGuard. – gswierczynski Mar 01 '12 at 15:23

0 Answers0