2015-06-19 87 views
-1

我有一個問題與Eclipse錯誤使用Android日食:windowElevation

enter image description here

這是我的錯誤出現在控制檯:

(\appcompat_v7\res\values-v21\themes_base.xml:146: error: Error: No resource found that matches the given name: attr 'android:windowElevation'.) 

和其他信息:

Description Resource Path Location Type 
Unparsed aapt error(s)! Check the console for output. appcompat_v7  line 1 Android ADT Problem 
The method onOptionsItemSelected(MenuItem) of type MainActivity must override or implement a supertype method MainActivity.java /9/src/com/example line 24 Java Problem 
The method onCreateOptionsMenu(Menu) of type MainActivity must override or implement a supertype method MainActivity.java /9/src/com/example line 17 Java Problem 
The method onCreate(Bundle) of type MainActivity must override or implement a supertype method MainActivity.java /9/src/com/example line 11 Java Problem 
The method getMenuInflater() is undefined for the type MainActivity MainActivity.java /9/src/com/example line 19 Java Problem 
The import android.support.v7 cannot be resolved MainActivity.java /9/src/com/example line 3 Java Problem 
R cannot be resolved to a variable MainActivity.java /9/src/com/example line 13 Java Problem 
R cannot be resolved to a variable MainActivity.java /9/src/com/example line 19 Java Problem 
R cannot be resolved to a variable MainActivity.java /9/src/com/example line 29 Java Problem 
error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml /9/res/values line 7 Android AAPT Problem 
error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'. styles_base.xml /appcompat_v7/res/values-v21 line 75 Android AAPT Problem 
ActionBarActivity cannot be resolved to a type MainActivity.java /9/src/com/example line 8 Java Problem 
ActionBarActivity cannot be resolved to a type MainActivity.java /9/src/com/example line 12 Java Problem 
ActionBarActivity cannot be resolved to a type MainActivity.java /9/src/com/example line 32 Java Problem 

如何解決這個問題?

+0

UDPATE構建工具最新版本。 –

回答

0

你需要建立你對你想支持最高API項目,所以設置你的目標SDK爲這個項目是21或22(如果您得到了SDK下載的話)