Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update support library 23.2.0 build bug

I have update the support library to 23.2.0 Since the update I get this error at build time :

\app\build\intermediates\data-binding-layout-out\debug\values-v11\values-v11.xml Error:(67, 54) No resource found that matches the given name (at 'android:actionModeCloseDrawable' with value '@drawable/abc_ic_ab_back_mtrl_am_alpha').

Have you encounter this problem ?

like image 234
Flofloaud1034 Avatar asked Feb 25 '16 13:02

Flofloaud1034


2 Answers

It was renamed a few times: Currently from version 24.0.0 on it's

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

like image 51
Paul Woitaschek Avatar answered Oct 19 '22 02:10

Paul Woitaschek


This resource has been removed. 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 updated yet, and are using v1.5.0 or below of the Gradle plugin, you need to add the following to your app’s 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"
  }
}
like image 20
Zielony Avatar answered Oct 19 '22 01:10

Zielony