I have updated from Android Studio 4.0 to 4.1. After the update I cannot build my application anymore which worked fine before the update. When I build the project I am getting the following exception:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:compressDebugAssets'.
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction my\application\path\app\build\intermediates\merged_assets\debug\out
The folder my\application\path\app\build\intermediates\merged_assets\debug\out is empty.
What I tried to do:
- Clean and rebuild the project
- delete the .gradle and the build folder and clean an rebuild the project
- invalidate and restart Android studio
- Increased the heap size in gradle.properties to: org.gradle.jvmargs=-Xmx4096m
- Increased the compileSdkVersion and targetSdkVersion
- Installed and updated the buildToolsVersion from 30.0.0 to 30.0.2
- Added multiDexEnabled true to my config
My gradle configuration looks like this:
apply plugin: 'com.android.application' android { compileSdkVersion 'android-R' buildToolsVersion "30.0.2" defaultConfig { applicationId "my.application.id" minSdkVersion 23 targetSdkVersion 29 versionCode 2 versionName "1.1" multiDexEnabled true testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { useSupportLibrary = true } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } } repositories { mavenCentral() maven { url 'https://maven.google.com' } } dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'com.google.android.material:material:1.2.1' implementation 'androidx.constraintlayout:constraintlayout:2.0.2' implementation 'androidx.navigation:navigation-fragment:2.3.1' implementation 'androidx.navigation:navigation-ui:2.3.1' implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' testImplementation 'junit:junit:4.13.1' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' implementation "androidx.room:room-runtime:2.2.5" annotationProcessor "androidx.room:room-compiler:2.2.5" implementation 'com.github.bumptech.glide:glide:4.11.0' implementation 'androidx.multidex:multidex:2.0.1' } Guys, I am out of ideas as I am no expert when it comes to gradle. Help would be most appreciated.

minSdkVersionis 23 you don't needimplementation 'androidx.multidex:multidex:2.0.1'andvectorDrawables { useSupportLibrary = true}. Try to remove them.