sdk和adt都配置好了但是每次创建项目都会出现一个报错
[2016-07-09 10:24:13 - Test] D:\java\workspace\Test\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-09 10:24:13 - Test]
[2016-07-09 10:24:13 - Test] D:\java\workspace\Test\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-09 10:24:13 - Test]
[2016-07-09 10:24:13 - Test] D:\java\workspace\Test\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-09 10:24:13 - Test]
[2016-07-09 10:24:14 - Test] D:\java\workspace\Test\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-09 10:24:14 - Test]
[2016-07-09 10:24:14 - Test] D:\java\workspace\Test\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-09 10:24:14 - Test]
[2016-07-09 10:24:14 - Test] D:\java\workspace\Test\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-09 10:24:14 - Test]
[2016-07-09 10:24:19 - Test] D:\java\workspace\Test\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-09 10:24:19 - Test]
[2016-07-09 10:24:19 - Test] D:\java\workspace\Test\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-09 10:24:19 - Test]
[2016-07-09 10:24:19 - Test] D:\java\workspace\Test\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-09 10:24:19 - Test]
[2016-07-09 10:30:03 - Test] D:\java\workspace\Test\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-09 10:30:03 - Test]
[2016-07-09 10:30:03 - Test] D:\java\workspace\Test\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-07-09 10:30:03 - Test]
[2016-07-09 10:30:03 - Test] D:\java\workspace\Test\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-07-09 10:30:03 - Test]
谁能帮忙看下是什么原因
应该是API的版本不够高吧,两种解决方案:
1、可以直接选择21以上的API。
2、加入support-v7的包。
那是因为你的SDK的版本不支持Theme.AppCompat.Light这种主题
现在基本上都用androd studio了。而且你那个问题是关于主题的。
Theme.AppCompat.Light,把这个换了,或者升级sdk吧。
SDK版本低了,不支持Theme.AppCompat.Light主题
把minSDK改大一点就行了