相关疑难解决方法(0)

appcompat-v7:21.0.0':找不到与给定名称匹配的资源:attr'android:actionModeShareDrawable'

尝试在我的项目中使用最新的appcompat-v7支持库时,出现以下错误:

/Users/greg/dev/mobile/android_project/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.0/res/values-v11/values.xml
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Run Code Online (Sandbox Code Playgroud)

我该如何解决?

android gradle xamarin.android android-support-library android-5.0-lollipop

374
推荐指数
6
解决办法
38万
查看次数

Android Studio Gradle无法找到'com.android.support:design:22.2.0'(Android设计支持库)

在过去的两周里,这个问题令我非常沮丧.

使用Android SDK Manager,我更新了以下内容:

Tools:

Android SDK Tools rev. 24.3.3
Android SDK Platform-tools rev. 22
Android SDK Build-tools rev. 22.0.1

Android 5.1.1 (API 22):

SDK Platform rev. 2
Google APIs rev. 1
Sources for Android SDK rev. 1

Extras:

Android Support Repository rev. 16
Android Support Library rev. 22.2.1
Google Repository rev.22
Run Code Online (Sandbox Code Playgroud)

这是我使用Android SDK Manager安装和更新的所有存储库的完整列表.

但是,当我尝试添加该行时:

compile 'com.android.support:design:22.2.0'
Run Code Online (Sandbox Code Playgroud)

Gradle卡在addDependecies上.此外,当我转到模块设置,然后转到依赖关系时,当我尝试添加新库时,'com.android.support:design:22.2.0'不会出现在列表中!

以下是有关我的目标,编译和最低SDK版本的其他信息:

android {
compileSdkVersion 22
buildToolsVersion '22.0.1'
defaultConfig {
    applicationId "com.myandroidapplication.newtestapp"
    minSdkVersion 14
    targetSdkVersion 22
    versionCode 1
    versionName "1.0"
}
buildTypes …
Run Code Online (Sandbox Code Playgroud)

java android gradle maven android-studio

4
推荐指数
1
解决办法
2万
查看次数