2012-12-04 2 views
2

저는 android.com에서 첫 번째 튜토리얼을 시험해 보았습니다. 내 HTC 주인공을 위해 쓰고 싶은 앱에는 android 2.1 eclair가 있습니다.개미 디버그 issueandroid 앱

android update project --name MyFirstApp -- target 1 --path workspace\MyFirstApp 

가 나는 프로젝트의 루트 폴더로 이동 개미 디버깅을 실행

minimum sdk 2.0 eclair (API 5) <br> 
target sdk 2.1 eclair (API 7) <br> 
compile sdk 2.1  (API 7) 

내가 build.xml 파일을 만들기 위해 명령 안드로이드를 사용 : 그래서 함께 새로운 프로젝트를했다. 결과 :

- 빌드 설정 : 해결

Project target: Android 1.5     (que? I clearly configured 2.1, didn't I?) <br> 
API level: 3 
WARNING: Attribute minSdkVersion in AndroidManifest.xml(5) is higher than the project target API level(3) <br> 

This warning would make sense if my target API was indeed API 3. This is definitly not the case since I clearly configured API 5 in eclipse. <br> 
Ant continues and at the end, these errors kill it: 

[aapt] C:\...\workspace\MyFirstApp\bin\AndroidManifest.xml:7: error: No resource found for attribute 'targetSdkVersion' in package 'android' <br> 
[aapt] C:\...\workspace\MyFirstApp\bin\AndroidManifest.xml:7: error: No resource found for attribute 'allowBackup' in package 'android' 

BUILD FAILED <br> 
C:Program Files\eclipse\Android SDK\tools\ant\build.xml:645: The following error occurred while executing this line: <br> 
C:Program Files\eclipse\Android SDK\tools\ant\build.xml:683: null returned: 1 

답변

1

: 나는 조금 더 신중하게 내 대상을 선택해야했습니다. 그것은 특정 설치된 안드로이드 버전을 대상으로합니다. 더 많은 정보를 위해 안드로이드리스트 타겟을 입력하십시오

관련 문제