build failing during merge resources with Android Gradle plugin 3.3.0

Updated 19th April, 2019 This issue has been fixed in Android Gradle Plugin 3.4.0. After upgrading to Android Studio 3.4.0, the temporary fix suggested in the original answer can be removed. Hurray! Original This is a bug in AAPT2 in Android Gradle Plugin 3.3.0, when building a project with larger png’s (around 2-3 mb and … Read more

build failing during merge resources with Android Gradle plugin 3.3.0

Updated 19th April, 2019 This issue has been fixed in Android Gradle Plugin 3.4.0. After upgrading to Android Studio 3.4.0, the temporary fix suggested in the original answer can be removed. Hurray! Original This is a bug in AAPT2 in Android Gradle Plugin 3.3.0, when building a project with larger png’s (around 2-3 mb and … Read more

How can the gradle plugin repository be changed?

Gradle 3.5 and (presumably) later Gradle 3.5 has a new (incubating) feature, allowing finer control of the plugin dependency resolution, using the pluginManagement DSL: Plugin resolution rules allow you to modify plugin requests made in plugins {} blocks, e.g. changing the requested version or explicitly specifying the implementation artifact coordinates. To add resolution rules, use … Read more

cvc-complex-type.2.4.a: Invalid content was found starting with element ‘base-extension’. One of ‘{layoutlib}’ is expected

Upgrade your com.android.tools.build:gradle in your build.gradle file to the latest version e.g. classpath ‘com.android.tools.build:gradle:7.0.4’ And upgrade your gradle-wrapper.properties to the latest version i.e. #Tue Apr 12 23:39:17 AEST 2022 distributionBase=GRADLE_USER_HOME distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip distributionPath=wrapper/dists zipStorePath=wrapper/dists zipStoreBase=GRADLE_USER_HOME Optionally, you can upgrade it using Project-Structure UI