eclipse 尝试在我的手机上安装应用程序时解析错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9083332/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
parse error trying to install apps on my phone
提问by chickenchaser
I'm having issues trying to put my own apps on my phone. I've looked around and no one has been able to help me so far. A bit of background information, I'm using the latest version of eclipse IDE, trying to get apps onto my galaxy s. I tried installing apps through gmail. When I go to install the app I get a parse error and it doesn't install. I have also tried using this method to install my app onto a htc wildfire s however I get the same issue. Is there a quick fix for this? Thanks for your time; any insight into what the problem is will be great.
我在尝试将自己的应用程序放在手机上时遇到问题。我环顾四周,到目前为止没有人能够帮助我。一些背景信息,我正在使用最新版本的 eclipse IDE,试图将应用程序安装到我的 Galaxy 上。我尝试通过 gmail 安装应用程序。当我去安装应用程序时,我收到一个解析错误,但它没有安装。我也尝试使用这种方法将我的应用程序安装到 htc wildfire s 上,但是我遇到了同样的问题。有没有快速解决这个问题的方法?谢谢你的时间; 对问题所在的任何见解都会很棒。
Things I've tried: Ok I still have a parse error when I try installing my app. The min sdkversion was set to 9 which seems right to me as that is the api level for gingerbread which galaxy s uses (i think). I haven't set a target sdkversion yet as according to the android developer guide it if not stated it defaults to the minsdkversion. I also tried setting the minsdkversion to 1 and still no luck. Any ideas?
我尝试过的事情:好的,当我尝试安装我的应用程序时,我仍然遇到解析错误。min sdkversion 设置为 9,这对我来说似乎是正确的,因为这是 Galaxy s 使用的姜饼的 api 级别(我认为)。我还没有设置目标 sdkversion,根据 android 开发者指南,如果没有说明它默认为 minsdkversion。我也尝试将 minsdkversion 设置为 1,但仍然没有运气。有任何想法吗?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.guitartunergreatness.jj"
android:versionCode="1"
android:versionName="7" >
<uses-sdk android:minSdkVersion="7" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:debuggable="true">
<activity
android:name=".GuitarTunerActivity"
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>
采纳答案by arjoan
Parse error usually occurs if your app supports a higher version of Android than the version of OS on your phone. Egs: your phone has 2.1 and application supports 2.2 onwards
如果您的应用支持的 Android 版本高于手机上的操作系统版本,通常会发生解析错误。例如:您的手机有 2.1 并且应用程序支持 2.2 以上

