简体   繁体   English

错误设备上未安装Android应用程序?

[英]ERROR Android app not installed on device?

I have made a Android app and when I finished it and tested it through eclipse and Android SDK it works fine.. But when I test it on my android phone and install it with an app called AppInstaller and run it then it says "app not installed on device".. WTF? 我已经制作了一个Android应用程序,当我完成它并通过Eclipse和Android SDK对其进行了测试时,它可以正常工作。但是,当我在Android手机上对其进行测试并使用名为AppInstaller的应用程序进行安装并运行它时,系统会显示“ app not安装在设备上”。WTF? How is that possible when its in the menu and I can tap on it? 当它出现在菜单中并且我可以点击它时,怎么可能?

This is my code. 这是我的代码。 (And yes I did X out the website on purpose) (是的,我故意将网站X删除)

MANIFEST.XML: MANIFEST.XML:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="XXXXXXX"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="10" />
<uses-permission android:name="android.permission.INTERNET" />

<application
    android:icon="@drawable/new_launcher"
    android:label="@string/app_name"
    android:permission="android.permission.INTERNET"
    android:description="@string/app_description">

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

I've recently had this problem with an app that I was writing to experiment with widgets. 我最近在编写一个用于尝试小部件的应用程序时遇到了这个问题。

The problem that I had turned out to be that I had exported the app unsigned, which has worked previously. 我原来发现的问题是我导出了未签名的应用程序,该应用程序以前可以正常工作。 It seems that you can't install an unsigned app that contains a widget. 看来您无法安装包含小部件的未签名应用。 Signing the app when exporting it allowed it to be installed ok. 在导出应用程序时对其进行签名,即可正常安装该应用程序。

You've set the following permission twice: 您已两次设置以下权限:

android:permission="android.permission.INTERNET"

Getting rid of one of them should clear it up. 摆脱其中之一应该清除它。

确保您使用的是Java 6,因为Java 7构建的软件包至少存在问题。

"app not installed on device" is a message I've gotten when the SD card is mounted (and unavailable), or when trying to tap a shortcut on the desktop to an app that's been removed in some way. “已在设备上未安装应用”是安装SD卡(并且不可用)时,或者试图在桌面上点击某个已通过某种方式删除的应用的快捷方式时收到的消息。 If this is the problem I'd guess your case would be the former. 如果这是问题所在,我想您的情况将是前者。

Either your phone Api version is less than 10. ie below OS 2.3 您的手机Api版本低于10。即低于OS 2.3。

or, if you have previously installed same application on that phone. 或者,如果您先前已在该电话上安装了相同的应用程序。 Try uninstalling that before installing new one. 在安装新的之前,请尝试将其卸载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM