Ashley
Ashley

Reputation: 31

Eclipse "Permission denied" error when trying to launch app

I'm trying to get started creating some apps for Android but I keep running into this Eclipse error:

NAND: could not read file...android-sdk_r07-windows\android-sdk-windows/platforms\android-7\images/system.img, Permission denied.

Do you think I should delete the package and re-install? I'm wondering whether it could be a corrupted file, although it says "permission denied" which makes me think not so. I just installed the plugin for Eclipse and created my emulator but I can't run because of this error.

I have googled searched this and could not find a relevant answer. Any help would be greatly appreciated. :)

Upvotes: 3

Views: 3443

Answers (7)

X-Squad
X-Squad

Reputation: 1

has same problem. Solved when i changed target from Android to Google API enter image description here enter image description here

Upvotes: -1

milind
milind

Reputation: 970

I suggest you to log in as a administrator if you are using Windows 7. When you open Eclipse, right-click on the Eclipse icon and select Run as Administrator.

Upvotes: 1

Imran Suhail
Imran Suhail

Reputation: 126

dude you should get the latest sdk version. also you can try checking if your user has full permissions on the sdk fodler as well as eclipse workspace

Upvotes: 0

JLund
JLund

Reputation: 516

The file seems to be locked or otherwise could not be read.

First you could try to run Eclipse as an Administrator (especially if you are running Windows 7, which has stricter file access than XP).

May I suggest that you download Process Explorer http://technet.microsoft.com/en-us/sysinternals/bb896653 and hit Control-F to search for system.img. Then you'll probably find which process is locking up your file. You can kill the handle in the bottom view of process explorer.

If all else fails you can reinstall Eclipse and/or ADT from scratch. Good luck!

Upvotes: 1

billygoat
billygoat

Reputation: 21984

This looks like file locking in windows. I will download unlocker for windows and check for processes that have lock on the folder you mentioned. What happens when you run emulator in the command line?

Upvotes: 1

jbranchaud
jbranchaud

Reputation: 6087

The documentation on the Android Developers Site is very helpful. It couldn't hurt to uninstall the SDK and then try a reinstall closely following the directions given on the above link.

Upvotes: 0

Yar
Yar

Reputation: 4561

I suggest reading developer.android.com - the section about SDK, ADT is not so big. And then maybe reinstalling the SDK step by step.

Upvotes: 0

Related Questions