Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android APK won't generate when doing run

I have several android application and sample code I have downloaded/coded. All these are in my eclipse workspace. I have installed all the required plugins/images for android development on eclipse.

The projects compile perfectly you you do Build (I get "Build Sucess!") and will generate an APK package when doing an Export signed/Unsigned.

The problem is here: if I do run in either an emulator or connected device I get:

Error generating final archive: java.io.EOFException

With:

Location : Unkown
Type : Android Packaging Problem

I am running openSUSE 12.1 with Eclipse 4.2 (tried also 3.5 but no luck) Latest ADT and android SDK Tried compiling for all android versions (1 to 16)

Please help because I am tired or doing export and adb install to place the package on my device.

like image 576
user1538492 Avatar asked Jul 19 '12 16:07

user1538492


People also ask

Why APK is not getting installed?

By default Android allows installation only from the Play Store. In order to allow installation of apps from other sources, open the Settings app and locate "Install Unknown Apps" under Privacy/Security settings. Enable the permission for the app which you use to install your APK.

How do I run an APK file in Android Studio?

Or, if you already have a project open, click File > Profile or Debug APK from the menu bar. In the next dialog window, select the APK you want to import into Android Studio and click OK. Android Studio then displays the unpacked APK files, similar to figure 1.

Where is the APK generated in Android Studio?

How you can extract an APK file using Android Studio? In the Android menu, go to Build > Build Bundle(s) / APK (s) > Build APK(s). Android Studio will start building the APK for you. Once done, a pop-up on the bottom right will notify you of its completion.


1 Answers

Delete the following file and try again.

C:\Documents and Setting\User\Local Settings\Application Data\android\debug.keystore .

like image 165
abbas.aniefa Avatar answered Oct 20 '22 06:10

abbas.aniefa