在整合android过程中导入别人的项目出现下面的错误:

<style name="AppBaseTheme" parent="Theme.AppCompat.Light">

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

通过stackoverflow查到其解决方法,如下:

1.

File->Import (android-sdk\extras\android\support\v7). Choose "appcompat"

在"文件"中导入sdk路径extras\android\support\v7中的appcompat文件夹.如下图所示:


2.

Project-> properties->Android. In the section library "Add" and choose "appCompat"

此时问题即可解决,能正确运行.

问什么会出现这个问题呢?这是我整合“随时拍”项目其他人的代码,他的版本比我的低,

新的eclipse默认模版主题UI需要使用比较高版本api,如果需要支持低版本,需要导入appCompact库来支持.希望文章能解决大家的bug.

(By:Eastmount 2014-12-3 晚上10点http://blog.csdn.net/eastmount/)

参考资料:

stackoverflow答案

http://blog.csdn.net/huiguixian/article/details/41210895

更多相关文章

  1. Android(安卓)Studio不能用adb
  2. tools:context=”.MainActivity”与xmlns:tools名字空间
  3. GitHub 优秀的 Android(安卓)开源项目
  4. gradle-xxx.jar下载地址和gradle-xxx.zip下载地址
  5. Android开发环境搭建及入门相关
  6. [android] No resource found that matches the given name 'The
  7. android中Socket的使用
  8. Android中build target,minSdkVersion,targetSdkVersion,maxSdkVers
  9. Windows下 BlackBerry & Google Android(安卓)开发平台搭建

随机推荐

  1. android Launcher2分析
  2. 轻松搞定android Listview下拉刷新 上拉(
  3. 学习笔记Android轮播图框架Banner
  4. Android-Android Support兼容包详解
  5. 程序员之路
  6. 更改系统给APP应用分配最大的内存空间
  7. Android studio APK 加固打包
  8. Android 中文 API —— ImageSwitcher,Ga
  9. Android sqlite数据库存取图片信息
  10. Android httpClient Get&Post方法