2014-02-23 66 views
0

我收到此錯誤總是有這種「安裝錯誤:INSTALL_FAILED_OLDER_SDK」

package com.example.test1; 

import android.R; 
     import android.os.Bundle; 

import android.app.Activity; 

public class MainActivity extends Activity { 

@Override 
protected void onCreate(Bundle savedInstanceState) { 
    super.onCreate(savedInstanceState); 
    setContentView(R.layout.activity_list_item); 
} 


} 

作出了新的項目。檢查了所有連接

+0

將您的minsdkversion更改爲manifest.xml文件 –

+0

我應該從哪裏做我T' – user3327752

+1

發佈您的manifest.xml文件。將其轉換爲manifest.xml文件 –

回答

1

此錯誤表示您想要在Android的版本低於您指定的最低API級別的設備上運行應用程序。

首次在創建項目時遇到指定目標和最小sdkVersions:
Check-圖1. Eclipse中的新Android App項目嚮導。在: http://developer.android.com/training/basics/firstapp/creating-project.html

最低要求SDK是您的應用支持的最低版本的Android。這在初始設置/創建時在清單中定義。現在

,在你的清單,你需要看看:

android:minSdkVersion 

An integer designating the minimum API Level required for the application to run. The Android system will prevent the user from installing the application if the system's API Level is lower than the value specified in this attribute. You should always declare this attribute.

從應用程序清單 - >使用SDK:
http://developer.android.com/guide/topics/manifest/uses-sdk-element.html

瞭解更多關於清單: http://code.tutsplus.com/tutorials/android-sdk-project-manifest--mobile-20606