Update support library 23.2.0 build bug

前端 未结 10 1180
攒了一身酷
攒了一身酷 2020-11-30 07:53

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\\de

10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 08:36

    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"
      }
    }
    

提交回复
热议问题