Installation error: INSTALL_FAILED_OLDER_SDK

前端 未结 19 1651
太阳男子
太阳男子 2020-11-28 09:37

I am new to Android development and I want first to get the Hello World application running. I am using Eclipse IDE and the Android 4.0.3 version 15 SDK. I copi

19条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 10:05

    It is due to android:targetSdkVersion="@string/app_name" in your manifiest file.
    Change it to:

    
    

    The targetSdkVersion should be an integer, but @string/app_name would be a string. I think this causing the error.

    EDIT:
    You have to add a default intent-filter in your manifiest file for the activity. Then only android can launch the activity. otherwise you will get the below error in your console window.

    [2012-02-02 09:17:39 - Test] No Launcher activity found!
    [2012-02-02 09:17:39 - Test] The launch will only sync the application package on the device!
    

    Add the following to your tag.

      
      
        
        
      
    
    

提交回复
热议问题