Samik Bandyopadhyay
Samik Bandyopadhyay

Reputation: 868

Error executing aapt: Cannot run program, CreateProcess error=5, Access is denied: CreateProcess error=5, Access is denied

Today I just updated the Android SDK on Windows 7 with the Android SDK Manager and started getting error during build in Eclipse which says

"Error executing aapt: Cannot run program ... CreateProcess error=5, Access is denied: CreateProcess error=5, Access is denied"

I'm using Eclipse Juno and Kepler. I've also tried the bundled Eclipse that comes with Android SDK but faced the same issue everywhere.

I'm using Android build tool version 18.0.1-

Upvotes: 4

Views: 15349

Answers (2)

Ryan Shillington
Ryan Shillington

Reputation: 25217

It's Windows security that's not allowing that process to run. Here's what I did:

  • Open up Windows explorer, and navigate to aapt.exe (or whatever program is supposed to run)
  • Right click on it and choose "Properties"
  • Go to the "Security" tab and click the "Edit" button
  • Select your username in the top box and in the bottom one give "Full Control" or at least "Read & Execute"
  • Click OK to get rid of these boxes

Now your user can execute that program. Yay!

Upvotes: 1

Dr Evil
Dr Evil

Reputation: 101

Go to your eclipse folder, open eclipse.ini and add the lines

-vm
C:\Program Files\Java\jdk1.6.0_29\jre\bin\server\jvm.dll

Replace jdk1.6.0_29 with the version code of your jdk. These lines should be added above

-vmargs

Upvotes: 4

Related Questions