Error retrieving paren… 2014-05-30 10:57 115人阅读 评论(0) 收藏
By 灵思迈
项目之前好好的,今天开Eclipse,,出错。
错误Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
观察R.JAVA有生成,找了styles,改了版本,都不行。
后来发现我之前把appcompat_v7_2和appcompat_v7给close 了,就是用Close Project,
Open 这两个 Project,错误就消失了。
appcompat_v7是google自己的兼容包
,在建立AndroidApplication的时候,只需要将Minimum Required SDK选择到Android 4.0版本(即API 14),便不会出现烦人的Appcompat_V7内容了。
至于ADT升级为22.6.0版本之后所出现的其他问题,也有其他的方法:
1.我不要新的,继续用回我原来的版本。 解决方法一请看转载链接:
2.同时出现的问题,还有Android模拟器无法创建。亲,也请看转载链接: 解决方法二
3.我嘛, 直接换成adt-bundle开发了。因为前两天实在没有解决办法。发现adt-bundle配置都省了。
感谢各位,希望你们也能成功的解决。 关于这个库可以看GOOGLE的文档: http://developer.android.com/tools/support-library/features.html
Support Library Features
The Android Support Library package contains several libraries that can be included in your application. Each of these libraries supports a specific range of Android platform versions and set of features.
This guide explains the important
features and version support provided by the Support Libraries to
help you decide which of them you should include in your
application. In general, we recommend including
the
In order to use any of the
following libraries, you must download the library files to your
Android SDK installation. Follow the directions for downloading the
Support Libraries in
v4 Support Library
This library is designed to be used with Android 1.6 (API level 4) and higher. It includes the largest set of APIs compared to the other libraries, including support for application components, user interface features, accessibility, data handling, network connectivity, and programming utilities. Here are a few of the key classes included in the v4 library:
- App Components
Fragment
- Adds support encapsulation of user interface and functionality with Fragments, enabling applications provide layouts that adjust between small and large-screen devices.
NotificationCompat
- Adds support for rich notification features.
LocalBroadcastManager
- Allows applications to easily register for and receive intents within a single application without broadcasting them globally.
- User Interface
ViewPager
- Adds a ViewGroup
that manages the layout for the child views, which the user can swipe between. PagerTitleStrip
- Adds a non-interactive title strip, that can be added as a child of ViewPager
.PagerTabStrip
- Adds a navigation widget for switching between paged views, that can also be used with ViewPager
.DrawerLayout
- Adds support for creating a Navigation Drawer that can be pulled in from the edge of a window. SlidingPaneLayout
- Adds widget for creating linked summary and detail views that appropriately adapt to various screen sizes.
- Accessibility
ExploreByTouchHelper
- Adds a helper class for implementing accessibility support for custom views.
AccessibilityEventCompat
- Adds support for AccessibilityEvent
. For more information about implementing accessibility, seeAccessibility.
AccessibilityNodeInfoCom
pat - Adds support for AccessibilityNodeInfo
.
AccessibilityNodeProvide
rCompat - Adds support for AccessibilityNodeProvide
.r
AccessibilityDelegateCom
pat - Adds support for View.AccessibilityDelegate
.
- Content
Loader
- Adds support for asynchronous loading of data. The library also provides concrete implementations of this class, including CursorLoader
and AsyncTaskLoader
.
FileProvider
- Adds support for sharing of private files between applications.
There are many other APIs included
in this library. For complete, detailed information about the v4
Support Library APIs, see the android.support.v4
This library is located in
the /extras/android/support/v4/
The Gradle build script dependency identifier for this library is as follows:
com.android.support:support-v4:18.0.+
This dependency notation specifies the release version 18.0.0 or higher.
v7 Libraries
There are several libraries designed to be used with Android 2.1 (API level 7) and higher. These libraries provide specific feature sets and can be included in your application independently from each other.
v7 appcompat library
This library adds support for
the
Note:
Here are a few of the key classes included in the v7 appcompat library:
ActionBar
- Provides an implementation of the action bar user interface pattern. For more information on using the Action Bar, see the Action Bar developer guide. ActionBarActivity
- Adds an application activity class that must be used as a base class for activities that uses the Support Library action bar implementation. ShareActionProvider
- Adds support for a standardized sharing action (such as email or posting to social applications) that can be included in an action bar.
This library is located in
the /extras/android/support/v7/appcompat/
The Gradle build script dependency identifier for this library is as follows:
com.android.support:appcompat-v7:18.0.+
This dependency notation specifies the release version 18.0.0 or higher.
v7 gridlayout library
This library adds support for
the GridLayout
android.support.v7.widget
package
in the API reference.
This library is located in
the /extras/android/support/v7/gridlayout/
The Gradle build script dependency identifier for this library is as follows:
com.android.support:gridlayout-v7:18.0.+
This dependency notation specifies the release version 18.0.0 or higher.
v7 mediarouter library
This library
provides MediaRouter
, MediaRouteProvider
,
and related media classes that support
the
In general, the APIs in the v7
mediarouter library provide a means of controlling the routing of
media channels and streams from the current device to external
screens, speakers, and other destination devices. The library
includes APIs for publishing app-specific media route providers,
for discovering and selecting destination devices, for checking
media status, and more. For detailed information about the v7
mediarouter library APIs, see the android.support.v7.media
package
in the API reference.
The v7 mediarouter library is
located in the /extras/android/support/v7/mediarouter/
android-support-v7-mediarouter.jar
android-support-v7-appcompat.jar
If you are using Android Studio,
all you need to do is specify the Gradle build script dependency
identifiercom.android.support:support-v7-mediarouter:
,
where "18.0.0" is the minimum revision at which the library is
available. For example:
com.android.support:mediarouter-v7:18.0.+
The v7 mediarouter library APIs introduced in Support Library r18
are subject to change in later revisions of the Support Library. At
this time, we recommend using the library only in connection with
the
v8 Support Library
This library is designed to be
used with Android (API level 8) and higher. It adds support for
the android.support.v8.renderscript
Note:
v13 Support Library
This library is designed to be
used for Android 3.2 (API level 13) and higher. It adds support for
the FragmentCompat
)
class and additional fragment support classes For more information
about fragments, see the android.support.v13
This library is located in
the /extras/android/support/v13/
The Gradle build script dependency identifier for this library is as follows:
com.android.support:support-v13:18.0.+
This dependency notation specifies the release version 18.0.0 or higher.
版权声明:本文为博主原创文章,未经博主允许不得转载。