当前位置: 代码迷 >> Android >> Android开发遇到的有关问题
  详细解决方案

Android开发遇到的有关问题

热度:100   发布时间:2016-04-28 05:48:47.0
Android开发遇到的问题

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.

  相关解决方案