Support Library Update 23.2.0 build bug

I updated the support library to 23.2.0. Starting with the update, I get this error during the build:

\ application \ assembly \ intermediate \ data binding-layout from \ Debug \ V11-values ​​\ v11.xml-value Error: (67, 54) A resource was not found that matches the specified name (at 'android: actionModeCloseDrawable' with value @ Extract / abc_ic_ab_back_mtrl_am_alpha ').

Are you having this problem?

+17
android android-support-library
Feb 25 '16 at 13:24
source share
10 answers

It has been renamed several times: currently from version 24.0.0 on it

R.drawable.abc_ic_ab_back_material 

Previous Versions:

23.2.1 R.drawable.abc_ic_ab_back_mtrl_am_alpha
23.2.0 R.drawable.abc_ic_ab_back_material

+25
Feb 26 '16 at 20:32
source share

This resource has been deleted. See: https://medium.com/@chrisbanes/appcompat-v23-2-age-of-the-vectors-91cbafa87c88#.b1pysvcvl

Setting this flag should help:

 android { defaultConfig { vectorDrawables.useSupportLibrary = true } } 

If you have not upgraded and are using v1.5.0 or lower Gradle, you need to add the following to your applications: build.gradle:

 android { defaultConfig { // Stops the Gradle plugin's automatic rasterization of vectors generatedDensities = [] } // Flag to tell aapt to keep the attribute ids around aaptOptions { additionalParameters "--no-version-vectors" } } 
+10
Feb 25 '16 at 13:28
source share

I think Google converts Drawable to Vector Drawable from Android Support Library 23.2 , since it has reverse port support.

To do this, they deleted @drawable/abc_ic_ab_back_mtrl_am_alpha in the Android Support Library 23.2 & added a vector called R.drawable.abc_ic_ab_back_material

Decision:

Add support for vector drawing

 // Gradle Plugin 2.0+ android { defaultConfig { vectorDrawables.useSupportLibrary = true } } // Gradle Plugin 1.5 android { defaultConfig { generatedDensities = [] } // This is handled for you by the 2.0+ Gradle Plugin aaptOptions { additionalParameters "--no-version-vectors" } } 

Replace abc_ic_ab_back_mtrl_am_alpha with abc_ic_ab_back_material

References:

http://android-developers.blogspot.co.uk/2016/02/android-support-library-232.html

https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened&groupby=&sort=&id=201835

https://medium.com/@chrisbanes/appcompat-v23-2-age-of-the-vectors-91cbafa87c88#.uws2k5j4j

+3
Feb 29 '16 at 5:55
source share

I solved this error by strictly declaring the previous AppCompat:

 compile 'com.android.support:appcompat-v7:23.1' 
+1
Feb 25 '16 at 19:21
source share

I tested this solution and worked for me

+1
Feb 26 '16 at 9:06
source share

I had the same problem when using the latest dialog materials (0.8.5.6) with the latest support library (23.2). Return to content dialogs 0.8.5.1 with library support 23.1.1 works on Android 4.

Error Report on Material Dialog GitHub: https://github.com/afollestad/material-dialogs/issues/983 .

+1
Feb 29 '16 at 17:20
source share

Check if any third-party library has this error, I had to update the version of the affolestad material dialog box.

+1
Mar 10 '16 at 12:37
source share

Add your project to the repository: res / drawable new vector data abc_ic_ab_back_mtrl_am_alpha .

enter image description here

+1
Jan 13 '17 at 12:48 on
source share

Faced the same error. In my case, the problem was in a third-party library that I did not update the version that uses the same app-compat vesrion as in my project.

So, try updating other libraries that use app-compat lib as depency.

0
Feb 25 '16 at 20:02
source share

I had the same problem using the support library 23.2.0 with buildToolsVersion 23.0.2 and classpath com.android.tools.build: gradle: 1.5.0 . So, I solved this by changing distributionUrl in the gradle -wrapper.properties file from https://services.gradle.org/distributions/ gradle- 2.2.1 -all.zip to https://services.gradle.org/distributions/ gradle- 2.14.1 -all.zip.

0
Oct 27 '16 at 9:43
source share



All Articles