The application is not installed on the phone

I run the application in the emulator, it works successfully, and the application icon is displayed in the emulator menu, but when I try to run this application again from the emulator menu, it cannot let me launch from it and display the β€œToast application is not installed on your phone" .

In the image, the icon of my application is rounded red.

enter image description here

+7
source share
7 answers

This can happen if your MainActivity declared twice in your AndroidManifest.xml,

first as parking>

 <activity android:name=".MyActivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> 

and then simply declared as:

 <activity android:name=".MyActivity" /> 

So check this out and remove the second additional ad.

+22
source

Also, this happened to me once when I changed the launch activity. Reinstalling the application and restarting the phone makes it work.

+3
source

I had the same error when there was a syntax error in my widget provider. Instead

 android:configure="com.android.worldagendaapp1.WidgetConfig" 

I wrote

 android:configure="com.android.worldagendaapp1.WidgetConfig" 

perhaps this may be useful for those who are still experiencing a mistake

+1
source

Delete the declaration of the main activity of the repetition in the manifest file. It works for me

0
source

Another scenario is when you can receive such a message if you created a shortcut for an earlier version and then moved the launch operation to another package in the new version. (application package remains the same).

On my ZTE Blade, the shortcut is simply removed during the update.

On HTC Nexus One, the shortcut remains there, but clicking on it has no effect.

More here

0
source

Funny, but I solved the problem by removing the permission from the activity tag

I have a code as below:

 <application android:allowBackup="true" android:debuggable="false" android:icon="@drawable/app_icon" android:permission="android.permission.ACCESS_FINE_LOCATION" android:label="@string/app_name" android:theme="@style/Theme.Sherlock.Light.DarkActionBar" > 

I have permission to delete

  <application android:allowBackup="true" android:debuggable="false" android:icon="@drawable/app_icon" android:label="@string/app_name" android:theme="@style/Theme.Sherlock.Light.DarkActionBar" > 
0
source

I had this to include WRITE_EXTERNAL_STORAGE twice in the manifest. This affected only some user phones, my test phones and the emulator worked fine, and the lint did not give any warnings. A few months ago, I transferred several denominations to one star before I discovered the reason:

 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> ... <application android:permission="android.permission.WRITE_EXTERNAL_STORAGE"... 

Removing the second is fixed.

0
source

All Articles