Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

android - Failed to install myapp.apk on device 'emulator-5554'

I'm trying to run an android app but it's throwing these three lines in red.

[2012-07-08 20:39:23 - myapp] Failed to install myapp.apk on device 'emulator-5554': An attempt was made to access a socket in a way forbidden by its access permissions
[2012-07-08 20:39:23 - myapp] java.io.IOException: An attempt was made to access a socket in a way forbidden by its access permissions
[2012-07-08 20:39:23 - myapp] Launch canceled!

I've put the tools and plateform folder into enviormental variable and also tried every possible thing which can be done but nothing change.

I've tried it installing manually and its says by "adb install myapp.apk" and I get

protocol error
rm failed for /data/local/tmp/myapp.apk, No such file or directory

Edited: I can't install anything using SDK Manager I m getting

Fetching URL: http://developer.sonymobile.com/edk/android/repository.xml
Permission denied: recv failed
Done. Nothing was installed.

kindly help me to resolve it

thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try window->show view->devices->view menu->Reset adb and again run application.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...