2014-07-21 3 views
0

안드로이드 4.4를 사용하여 프로젝트를 만들고 있었는데, 이제 안드로이드 2.3.3으로 빌드하고 싶습니다. 내 style.xml에서 해당 테마가 지원되지 않는 오류가 발생했습니다.셜록 액션 바를 가져온 후 R이 누락되었습니다. android

이 오류를 해결하기 위해 Sherlock Action Bar 라이브러리를 가져 왔습니다. 이제 내 style.xml 오류가 해결되었지만 오류가 발생했습니다. 'R' is missing from project 프로젝트를 정리했지만 해결되지 않았습니다.

누구든지이 문제를 어떻게 해결할 수 있는지 알고 있습니까?

내 로그 고양이

[2014-07-21 06:59:00 - PingMyAndroid] C:\Users\Bilal Khalid\android_development\PingMyAndroid\res\values\styles.xml:10: error: Error: No resource found that matches the given name: attr 'android:backgroundStacked'. 
[2014-07-21 06:59:00 - PingMyAndroid] C:\Users\Bilal Khalid\android_development\PingMyAndroid\res\values\styles.xml:17: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'. 
[2014-07-21 06:59:00 - PingMyAndroid] C:\Users\Bilal Khalid\android_development\PingMyAndroid\res\values\styles.xml:18: error: Error: No resource found that matches the given name: attr 'android:actionBarStyle'. 
[2014-07-21 06:59:00 - PingMyAndroid] C:\Users\Bilal Khalid\android_development\PingMyAndroid\res\values\styles.xml:20: error: Error: No resource found that matches the given name: attr 'android:alertDialogTheme'. 
[2014-07-21 06:59:00 - PingMyAndroid] C:\Users\Bilal Khalid\android_development\PingMyAndroid\res\values\styles.xml:77: error: Error: No resource found that matches the given name: attr 'android:buttonBarButtonStyle'. 
[2014-07-21 06:59:00 - PingMyAndroid] C:\Users\Bilal Khalid\android_development\PingMyAndroid\res\values\styles.xml:73: error: Error: No resource found that matches the given name: attr 'android:windowMinWidthMajor'. 
[2014-07-21 06:59:00 - PingMyAndroid] C:\Users\Bilal Khalid\android_development\PingMyAndroid\res\values\styles.xml:74: error: Error: No resource found that matches the given name: attr 'android:windowMinWidthMinor'. 
[2014-07-21 06:59:00 - PingMyAndroid] C:\Users\Bilal Khalid\android_development\PingMyAndroid\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'. 
[2014-07-21 06:59:00 - PingMyAndroid] C:\Users\Bilal Khalid\android_development\PingMyAndroid\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar' 
. 
+0

프로젝트가'libs' 폴더에 v4 라이브러리를 지원합니까? – rocknow

+0

예. v4도 추가했습니다. – Bilal

답변

0

당신이 당신의 프로젝트에 라이브러리로 ABS를 추가 했입니까? R 파일이 생성되지 않습니다. 경험 한 것에서 xml에 오류가 있습니다.

당신이 라이브러리 다음과 ABS를 추가하지 않은 경우 : 라이브러리에서 패키지 explorer-> 속성 -> Android 기기,>에서

를 마우스 오른쪽 단추로 클릭하고 프로젝트> OK- 클릭> ABS- 선택> 추가 -을해야 클릭 그 후에가는 것이 좋다.

+0

내 프로젝트에서 sherloack 라이브러리를 properties-> android-> add에서 추가했지만 작동하지 않습니다. – Bilal

관련 문제