Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 34 / FB SDK - can't build ( A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade ) #714

Open
simonechelo-sybo opened this issue Feb 2, 2024 · 7 comments
Labels

Comments

@simonechelo-sybo
Copy link

Checklist

Environment

  • Unity Editor Version: 2021.3.34f1
  • Android Target API Level 34
  • Facebook SDK: 16.0.2

Goals / Expected Results

I am trying to build a project for Android, using Target API level 34, that uses FB SDK 16.0.2. It works on Target API level 33, and breaks on 34

Actual Results

Build fails.

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > AAPT2 aapt2-4.0.1-6197926-osx Daemon #0: Unexpected error during link, attempting to stop daemon.
     This should not happen under normal circumstances, please file an issue if it does.

Full stacktrace:
Editor.log

Steps to Reproduce

Empty project. Set it up.
Download FB SDK 16.0.2 from here
Install .unitypackage
Build for Android.

Code Samples & Details

Here's an empty project with just the FB SDK as external package. This builds on Android 33, and not on Android 34
Empty Proj - FB SDK failing.zip

@Ajasmm3plus
Copy link

Ajasmm3plus commented Mar 1, 2024

Do you have any updates on this? Are there any workarounds or other SDK versions?

@RaidelRoss
Copy link

I have the same issue. Any thoughts on this? Any solutions? Here you can download other versions: https://developers.facebook.com/docs/unity/downloads/ I will be trying others to see if any work.

@RaidelRoss
Copy link

I have the same issue for:
->facebook-unity-sdk-15.1.0
->facebook-unity-sdk-16.0.0
->facebook-unity-sdk-16.0.1
->facebook-unity-sdk-16.0.2

in:
->Unity 2021.2.32f1
->com.google.external-dependency-manager:1.2.177(I can't use the Facebook <com.google.external-dependency-manager:1.2.166>; it's not compatible with other SDKs)
->gradle-5.1.1

@PlayaPeter
Copy link

PlayaPeter commented Mar 8, 2024

Same issue with Unity 2021.3.28f1 and SDK version 14.0.1. Tried Android target API level 30 and 34. Both fail.
Android target API level 33 works.

@AlanLiu90
Copy link

Same issue with Unity 2020.3.48. Changing compileSdkVersion to 33 (while keeping targetSdkVersion 34) in launcher/build.gradle in the exported gradle project seemed to work. Although there is an error (The compileSdkVersion (33) should not be lower than the targetSdkVersion (34)) shown in Android Studio, but it builds successfully.

@SyaoranChang
Copy link

SyaoranChang commented Apr 17, 2024

Same issue with Unity 2021.3.31f1 and SDK version 16.0.2.
Same as PlayaPeter tried Android target API level 34, but build fail.
Switch to Android target API level 33 works.
I hope to fix the issue of not being able to use Android target API level 34 for building.

@Ajasmm3plus
Copy link

Because of this I have to take build in Android studio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants