简体   繁体   English

Android应用未安装(APK)

[英]Android Application Not Installing (APK)

I tried porting one of my old simple Java apps to Android and exporting as an APK. 我尝试将我的一个旧的简单Java应用程序移植到Android并导出为APK。 It installs and runs fine on the Emulator, but when I attempt to install it on a real Android phone, it just says "Application not installed" 它可以在模拟器上安装并正常运行,但是当我尝试在真实的Android手机上安装它时,它只会显示“未安装应用程序”

I am using the ADT for Eclipse plugin to export the APK. 我正在使用ADT for Eclipse插件导出APK。

I assume the issue must be with the manifest since the program won't even install nor launch (either that or the export process itself). 我认为问题肯定出在清单上,因为该程序甚至不会安装或启动(无论是安装程序还是导出过程本身)都不会安装或启动。 I haven't tried doing it from the command line yet.... I've been avoiding it. 我还没有尝试从命令行执行此操作。...我一直在避免这样做。 I will try that if no one can find any problems with my manifest: 如果没有人可以找到我的清单,我将尝试:

<?xml version="1.0" encoding="utf-8"?>
<manifest package="bg.java.mobile"
  android:installLocation="auto" android:versionCode="1" android:versionName="1.0" xmlns:android="http://schemas.android.com/apk/res/android">
    <application 
    android:icon="@drawable/icon" android:label="Heat Index" android:logo="@drawable/icon">
    <activity android:name="AppLauncher"
         android:label="@string/app_name" android:multiprocess="true" android:launchMode="singleInstance" android:screenOrientation="user">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    </application>
</manifest>

Have you enabled 'unknown sources' on your phone? 您是否在手机上启用了“未知来源”? (Settings->Applications) Else you can't install apk files. (设置->应用程序)否则,您将无法安装apk文件。 http://i.stack.imgur.com/Zqr5G.png http://i.stack.imgur.com/Zqr5G.png

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

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