Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After I remove the apk, whenever I start Debug it tells me the package is not installed

I have my Emulator open, and using Command Prompt I remove my application. I didn't closed the Emulator.

Then I go to Eclipse and hit Debug, but doesn't deploy the apk to the emulator, just tells me the package not yet registered with the system.

New package not yet registered with the system. Waiting 3 seconds before next attempt.

Restarting the emulator is not an option, as that takes 10-15 minutes.

What I am doing wrong?

like image 459
Pentium10 Avatar asked Feb 26 '10 10:02

Pentium10


People also ask

Why does it say that the APK was not installed?

Corrupted storage, especially corrupted SD cards, is one of the most common reasons why Android app not installed error occurs. Unwanted data might contain elements that disturb the storage location, causing Android app can't install error.

How do I debug an installed APK?

To start debugging an APK, click Profile or debug APK from the Android Studio Welcome screen. 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.

What does app not installed as package mean?

Insufficient Storage- If your Android device is too full, it causes the package installer to malfunction, leading to the 'App not Installed' pop-up. Even a corrupted Internal Storage Card or an SD card which is not mounted properly may lead to clogged storage and thus give you the App not installed error message.


3 Answers

I have encountered this occasionally. Doing a clean project before rebuilding and redeploying seems to do the trick.

like image 109
Graeme Duncan Avatar answered Oct 19 '22 15:10

Graeme Duncan


This is eclipse (the point is eclipse can not run your app because can not start the right intent because can not find the right package) and one of the workaround of this is to rename your package in the manifest for example rename

package="com.hernblog.GreenThumbs" 

to

package="com.hernblog.GreenThumbs1"

compile and build this, then put it back to the name you wanted

package="com.hernblog.GreenThumbs"

works as a charm :)

like image 33
Lukap Avatar answered Oct 19 '22 15:10

Lukap


Clean and re-build may not help. So, in that case remove the app from your device. Then re-run your project on your device. That will help.

like image 23
settaratici Avatar answered Oct 19 '22 14:10

settaratici