Android“您的手机上未找到应用程序”从启动器..?
当我从 eclipse(运行)启动我的应用程序时,它会在我的手机或模拟器上启动,正在工作...这也会将应用程序放入应用程序抽屉中,但是,当我按下它时,它会显示:“应用程序未安装在您的手机上”。这并不是因为它只是我主屏幕上的一个空快捷方式,它实际上显示在抽屉中。我尝试删除并重新安装它,但这也没有帮助。
附件是我的 AndroidManifest.xml,因为我怀疑问题来自那里。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="my.application.package"
android:versionCode="1"
android:versionName="1.0">
<uses-permission android:name="android.permission.INTERNET" />
<application android:icon="@drawable/icon" android:label="@string/app_name" android:permission="android.permission.INTERNET">
<activity android:name=".UserInteraction" android:permission="android.permission.INTERNET"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".WebViewClass"
android:label="@string/app_name"/>
</application>
</manifest>
When I launch my application from eclipse (run), It starts up on my phone or emulator, working... This also puts the app in the appdrawer, however, when I press it it says: "Application is not installed on your phone". This is not because it's just an empty shortcut on my homescreen, it actually shows up in the drawer. I tried removing and reinstalling it, but that didn't help either.
Atached is my AndroidManifest.xml since I suspect the problem coming from there.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="my.application.package"
android:versionCode="1"
android:versionName="1.0">
<uses-permission android:name="android.permission.INTERNET" />
<application android:icon="@drawable/icon" android:label="@string/app_name" android:permission="android.permission.INTERNET">
<activity android:name=".UserInteraction" android:permission="android.permission.INTERNET"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".WebViewClass"
android:label="@string/app_name"/>
</application>
</manifest>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
@MByD 说得很对,但它不仅仅是“不需要”,而是“主动给你带来问题”。摆脱
android:permission
属性。您是说启动器必须持有 INTERNET 权限才能启动您的应用程序,而启动器可能没有该权限。@MByD is spot on, but it's not just "not needed" but "actively causing you problems". Get rid of the
android:permission
attributes. You are saying that the launcher has to hold theINTERNET
permission to launch your app, and the launcher probably does not have that permission.