code009
code009

Reputation: 31

invalid APK file

Hi i am new to android dev.

getting error ..

[2011-01-17 11:15:48 - TriviaGK] Installation failed due to invalid APK file!
[2011-01-17 11:15:48 - TriviaGK] Please check logcat output for more details.
[2011-01-17 11:15:48 - TriviaGK] Launch canceled!

plz tell where is logcat stored and how to debug this.

Also another app is running successfully in same enviroment.

Please Help android geeks.

Upvotes: 3

Views: 22643

Answers (6)

Josh
Josh

Reputation: 1

Zip aligning a file can also cause this issue. If you are having it, try uploading the signed APK file (prior to zipalign) to your device and see if the problem persists. If the problem hets fixed, then ZIPALIGNING it is not working properly.

Upvotes: 0

MartijnvdB
MartijnvdB

Reputation: 1002

Small chance that you have the same problem, but still: After viewing the Logcat output I noticed that your Android project should not contain (or at least not start with) an underscore (_).

edit: As I see now, the console log you posted has your project name in it, and does not contain any underscores. So this answer won't solve your problem, but might still be usefull to others.

Upvotes: 0

pesho hristov
pesho hristov

Reputation: 2060

For me the problem appeared to be that I made archive of the "www" folder - tar.gz one, for backup - on the same place where the "www" folder itself is - inside the "assets" folder. And that archive was causing the error. All other projects were launching fine. And when I deleted this archive - the error was gone.

PS: when I made .zip archive of the "www" folder - and the project could run fine with no problems :D ... haha :D ...

Upvotes: 0

A.A. Grapsas
A.A. Grapsas

Reputation: 782

I know this question was asked in January, but, did you try cleaning the build? I just got this issue and solved it by going to Project --> Clean... and then running that. It'll delete your APK's and then when you run they'll be rebuilt. Worked for me!

Upvotes: 4

Joakim Engstrom
Joakim Engstrom

Reputation: 6393

Check the default.properties file to see if the target-sdk (which version of android you want the app to be targeted to) and be sure that you actually got the sdk for that version of Android.

If you don't, either download the right SDK or change the target sdk in default properties.

Upvotes: 1

mitch
mitch

Reputation: 995

In Eclipse, go to Window->Open Perspective->Other and you should see DDMS as an option. If you choose this perspective LogCat is shown by default along with some other debug tools. If it does not show up, you can find it under Window->Show View->Other->Android->LogCat.

Upvotes: 2

Related Questions