2013-11-09 3 views
2

android : minSdkVersion에 오류가있는 이유는 무엇입니까? 또한 android : 아이콘을 기본값으로 변경하려면 어떻게해야합니까? 나는 android : icon = "true"를 시도했지만 잘못되었습니다. 이 이미지 될 것이다android : minSdkVersion & android : icon

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.example.testing" 
    android:versionCode="1" 
    android:versionName="1.0"> 
<uses-sdk android:minSdkVersion="8" /> //Error : <uses-sdk> tag should specify a 
    target API level (the highest verified version; when running on later versions, 
compatibility behaviors may be enabled) with android:targetSdkVersion="?"  


<application android:icon="true" android:label="@string/app_name"> //Error : Boolean 
types not allowed (at 'icon' with value 'true'). 
    <activity android:name=".LoginActivity" 
       android:label="Login to your Account"> 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 

    <!-- Entry for RegisterActivity.class --> 
    <activity android:name=".RegisterActivity" 
       android:label="Register New Account"></activity> 

</application> 
</manifest> 
+0

당신은 안드로이드를 언급해야한다 . like android : icon = "@ drawable/ic_launcher" – Subbu

+0

@SubramanianR 나는 이미 android : icon = "@ drawable/ic_launcher"로 변경했습니다. 하지만 ** 명시 적으로 android : allowBackup을 true 또는 false로 설정해야 함 (기본적으로 true이며 응용 프로그램의 데이터에 대해 보안 의미가있을 수 있음) ** –

+0

저에게 잘 작동합니다. 편집 된 새 매니페스트 파일을 공유 할 수 있습니까? – Subbu

답변

1
  1. android-icon은 그리기 형이 될 것이다. 그것은 부울이 아닙니다.
  2. 공급 대상 SDK 버전도 는 예를 들어,

    안드로이드 :의 minSdkVersion = "14"안드로이드 : targetSdkVersion을 = "17"

1
android:[email protected]/ic_launcher 

은 사용-SDK

이 코드를 추가
android:targetSdkVersion="17" 

그런 다음 프로젝트 -> 청소 -> 확인으로 이동하십시오. 즉,이 다음 단계를 수행 제거, 내부 에러가 있어야 그것을 작동하지 않는 경우

: - : targetSdkVersion을하고 앱 아이콘 당신은 당김 폴더에서 모든 이미지를 언급해야한다

1.Delete the project. 
2.Create new project. 
+0

언급 한 것처럼 모든 것을 변경했습니다. 그러나 아직 경고가 있습니다. 그리고 내가 깨끗한 후에 경고는 사라진다. 그럼 이제 내 코딩이 괜찮다는 뜻인가? 나는 이것에 익숙하지 않고 정말로 확신 할 수 없기 때문에 –

+0

예, 코딩은 완벽하게 괜찮습니다. 청소를 수행하면 .class 파일이 제거되고 프로젝트가 다시 컴파일됩니다. 기본적으로 강제로 재 구축합니다. 더 명확하게하기 위해 http://stackoverflow.com/questions/4549161/function-of-project-clean-in-eclipse – Ajay

+0

이제 알겠습니다. 고마워요! :) –

관련 문제