应用程序没有安装在您的手机 [英] Application Not installed in your phone

查看:140
本文介绍了应用程序没有安装在您的手机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行仿真器中的应用程序它的工作原理成功和应用程序的图标显示在仿真器菜单,但是当我尝试再次运行仿真器菜单中的应用程序不能让我从和显示运行敬酒不安装应用程序在你的手机。

I run the application in the emulator it works successfully and the icon of the application is show in the emulator menu but when i try to run again that app from the emulator menu it can't allow me to run from that and display the Toast "Application is Not installed in your phone".

在图像中的红色圆形的是我的应用程序图标。

In the Image the red rounded is my application icon.

推荐答案

这可能发生,如果你有你的 MainActivity 在AndroidManifest.xml中声明了两次,

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

首先作为一个launhcer

first as a launhcer

<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 just declared like:

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

因此​​,检查这个和删除第二个加声明。

这篇关于应用程序没有安装在您的手机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆