There’s this error when I set implementation 'com.google.android.gms:play-services-location:18.0.0'
in build.gradle
:
AAPT2 process unexpectedly exit.
Execution failed for task ‘:app:processDebugResources’.
Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.
Failed to transform play-services-base-17.5.0.aar (com.google.android.gms:play-services-base:17.5.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: /home/…j/.gradle/caches/transforms-2/files-2.1/f00ddb629c310bdb0d9330810880f060/jetified-play-services-base-17.5.0.
AAPT2 aapt2-4.1.3-6503028-linux Daemon #0: Unexpected error during compile ‘/home/…/.gradle/caches/transforms-2/files-2.1/f00ddb629c310bdb0d9330810880f060/jetified-play-services-base-17.5.0/res/drawable-xxhdpi-v4/common_google_signin_btn_icon_dark_normal_background.9.png’, attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
I found on the internet that it’s some old bug. But I’ve got Android studio 4.1.3.
Do someone know where’s the problem?