Android开发遇到的问题

时间:2014-05-07 11:52:55   收藏:0   阅读:434

1、导入某个现有工程文件夹后,出现R资源不能resolve的错误,导致程序无法编译运行,此时右键->properties->android,看最上面的taget又没有选择对,勾选当前可选的最高那个版本(即你本机已经安装的最高版本的SDK),点击apply,错误解决。


2、style.xml里出现样式无法识别:

error: Error retrieving parent for item: No resource found that matches the given name ‘Theme.AppCompat.Light‘.

也包括其他样式的此类错误,是因为:



8down voteaccepted

AppCompat is a library project. You need to reference the library project in your android project.

https://developer.android.com/tools/support-library/setup.html

Check the topic Adding libraries with resources.

去这个地址看解决方法吧。



8down voteaccepted

AppCompat is a library project. You need to reference the library project in your android project.

https://developer.android.com/tools/support-library/setup.html

Check the topic Adding libraries with resources.

Android开发遇到的问题,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!