android / location-samples

Multiple samples showing the best practices in location APIs on Android.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AAPT2 process unexpectedly exit

vsevjednom-cz opened this issue · comments

Thank you for your samples!

But 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. PNG files are ok.

Hmm, it's weird - it works at my notebook. I'll try to uninstall (with all files) and install Android studio back again. I'll write result here. I'm using Ubuntu 20.04. I had a problem with my procesor without SSSE3 earlier. So maybe again..?

Problem stays after full reinstallation. So problem is in my old processor, maybe.