Skip to content Skip to sidebar Skip to footer

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 outp

Solution 1:

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!

Solution 2:

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.

Solution 3:

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.

Solution 4:

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 ...

Solution 5:

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.

Post a Comment for "Invalid Apk File"