adb install not working for downloaded files

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

adb install not working for downloaded files

Postby sawatdee » Tue Aug 10, 2010 1:44 pm

When I build an apk on my own system, I can use adb install <filename> to install it and run it in the emulator. But when I download an apk, I get the following error:
EOCD not found, not Zip
file '<filename>' is not a valid zip file

Is this normal, or do I probably have something set up wrong? I would like to run some apps through the emulator because I don't own a device.
sawatdee
Freshman
Freshman
 
Posts: 2
Joined: Tue Aug 10, 2010 1:35 pm

Top

Re: adb install not working for downloaded files

Postby blundell » Tue Aug 10, 2010 2:07 pm

Check the apk of the file you downloaded, can you open it in a program like winzip without it saying "it's corrupt" as I believe that may be your problem
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Re: adb install not working for downloaded files

Postby sawatdee » Tue Aug 10, 2010 2:18 pm

You're right. I downloaded a different one and it installed just fine. What could be the problem with the apk that didn't work? Did the developer do something wrong? I have heard of lots of people having this problem, so it is somewhat common.
sawatdee
Freshman
Freshman
 
Posts: 2
Joined: Tue Aug 10, 2010 1:35 pm

Re: adb install not working for downloaded files

Postby blundell » Tue Aug 10, 2010 2:32 pm

It'll just be a corrupt download either between you and the server or the server and the uploader. Happens alot.
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 2 guests