Unity 2021.3.40f1 Android build fails.

Description
Android build fails for Unity project with only Firebase Analytics installed.
For my game project, only Firebase Analytics and Messaging 11.6.0 pass build without problems, all versions after 11.7.0 fail to build.
Build environment
Unity : 2021.3.40f1 (sillicon)
Build Target : Android
Firebase Analytics : 12.1.0
Gradle Version : 4.2.2
Compile Sdk Version : 34
Minimum Sdk Version : 22
Target Sdk Version : 34
BuildToolsVersion : 30.0.2
Cutom Main Gradle:
Assets/Plugins/Android/mainTemplate.gradle
// Android Resolver Repos Start
([rootProject] + (rootProject.subprojects as List)).each { project ->
    project.repositories {
        def unityProjectPath = $/file:///**DIR_UNITYPROJECT**/$.replace("\\", "/")
        maven {
            url "https://maven.google.com"
        }
        maven {
            url (unityProjectPath + "/Assets/GeneratedLocalRepo/Firebase/m2repository") // Assets/Firebase/Editor/AnalyticsDependencies.xml:18, Assets/Firebase/Editor/AppDependencies.xml:22
        }
        mavenLocal()
        mavenCentral()
    }
}
// Android Resolver Repos End
apply plugin: 'com.android.library'
**APPLY_PLUGINS**

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
// Android Resolver Dependencies Start
    implementation 'com.google.android.gms:play-services-base:18.5.0' // Assets/Firebase/Editor/AppDependencies.xml:17
    implementation 'com.google.firebase:firebase-analytics:22.0.2' // Assets/Firebase/Editor/AppDependencies.xml:15
    implementation 'com.google.firebase:firebase-analytics-unity:12.1.0' // Assets/Firebase/Editor/AnalyticsDependencies.xml:18
    implementation 'com.google.firebase:firebase-app-unity:12.1.0' // Assets/Firebase/Editor/AppDependencies.xml:22
    implementation 'com.google.firebase:firebase-common:21.0.0' // Assets/Firebase/Editor/AppDependencies.xml:13
// Android Resolver Dependencies End
**DEPS**}

// Android Resolver Exclusions Start
android {
  packagingOptions {
      exclude ('/lib/arm64-v8a/*' + '*')
      exclude ('/lib/armeabi/*' + '*')
      exclude ('/lib/mips/*' + '*')
      exclude ('/lib/mips64/*' + '*')
      exclude ('/lib/x86/*' + '*')
      exclude ('/lib/x86_64/*' + '*')
  }
}
// Android Resolver Exclusions End
android {
    compileSdkVersion **APIVERSION**
    buildToolsVersion '**BUILDTOOLS**'

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    defaultConfig {
        minSdkVersion **MINSDKVERSION**
        targetSdkVersion **TARGETSDKVERSION**
        ndk {
            abiFilters **ABIFILTERS**
        }
        versionCode **VERSIONCODE**
        versionName '**VERSIONNAME**'
        consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
    }

    lintOptions {
        abortOnError false
    }

    aaptOptions {
        noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ')
        ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
    }**PACKAGING_OPTIONS**
}**REPOSITORIES**
**IL_CPP_BUILD_SETUP**
**SOURCE_BUILD_SETUP**
**EXTERNAL_SOURCES**

Custom Gradle Properties:
Assets/Plugins/Android/gradleTemplate.properties
org.gradle.jvmargs=-Xmx**JVM_HEAP_SIZE**M
org.gradle.parallel=true
android.enableR8=**MINIFY_WITH_R_EIGHT**
unityStreamingAssets=**STREAMING_ASSETS**
# Android Resolver Properties Start
android.useAndroidX=true
android.enableJetifier=true
# Android Resolver Properties End
**ADDITIONAL_PROPERTIES**

Reproducing the issue

Generate an empty project for Unity 2021.3.40f1
Download and install 12.1.0 from API for Unity
Switch platform to Android
Execute build

Firebase Unity SDK Version
12.1.0
Unity editor version
2021.3.40f1
Installation Method
.unitypackage
Problematic Firebase Component(s)
Analytics
Other Firebase Component(s) in use
No response
Additional SDKs you are using
Firebase Analytics : 12.1.0 only
Targeted Platform(s)
Apple Platforms
Unity editor platform
Mac
Scripting Runtime
IL2CPP
Release Distribution Type
Pre-built SDK from https://firebase.google.com/download/unity
Relevant Log Output
> Configure project :launcher
WARNING:: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 7.0 of the Android Gradle plugin.
You will no longer be able to disable R8
WARNING:: Using flatDir should be avoided because it doesn't support any meta-data formats.

> Configure project :unityLibrary
WARNING:: Using flatDir should be avoided because it doesn't support any meta-data formats.

> Task :unityLibrary:preBuild UP-TO-DATE
> Task :launcher:preBuild UP-TO-DATE
> Task :launcher:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:writeReleaseAarMetadata UP-TO-DATE
> Task :launcher:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :launcher:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:generateReleaseResValues UP-TO-DATE
> Task :launcher:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResources UP-TO-DATE
> Task :launcher:javaPreCompileRelease UP-TO-DATE
> Task :launcher:writeReleaseApplicationId UP-TO-DATE
> Task :unityLibrary:packageReleaseResources UP-TO-DATE
> Task :launcher:analyticsRecordingRelease
> Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:processReleaseManifest UP-TO-DATE
> Task :launcher:checkReleaseAarMetadata UP-TO-DATE
> Task :launcher:generateReleaseResValues UP-TO-DATE
> Task :launcher:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
> Task :launcher:mergeReleaseResources UP-TO-DATE
> Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
> Task :launcher:extractDeepLinksRelease UP-TO-DATE
> Task :launcher:processReleaseMainManifest UP-TO-DATE
> Task :launcher:processReleaseManifest UP-TO-DATE
> Task :launcher:processReleaseManifestForPackage UP-TO-DATE
> Task :launcher:mergeReleaseJniLibFolders UP-TO-DATE
> Task :launcher:mergeReleaseShaders UP-TO-DATE
> Task :launcher:compileReleaseShaders NO-SOURCE
> Task :launcher:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
> Task :launcher:checkReleaseDuplicateClasses UP-TO-DATE
> Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:bundleLibCompileToJarRelease UP-TO-DATE
> Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:processReleaseJavaRes UP-TO-DATE
> Task :unityLibrary:bundleLibResRelease UP-TO-DATE
> Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE
> Task :unityLibrary:stripReleaseDebugSymbols UP-TO-DATE
> Task :unityLibrary:copyReleaseJniLibsProjectOnly UP-TO-DATE
> Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:packageReleaseAssets
> Task :unityLibrary:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :launcher:mergeReleaseNativeLibs UP-TO-DATE
> Task :launcher:stripReleaseDebugSymbols UP-TO-DATE
> Task :launcher:extractReleaseNativeSymbolTables UP-TO-DATE
> Task :launcher:mergeReleaseAssets
> Task :launcher:desugarReleaseFileDependencies UP-TO-DATE
aapt2 W 07-18 16:45:46 62768 19096610 LoadedArsc.cpp:682] Unknown chunk type '200'.

> Task :launcher:compressReleaseAssets
> Task :launcher:processReleaseResources

> Task :launcher:mergeExtDexRelease FAILED

> Task :launcher:mergeReleaseNativeDebugMetadata
46 actionable tasks: 7 executed, 39 up-to-date

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
ERROR:: D8: com.android.tools.r8.kotlin.H

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:mergeExtDexRelease'.
> Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
   > Failed to transform play-services-measurement-api-22.0.2.aar (com.google.android.gms:play-services-measurement-api:22.0.2) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-incremental-transform=true, dexing-is-debuggable=false, dexing-min-sdk=22, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingWithClasspathTransform: /Users/xxxx/.gradle/caches/transforms-2/files-2.1/6976e2f50f65279ba5dfd83f76eace20/jetified-play-services-measurement-api-22.0.2-runtime.jar.
         > Error while dexing.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)

CommandInvokationFailure: Gradle build failed.
/Applications/Unity/Hub/Editor/2021.3.40f1/PlaybackEngines/AndroidPlayer/OpenJDK/bin/java -classpath "/Applications/Unity/Hub/Editor/2021.3.40f1/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-6.7.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

Environment Variables:
AMPLITUDE_API_KEY_REDBUCKET_DEV = 46b8b46515e7632fc42a504b72e05fd0
DEBUG_ENV_VAR = UnityHub
XPC_FLAGS = 0x0
__CFBundleIdentifier = com.unity3d.unityhub
AMPLITUDE_API_KEY_GREENBUCKET_DEV = 3ded2a762163603391a425f688f990c8
AMPLITUDE_TOKEN_REDBUCKET_DEV = U4PSN7S7PuYVRODivvdcFwbu8R6IHGqa
SECURITYSESSIONID = 186b3
AMPLITUDE_API_KEY_GREENBUCKET_PROD = c86fea37a9e1d3f0878b96e15b111c7c
JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
SENTRY_ACCESS_TOKEN = 3df78d9e53f8456aa90fbae044ce1a6261421ab1d0014674bc2e933477289017
AMPLITUDE_DEPLOYMENT_KEY_RED_BUCKET_DEV = client-wbjHYrmeSR87GmWOE7LDpf7sUySOIKHm
AMPLITUDE_TOKEN_GREENBUCKET_PROD = ZpUcbAdZXJYzNSoHsAWtL_s_JppwWid9
AMPLITUDE_API_KEY = 28f3cae0b33b8b3702120c9ed1a935aa
XPC_SERVICE_NAME = application.com.unity3d.unityhub.101124541.101124547
ANDROID_NDK_ROOT = /Applications/Unity/Hub/Editor/2021.3.40f1/PlaybackEngines/AndroidPlayer/NDK
AMPLITUDE_API_KEY_STAGING = 83ee04fccc67e4fcc7dd527c4c6f1e21
WOOTRIC_CLIENT_TOKEN = NPS-aa8be4c3
USER = xxxx
MallocNanoZone = 0
LOGNAME = xxxx
__CF_USER_TEXT_ENCODING = 0x1F5:0x1:0xE
AMPLITUDE_API_KEY_YELLOWBUCKET_DEV = 48835b4d1f5e342aefe5f016324d296a
PATH = /usr/bin:/bin:/usr/sbin:/sbin
LaunchInstanceID = 595382F8-C935-4628-9245-B3718DD7CAC1
SSH_AUTH_SOCK = /private/tmp/com.apple.launchd.7EPy1rNyEh/Listeners
AMPLITUDE_API_KEY_YELLOWBUCKET_PROD = e03a9bbe92dc38a88cdb068d24c65b46
AMPLITUDE_TOKEN_REDBUCKET_PROD = jTIgKs5KTZOjiqEEVdZFbgo_VRhABduL
AMPLITUDE_TOKEN_YELLOWBUCKET_PROD = UYDQtPOw83dIfVy3SrW5oMyo7ru4PRkV
HOME = /Users/xxxx
TMPDIR = /var/folders/3x/lstvjdcj3gqbt0fwhhg0mpqm0000gn/T/
ORIGINAL_XDG_CURRENT_DESKTOP = undefined
AMPLITUDE_TOKEN_GREENBUCKET_DEV = 84H2gMm_FJzhr3mBaX1lM1JVukmCM7d9
AMPLITUDE_TOKEN_YELLOWBUCKET_DEV = wKi8foVigDditGFvmZewRFWsEbX9Y0YO
SHELL = /bin/zsh
AMPLITUDE_API_KEY_REDBUCKET_PROD = ca12bb461ea96f9bdf5df4ded7d52994
AMPLITUDE_DEPLOYMENT_KEY_RED_BUCKET_PROD = client-zH8Y7OK1i331EKuG77C6UxN8ygcM6LzS
COMMAND_MODE = unix2003
BURST_ANDROID_MIN_API_LEVEL = 22

stderr[
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
ERROR:: D8: com.android.tools.r8.kotlin.H

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:mergeExtDexRelease'.
> Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
   > Failed to transform play-services-measurement-api-22.0.2.aar (com.google.android.gms:play-services-measurement-api:22.0.2) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-incremental-transform=true, dexing-is-debuggable=false, dexing-min-sdk=22, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingWithClasspathTransform: /Users/xxxx/.gradle/caches/transforms-2/files-2.1/6976e2f50f65279ba5dfd83f76eace20/jetified-play-services-measurement-api-22.0.2-runtime.jar.
         > Error while dexing.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s
]
stdout[

> Configure project :launcher
WARNING:: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 7.0 of the Android Gradle plugin.
You will no longer be able to disable R8
WARNING:: Using flatDir should be avoided because it doesn't support any meta-data formats.

> Configure project :unityLibrary
WARNING:: Using flatDir should be avoided because it doesn't support any meta-data formats.

> Task :unityLibrary:preBuild UP-TO-DATE
> Task :launcher:preBuild UP-TO-DATE
> Task :launcher:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:writeReleaseAarMetadata UP-TO-DATE
> Task :launcher:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :launcher:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:generateReleaseResValues UP-TO-DATE
> Task :launcher:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResources UP-TO-DATE
> Task :launcher:javaPreCompileRelease UP-TO-DATE
> Task :launcher:writeReleaseApplicationId UP-TO-DATE
> Task :unityLibrary:packageReleaseResources UP-TO-DATE
> Task :launcher:analyticsRecordingRelease
> Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:processReleaseManifest UP-TO-DATE
> Task :launcher:checkReleaseAarMetadata UP-TO-DATE
> Task :launcher:generateReleaseResValues UP-TO-DATE
> Task :launcher:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
> Task :launcher:mergeReleaseResources UP-TO-DATE
> Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
> Task :launcher:extractDeepLinksRelease UP-TO-DATE
> Task :launcher:processReleaseMainManifest UP-TO-DATE
> Task :launcher:processReleaseManifest UP-TO-DATE
> Task :launcher:processReleaseManifestForPackage UP-TO-DATE
> Task :launcher:mergeReleaseJniLibFolders UP-TO-DATE
> Task :launcher:mergeReleaseShaders UP-TO-DATE
> Task :launcher:compileReleaseShaders NO-SOURCE
> Task :launcher:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
> Task :launcher:checkReleaseDuplicateClasses UP-TO-DATE
> Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:bundleLibCompileToJarRelease UP-TO-DATE
> Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:processReleaseJavaRes UP-TO-DATE
> Task :unityLibrary:bundleLibResRelease UP-TO-DATE
> Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE
> Task :unityLibrary:stripReleaseDebugSymbols UP-TO-DATE
> Task :unityLibrary:copyReleaseJniLibsProjectOnly UP-TO-DATE
> Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:packageReleaseAssets
> Task :unityLibrary:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :launcher:mergeReleaseNativeLibs UP-TO-DATE
> Task :launcher:stripReleaseDebugSymbols UP-TO-DATE
> Task :launcher:extractReleaseNativeSymbolTables UP-TO-DATE
> Task :launcher:mergeReleaseAssets
> Task :launcher:desugarReleaseFileDependencies UP-TO-DATE
aapt2 W 07-18 16:45:46 62768 19096610 LoadedArsc.cpp:682] Unknown chunk type '200'.

> Task :launcher:compressReleaseAssets
> Task :launcher:processReleaseResources

> Task :launcher:mergeExtDexRelease FAILED

> Task :launcher:mergeReleaseNativeDebugMetadata
46 actionable tasks: 7 executed, 39 up-to-date
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <8726dd6620e34d1287c5f82caa1b502d>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <8726dd6620e34d1287c5f82caa1b502d>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <8726dd6620e34d1287c5f82caa1b502d>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <8726dd6620e34d1287c5f82caa1b502d>:0)
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at <8726dd6620e34d1287c5f82caa1b502d>:0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at <8726dd6620e34d1287c5f82caa1b502d>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <8726dd6620e34d1287c5f82caa1b502d>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <8726dd6620e34d1287c5f82caa1b502d>:0)
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at <8726dd6620e34d1287c5f82caa1b502d>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <8726dd6620e34d1287c5f82caa1b502d>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput buildProgramOutput) (at <8726dd6620e34d1287c5f82caa1b502d>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <8726dd6620e34d1287c5f82caa1b502d>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.Int32 subtarget, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at /Users/bokken/build/output/unity/unity/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:370)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)

Hi @IShix-g, thanks for reaching out. Unfortunately, it seems that there's an issue with Firebase SDK version 12.1.0. For context, there are breaking changes in Firebase Android SDK which requires compileSdkVersion 34 (Start on Firebase Unity SDK version 12.0.0 onwards).
Breaking change: Changed the required minimum compileSdkVersion to be 34 or higher.
Breaking change: Updated minSdkVersion to API level 21 or higher.
Now according to the Unity forums, Unity Editors currently do not support compileSdkVersion 34, and is currently being worked on by their engineers. There are workarounds, by the Unity engineer, however I haven't tried it myself.
Another mitigation would be to downgrade Firebase SDK version 11.9.0 and also lower your compileSdkVersion to 33 or lower.

Hi @argzdev, I tried following the instructions and was able to install it without any problems. If you specify Unity 2019.1 or later, it would be helpful if you could at least develop the plugin with the current LTS in mind. I know this may be difficult, but please consider this. Thank you for your reply.

Hi @lilzubr, In my case, I am using the older version, 11.6.0. I'd like to hear how you all handle this.
Build environment
Unity : 2021.3.40f1 (sillicon)
Build Target : Android
Firebase Analytics : 11.6.0
Firebase Messaging : 11.6.0
External Dependency Manager : 1.2.181
Gradle Version : 4.2.2
Compile Sdk Version : 34
Minimum Sdk Version : 22
Target Sdk Version : 34
BuildToolsVersion : 30.0.2
External Tools

Player > Android > Build
Unity 2021.3.37f1 or later : Updated Android Gradle Plugin to 4.2.2 (from 4.0.1).  Custom Base Gradle Template no longer requires an upgrade process.

I got this same error when using the latest Unity 2022.3.38f1 LTS with the latest Firebase unity SDK 12.1.0 while targeting Android 34:
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':launcher:mergeExtDexRelease'.
> Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
   > Failed to transform play-services-measurement-api-22.0.2.aar (com.google.android.gms:play-services-measurement-api:22.0.2) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=false, dexing-min-sdk=22, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingWithClasspathTransform: C:\Users\xiaofeng\.gradle\caches\transforms-3\64b0c7447f3c6bbe741650ffe23d8c98\transformed\jetified-play-services-measurement-api-22.0.2-runtime.jar.
         > Error while dexing.

The problem doesn't happen when targeting Android 33.
@argzdev The Unity thread you linked to is about a different "AAPT2" error that Unity devs are working on fixing in Unity 2021 LTS (see Unity announcement about Unity 2021 + Android 34 build failure). However, Unity devs claim Unity 2022 doesn't have this "AAPT2" error and I can confirm it's indeed the case. Their "AAPT2" workaround does work with Unity 2021 but it only addresses the "AAPT2" error and after that I'm getting the "Failed to transform" error above. From the many Unity threads I have been following, Unity devs are not working on the above error which only happens when you have a dependency on Firebase.
I tried the following combinations and can't get Android 34 build to work:

Unity 2021.3.37f1 + Firebase 11.9.0 => "AAPT2" error.
Unity 2021.3.37f1 + Firebase 11.9.0 + Unity AAPT2 workaround => "Failed to transform play-services-measurement-api-21.6.2.aar" error.
Unity 2022.3.38f1 + Firebase 11.9.0 => "Failed to transform play-services-measurement-api-21.6.2.aar" error.
Unity 2022.3.38f1 + Firebase 12.1.0 => "Failed to transform play-services-measurement-api-22.0.2.aar" error.

Google has a deadline of 08/30/2024 to require all app updates to target Android 34. There is a risk that the Unity devs can't get the AAPT2 error fixed in time for Unity 2021. I think it's very unlikely we can count on them to get the "Failed to transform" error fixed in time. Can Firebase devs help here?

After more testing, I'm able to get Android 34 to build with either of the following:

Export the Unity project to Android Studio, change Gradle and AGP version to 8+. (This page says Android 34 requires AGP 8.1.1+).
Change min SDK from 23 to 24.

This must be a compatibility issue due to the old Gradle/AGP version used by Unity.

Thanks for the extra details and workaround, @fengx1024.
For what it's worth, the problem is due to the version compatibility of the Unity editor with the Android Gradle plugin. In the Unity documentations, the version compatibility is shown that the Unity Editor versions does not have AGP 8.1+. This is not something we can control on Firebase side.

Unity version
Gradle version
Android Gradle Plug-in version

2023.2
7.6
7.3.1

2022.3
7.2
7.1.2

2021.3
6.1.1
4.0.1

We can only wait for Unity to fully support AGP 8 onwards.

Same problem here as well, but 11.6.0 and below works without issue:

Unity 2022.3.38f1 + Firebase 12.1.0 => "Failed to transform play-services-measurement-api-22.0.2.aar" error.
Unity 2022.3.38f1 + Firebase 11.9.0 => "Failed to transform play-services-measurement-api-21.6.2.aar" error.
Unity 2022.3.38f1 + Firebase 11.8.1 => "Failed to transform play-services-measurement-api-21.5.1.aar" error.
Unity 2022.3.38f1 + Firebase 11.7.0 => "A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction. Manifest merger failed with multiple errors, see logs" error.
Unity 2022.3.38f1 + Firebase 11.6.0 => works without error.
Unity 2022.3.38f1 + Firebase 11.5.0 => works without error.

Just curious, how did the new SDK versions with issues get passed and released? This is 100% reproducible and should be able to catch by testing against different Unity versions.

@argzdev Unity 2021.3.37f1 or later : Updated Android Gradle Plugin to 4.2.2 (from 4.0.1).

documentations

That table is now outdated, new Gradle/AGP versions included in latest Unity versions are:

Unity version
Gradle version
Android Gradle Plug-in version

Unity-6
8.4
8.3.0

2022.3
7.5.1
7.4.2

2021.3
7.5.1
7.4.2

Builds seem to be failing in newer Unity 2021.3.41f1 with error message:

Hi all,
I personally haven't been able to reliably reproduce this issue, the closest I have come has been installing 2021.3.20f1 (really, any version before 38f1), which originally only has android-29 and 30 platform support, which gives me a different error than everyone else is reporting (/Users/amaurice/.gradle/caches/transforms-2/files-2.1/930c42acd29d295ce5bc495c3b84423e/core-1.9.0/res/values/values.xml:104:5-113:25: AAPT: error: resource android:attr/lStar not found.), and is fixed by installing android-34 platform support.  Likewise, our build and test machines which we build all our tests on currently uses 2020.3.34f1, so even older than that, and hasn't had issues, but that uses a different Android tool setup.
My best guess is that there is something different about my own machine, and the test machines, between the various tool installations, that is being used to avoid this issue.  However, looking at the generated Android project created by Unity, all the paths seem to pointing to the Android SDK, NDK, Java JDK, and Gradle version that comes with that version of Unity.  If you all could double check that as well, I would appreciate it, as that might be a possible explanation, that it is pulling in a different version of those tools than expected.
Another thing that could be shared would be the final generated build.gradle file, with the actual numbers it is using.  This should be in your Unity project at a path like Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/build.gradle.  For example, here is one that I have from our Analytics testapp, with Unity 2021.3.40f1:
// Android Resolver Repos Start
([rootProject] + (rootProject.subprojects as List)).each { project ->
    project.repositories {
        def unityProjectPath = $/file:////Users/amaurice/M151/analytics/$.replace("\\", "/")
        maven {
            url "https://maven.google.com"
        }
        maven {
            url (unityProjectPath + "/Assets/GeneratedLocalRepo/Firebase/m2repository") // Assets/Firebase/Editor/AnalyticsDependencies.xml:18, Assets/Firebase/Editor/AppDependencies.xml:22
        }
        mavenLocal()
        mavenCentral()
    }
}
// Android Resolver Repos End
apply plugin: 'com.android.library'

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
// Android Resolver Dependencies Start
    implementation 'com.google.android.gms:play-services-base:18.5.0' // Assets/Firebase/Editor/AppDependencies.xml:17
    implementation 'com.google.firebase:firebase-analytics:22.0.2' // Assets/Firebase/Editor/AppDependencies.xml:15
    implementation 'com.google.firebase:firebase-analytics-unity:12.1.0' // Assets/Firebase/Editor/AnalyticsDependencies.xml:18
    implementation 'com.google.firebase:firebase-app-unity:12.1.0' // Assets/Firebase/Editor/AppDependencies.xml:22
    implementation 'com.google.firebase:firebase-common:21.0.0' // Assets/Firebase/Editor/AppDependencies.xml:13
// Android Resolver Dependencies End
    implementation project('GameLoops.androidlib')
    implementation project('FirebaseApp.androidlib')

}

// Android Resolver Exclusions Start
android {
  packagingOptions {
      exclude ('/lib/armeabi/*' + '*')
      exclude ('/lib/armeabi-v7a/*' + '*')
      exclude ('/lib/mips/*' + '*')
      exclude ('/lib/mips64/*' + '*')
      exclude ('/lib/x86/*' + '*')
      exclude ('/lib/x86_64/*' + '*')
  }
}
// Android Resolver Exclusions End
android {
    compileSdkVersion 34
    buildToolsVersion '30.0.2'

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    defaultConfig {
        minSdkVersion 26
        targetSdkVersion 34
        ndk {
            abiFilters 'arm64-v8a'
        }
        versionCode 1
        versionName '1.0'
        consumerProguardFiles 'proguard-unity.txt'
    }

    lintOptions {
        abortOnError false
    }

    aaptOptions {
        noCompress = ['.unity3d', '.ress', '.resource', '.obb', '.bundle', '.unityexp'] + unityStreamingAssets.tokenize(', ')
        ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
    }

    packagingOptions {
        doNotStrip '*/arm64-v8a/*.so'
    }
}

Note that the targetSdkVersion is 34, which is now required by the Firebase Android SDK, and thus the Firebase Unity SDK.
Also, check the file at Library/Bee/Android/Prj/IL2CPP/Gradle/build.gradle, which should contain a line like classpath 'com.android.tools.build:gradle:4.2.2', which is the Android Gradle Plugin it is using.  I am seeing 4.0.1 and 4.2.2 across the 2021 versions, which lines up with https://docs.unity3d.com/2021.3/Documentation/Manual/android-gradle-overview.html  And check Library/Bee/Android/Prj/IL2CPP/Gradle/gradle/wrapper/gradle-wrapper.properties, to see which gradle version it is using, to again make sure that is what is expected.
Also, as for why this became an issue with 11.7.0, that included an update to the Firebase Android SDK which increased the compileSdkVersion to 33 (https://firebase.google.com/support/release-notes/android#analytics_v21-4-0), and that number since increased to 34 with the 12.0.0 release, which included this Android dependency update (https://firebase.google.com/support/release-notes/android#2024-05-02).  But if it isn't possible to target 33 or 34, a fallback option is to use 11.6.0, though I know the Play Store is going to start requiring the newer targets at some point, so ideally we can figure out what the issue is.

@a-maurice I think you were not able to reproduce the error because your test app has a minSdkVersion too high. In my tests, the "Failed to transform" error only happens when minSdkVersion <= 23.

Can we expect another version of Unity that has all the correct and compatible versions of Gradle, Android SDK etc?
I've been trying these workarounds to try to get my app to comply with Googles SDK 34 requirement - but no luck.
My app currently crashes on startup devices with Android 14 now. Any heads-up appreciated.

@fengx1024 Unfortunately, changing the minSdkVersion doesn't seem to cause a clean build to fail for me either, though that was a good callout.

Same problem here. As said above upgrading to minSdkVersion >= 24 solves the issue, I couldn't do that

Please create a settingTemplate.gradle in Assets/Plugin/Android and paste the below code
`pluginManagement {
repositories {
ARTIFACTORYREPOSITORY
gradlePluginPortal()
google()
mavenCentral()
}
}
include ':launcher', ':unityLibrary'
INCLUDES
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories {
ARTIFACTORYREPOSITORY
maven {
url "https://maven.google.com"
}
maven {
url "Full/path./toAssets/GeneratedLocalRepo/Firebase/m2repository"
}
maven {
url "https://maven.google.com" // Packages/com.unitynative.sharing/Editor/UnityNativeSharingDependencies.xml:7
}
google()
mavenLocal()
mavenCentral()
flatDir {
dirs "${project(':unityLibrary').projectDir}/libs"
}
}
}`
Make sure the below code need to come from mainTemplate.gradle
   ` maven {
        url "https://maven.google.com"
    }
    maven {
        url "full/path/to/Assets/GeneratedLocalRepo/Firebase/m2repository"
    }
    maven {
        url "https://maven.google.com" // Packages/com.unitynative.sharing/Editor/UnityNativeSharingDependencies.xml:7
    }
    mavenLocal()
    mavenCentral()
}`

Also as a fix option, you can use a version of unity that uses AGP 7.1.2 (e.g. 2022.3.30f1). Or for other versions of unity, you can downgrade AGP by enabling “Custom Base Gradle Template” in the project settings and downgrading the AGP version in Assets/Plugins/Android/settingsTemplate.gradle from 7.4.2 to 7.1.2.

Same problem here as well, but 11.6.0 and below works without issue:

Unity 2022.3.38f1 + Firebase 12.1.0 => "Failed to transform play-services-measurement-api-22.0.2.aar" error.
Unity 2022.3.38f1 + Firebase 11.9.0 => "Failed to transform play-services-measurement-api-21.6.2.aar" error.
Unity 2022.3.38f1 + Firebase 11.8.1 => "Failed to transform play-services-measurement-api-21.5.1.aar" error.
Unity 2022.3.38f1 + Firebase 11.7.0 => "A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction. Manifest merger failed with multiple errors, see logs" error.
Unity 2022.3.38f1 + Firebase 11.6.0 => works without error.
Unity 2022.3.38f1 + Firebase 11.5.0 => works without error.

Just curious, how did the new SDK versions with issues get passed and released? This is 100% reproducible and should be able to catch by testing against different Unity versions before releasing.

Which API are you targeting?

Builds seem to be failing in newer Unity 2021.3.41f1 with error message:
FAILURE: Build completed with 3 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':launcher:checkReleaseAarMetadata'.
> Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
   > Could not find com.google.firebase:firebase-analytics-unity:12.1.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-analytics-unity/12.1.0/firebase-analytics-unity-12.1.0.pom
       - https://repo.maven.apache.org/maven2/com/google/firebase/firebase-analytics-unity/12.1.0/firebase-analytics-unity-12.1.0.pom
       - file:/G:/Unity_2021/TestAndroid34/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-analytics-unity-12.1.0.jar
       - file:/G:/Unity_2021/TestAndroid34/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-analytics-unity.jar
     Required by:
         project :launcher > project :unityLibrary
   > Could not find com.google.firebase:firebase-app-unity:12.1.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-app-unity/12.1.0/firebase-app-unity-12.1.0.pom
       - https://repo.maven.apache.org/maven2/com/google/firebase/firebase-app-unity/12.1.0/firebase-app-unity-12.1.0.pom
       - file:/G:/Unity_2021/TestAndroid34/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-app-unity-12.1.0.jar
       - file:/G:/Unity_2021/TestAndroid34/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/firebase-app-unity.jar
     Required by:
         project :launcher > project :unityLibrary

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

3: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':unityLibrary:generateReleaseRFile'.
> Could not resolve all files for configuration ':unityLibrary:releaseCompileClasspath'.
   > Could not find com.google.firebase:firebase-analytics-unity:12.1.0.
     Required by:
         project :unityLibrary
   > Could not find com.google.firebase:firebase-app-unity:12.1.0.
     Required by:
         project :unityLibrary

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

To reproduce:

Create a new project with Unity 2021.3.41f1
Add google-mobile-ads-sdk
Add firebase-unity-sdk
Build

Same error for me

Related issue reported here: https://github.com/googlesamples/unity-jar-resolver/issues/699

Hello!
We have the same problem in preparing for Google own requirements. I suppose we are waiting this to be resolved on the next week?
I really appreciate your time. We have 10+ projects and loaded development pipeline, with less than 1 month till deadline we have less and less time to finish.
If we can help in any way - let me know!

My project details:
Platform: Mac M1
Unity version: 2021.3.31f1 (updating to 2021.3.41f1)
Firebase products used: version 11.9.0 (updating to 12.1.0)
Firebase.Analytics
Firebase.App
Firebase.Crashlytics
Firebase.DynamicLinks
Firebase.Messaging
Firebase.Platform
Firebase.RemoteConfig
Firebase.TaskExtension
Google.MiniJson
Using ExternalDependencyManager: Yes
Cur min android sdk:  22 (updating to 24)
Cur target sdk:  33 (updating to 34)
Steps:
Upgrade project to 2021.3.41f1
Build- If you get the “build tools 32.0.0 is corrupted, install using sdk manager” error, then rename “/Applications/Unity/Hub/Editor/2021.3.41f1/PlaybackEngines/AndroidPlayer/SDK/build-tools/32.0.0/d8” file to dx and “/Applications/Unity/Hub/Editor/2021.3.41f1/PlaybackEngines/AndroidPlayer/SDK/build-tools/32.0.0/lib/d8.jar” to dx.jar
Then, if you are getting “Could not find com.google.firebase:firebase-analytics-unity:12.1.0.” type errors, then follow this link. After doing this my build was successful without crashing.

Same problem here as well, but 11.6.0 and below works without issue:

Unity 2022.3.38f1 + Firebase 12.1.0 => "Failed to transform play-services-measurement-api-22.0.2.aar" error.
Unity 2022.3.38f1 + Firebase 11.9.0 => "Failed to transform play-services-measurement-api-21.6.2.aar" error.
Unity 2022.3.38f1 + Firebase 11.8.1 => "Failed to transform play-services-measurement-api-21.5.1.aar" error.
Unity 2022.3.38f1 + Firebase 11.7.0 => "A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction. Manifest merger failed with multiple errors, see logs" error.
Unity 2022.3.38f1 + Firebase 11.6.0 => works without error.
Unity 2022.3.38f1 + Firebase 11.5.0 => works without error.

Just curious, how did the new SDK versions with issues get passed and released? This is 100% reproducible and should be able to catch by testing against different Unity versions before releasing.

Which API are you targeting?

SDK 34

Thank you all for the alternative solutions. We've also made some changes on our side with the solution suggested by @manugildev. This pull request that is now available in the most EDM4U release 1.2.182 should be able to work with the upcoming 2021.3.42f1 Unity Editor version, however with the caveat that the minSdkVersion should be changed from 22 to 24 (We're still investigating this issue).
If however, you'd like use this with Unity version 2021.3.40f1 builds, manually replace the DIR_UNITYPROJECT in settingsTemplate.gradle by your project directory should work.
Note, the EDM4U is currently available in tar.gz. We'll keep you posted once we've released packaged .unitypackage with the firebase-unity-sdk as soon as we can.

Unity : 2022.3.40f1 (sillicon)
Build Target : Android
Firebase Analytics : 12.2.0
Compile Sdk Version : 34
Minimum Sdk Version : 22
Target Sdk Version : 34
Cutom Main Gradle:
Assets/Plugins/Android/mainTemplate.gradle
`apply plugin: 'com.android.library'
APPLY_PLUGINS
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// Android Resolver Dependencies Start
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:12
implementation 'com.google.android.gms:play-services-ads:23.2.0' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:7
implementation 'com.google.android.gms:play-services-base:18.5.0' // Assets/Firebase/Editor/AppDependencies.xml:17
implementation 'com.google.android.ump:user-messaging-platform:2.2.0' // Assets/GoogleMobileAds/Editor/GoogleUmpDependencies.xml:7
implementation 'com.google.firebase:firebase-analytics:22.0.2' // Assets/Firebase/Editor/AppDependencies.xml:15
implementation 'com.google.firebase:firebase-analytics-unity:12.2.0' // Assets/Firebase/Editor/AnalyticsDependencies.xml:18
implementation 'com.google.firebase:firebase-app-unity:12.2.0' // Assets/Firebase/Editor/AppDependencies.xml:22
implementation 'com.google.firebase:firebase-common:21.0.0' // Assets/Firebase/Editor/AppDependencies.xml:13
// Android Resolver Dependencies End
DEPS}
// Android Resolver Exclusions Start
android {
packagingOptions {
exclude ('/lib/arm64-v8a/' + '')
exclude ('/lib/armeabi/' + '')
exclude ('/lib/mips/' + '')
exclude ('/lib/mips64/' + '')
exclude ('/lib/x86/' + '')
exclude ('/lib/x86_64/' + '')
}
}
// Android Resolver Exclusions End
android {
namespace "com.unity3d.player"
ndkPath "NDKPATH"
compileSdkVersion APIVERSION
buildToolsVersion 'BUILDTOOLS'
compileOptions {
    sourceCompatibility JavaVersion.VERSION_11
    targetCompatibility JavaVersion.VERSION_11
}

defaultConfig {
    minSdkVersion **MINSDKVERSION**
    targetSdkVersion **TARGETSDKVERSION**
    ndk {
        abiFilters **ABIFILTERS**
    }
    versionCode **VERSIONCODE**
    versionName '**VERSIONNAME**'
    consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
}

lintOptions {
    abortOnError false
}

aaptOptions {
    noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ')
    ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
}**PACKAGING_OPTIONS**

}
IL_CPP_BUILD_SETUP
SOURCE_BUILD_SETUP
EXTERNAL_SOURCES
`
Custom Gradle Properties:
Assets/Plugins/Android/gradleTemplate.properties
`org.gradle.jvmargs=-XmxJVM_HEAP_SIZEM
org.gradle.parallel=true
unityStreamingAssets=STREAMING_ASSETS
Android Resolver Properties Start
android.useAndroidX=true
android.enableJetifier=true
Android Resolver Properties End
ADDITIONAL_PROPERTIES
`
Reproducing the issue
Generate an empty project for Unity 2022.3.40f1
Download and install 12.2.0 from [API for Unity]
Switch platform to Android
Execute build
Firebase Unity SDK Version
12.2.0
Unity editor version
2022.3.40f1
Installation Method
.unitypackage
Problematic Firebase Component(s)
Analytics
Additional SDKs you are using
Firebase Analytics : 12.2.0 only
Targeted Platform(s)
Android Platforms
Unity editor platform
Windows
Scripting Runtime
IL2CPP
Relevant Log Output
`Note: D:\UnityProjects\UnityTest22\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
ERROR:D8: com.android.tools.r8.kotlin.H
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.

What went wrong:
Execution failed for task ':launcher:mergeExtDexRelease'.

Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
Failed to transform play-services-measurement-api-22.0.2.aar (com.google.android.gms:play-services-measurement-api:22.0.2) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=false, dexing-min-sdk=22, org.gradle.status=release, org.gradle.usage=java-runtime}.
Execution failed for DexingWithClasspathTransform: C:\Users\Bestlis.gradle\caches\transforms-3\64b0c7447f3c6bbe741650ffe23d8c98\transformed\jetified-play-services-measurement-api-22.0.2-runtime.jar.
Error while dexing.

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.

What went wrong:
java.lang.StackOverflowError (no error message)

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

Get more help at https://help.gradle.org

BUILD FAILED in 23s
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
`

Note: Recompile with -Xlint:deprecation for details.
ERROR:D8: com.android.tools.r8.kotlin.H
FAILURE: Build completed with 2 failures.

Your issue has already been reported https://github.com/googlesamples/unity-jar-resolver/issues/703
As a workaround to fix it while Google investigates a real fix:

Increase Minimum API Level to 24
Player Settings > Other Settings > Minimum API Level

Note: Recompile with -Xlint:deprecation for details.
ERROR:D8: com.android.tools.r8.kotlin.H
FAILURE: Build completed with 2 failures.

@Bestlis Your issue has already been reported googlesamples/unity-jar-resolver#703. As a workaround to fix it while Google investigates a real fix:

Increase Minimum API Level to 24
Player Settings > Other Settings > Minimum API Level

Thanks! It works!))🎉

Note: Recompile with -Xlint:deprecation for details.
ERROR:D8: com.android.tools.r8.kotlin.H
FAILURE: Build completed with 2 failures.

@Bestlis Your issue has already been reported googlesamples/unity-jar-resolver#703. As a workaround to fix it while Google investigates a real fix:

Increase Minimum API Level to 24
Player Settings > Other Settings > Minimum API Level

unfortunately I have a similar error but i'm already at minimum API level 24 and on Unity 2021.3.42f1.
ERROR:D8: com.android.tools.r8.kotlin.H
FAILURE: Build completed with 2 failures.

@Bestlis Your issue has already been reported googlesamples/unity-jar-resolver#703. As a workaround to fix it while Google investigates a real fix:

Increase Minimum API Level to 24
Player Settings > Other Settings > Minimum API Level

unfortunately I have a similar error but i'm already at minimum API level 24 and on Unity 2021.3.42f1. Here's my error log:
Pixel_Starships_Build_Android_13743.log
This is my mainTemplate.gradle file:
apply plugin: 'com.android.library'
**APPLY_PLUGINS**

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
// Android Resolver Dependencies Start
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:12
    implementation 'com.android.installreferrer:installreferrer:2.1' // Assets/AppsFlyer/Editor/AppsFlyerDependencies.xml:10
    implementation 'com.android.support:appcompat-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
    implementation 'com.android.support:cardview-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
    implementation 'com.android.support:customtabs:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
    implementation 'com.android.support:support-v4:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
    implementation 'com.appsflyer:af-android-sdk:6.14.2' // Assets/AppsFlyer/Editor/AppsFlyerDependencies.xml:6
    implementation 'com.appsflyer:unity-wrapper:6.14.5' // Assets/AppsFlyer/Editor/AppsFlyerDependencies.xml:8
    implementation 'com.facebook.android:facebook-applinks:[17.0.0,18)' // Assets/FacebookSDK/Plugins/Editor/Dependencies.xml:6
    implementation 'com.facebook.android:facebook-core:[17.0.0,18)' // Assets/FacebookSDK/Plugins/Editor/Dependencies.xml:5
    implementation 'com.facebook.android:facebook-gamingservices:[17.0.0,18)' // Assets/FacebookSDK/Plugins/Editor/Dependencies.xml:9
    implementation 'com.facebook.android:facebook-login:[17.0.0,18)' // Assets/FacebookSDK/Plugins/Editor/Dependencies.xml:7
    implementation 'com.facebook.android:facebook-share:[17.0.0,18)' // Assets/FacebookSDK/Plugins/Editor/Dependencies.xml:8
    implementation 'com.google.android.gms:play-services-ads:23.0.0' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:7
    implementation 'com.google.android.gms:play-services-base:18.5.0' // Assets/Firebase/Editor/AppDependencies.xml:17
    implementation 'com.google.android.libraries.play.games:inputmapping:1.0.0-beta' // Assets/GooglePlayPlugins/com.google.play.inputmapping/Editor/Dependencies.xml:3
    implementation 'com.google.android.play:core-common:2.0.0' // Assets/GooglePlayPlugins/com.google.play.core/Editor/Dependencies.xml:3
    implementation 'com.google.android.play:review:2.0.0' // Assets/GooglePlayPlugins/com.google.play.review/Editor/Dependencies.xml:3
    implementation 'com.google.android.ump:user-messaging-platform:2.2.0' // Assets/GoogleMobileAds/Editor/GoogleUmpDependencies.xml:7
    implementation 'com.google.firebase:firebase-analytics:22.0.2' // Assets/Firebase/Editor/RemoteConfigDependencies.xml:15
    implementation 'com.google.firebase:firebase-analytics-unity:12.2.0' // Assets/Firebase/Editor/AnalyticsDependencies.xml:18
    implementation 'com.google.firebase:firebase-app-unity:12.2.0' // Assets/Firebase/Editor/AppDependencies.xml:22
    implementation 'com.google.firebase:firebase-common:21.0.0' // Assets/Firebase/Editor/AppDependencies.xml:13
    implementation 'com.google.firebase:firebase-config:22.0.0' // Assets/Firebase/Editor/RemoteConfigDependencies.xml:13
    implementation 'com.google.firebase:firebase-config-unity:12.2.0' // Assets/Firebase/Editor/RemoteConfigDependencies.xml:20
    implementation 'com.google.firebase:firebase-crashlytics-ndk:19.0.3' // Assets/Firebase/Editor/CrashlyticsDependencies.xml:13
    implementation 'com.google.firebase:firebase-crashlytics-unity:12.2.0' // Assets/Firebase/Editor/CrashlyticsDependencies.xml:20
    implementation 'com.google.firebase:firebase-iid:21.1.0' // Assets/Firebase/Editor/MessagingDependencies.xml:17
    implementation 'com.google.firebase:firebase-messaging:24.0.0' // Assets/Firebase/Editor/MessagingDependencies.xml:13
    implementation 'com.google.firebase:firebase-messaging-unity:12.2.0' // Assets/Firebase/Editor/MessagingDependencies.xml:24
    implementation 'com.google.flatbuffers:flatbuffers-java:1.12.0' // Assets/Firebase/Editor/MessagingDependencies.xml:19
    implementation 'com.google.games:gpgs-plugin-support:0.11.01' // Assets/GooglePlayGames/com.google.play.games/Editor/GooglePlayGamesPluginDependencies.xml:11
    implementation 'com.parse.bolts:bolts-android:1.4.0' // Assets/FacebookSDK/Plugins/Editor/Dependencies.xml:4
    implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.4.32' // Packages/com.bugsnag.unitynotifier/Editor/BugsnagAndroidDependencies.xml:6
// Android Resolver Dependencies End
**DEPS**}

// Android Resolver Exclusions Start
android {
  packagingOptions {
      exclude ('/lib/armeabi/*' + '*')
      exclude ('/lib/mips/*' + '*')
      exclude ('/lib/mips64/*' + '*')
  }
}
// Android Resolver Exclusions End
android {
    compileSdkVersion **APIVERSION**
    buildToolsVersion '**BUILDTOOLS**'

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    defaultConfig {
        minSdkVersion **MINSDKVERSION**
        targetSdkVersion **TARGETSDKVERSION**
        ndk {
            abiFilters **ABIFILTERS**
        }
        versionCode **VERSIONCODE**
        versionName '**VERSIONNAME**'
        consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
    }

    lintOptions {
        abortOnError false
    }

    aaptOptions {
        noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ')
        ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
    }**PACKAGING_OPTIONS**
}**REPOSITORIES**
**IL_CPP_BUILD_SETUP**
**SOURCE_BUILD_SETUP**
**EXTERNAL_SOURCES**

This is my settingsTemplate:
pluginManagement {
    repositories {
        **ARTIFACTORYREPOSITORY**
        gradlePluginPortal()
        google()
        mavenCentral()
    }
}

include ':launcher', ':unityLibrary'
**INCLUDES**

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
    repositories {
        **ARTIFACTORYREPOSITORY**
        google()
        mavenCentral()
// Android Resolver Repos Start
        def unityProjectPath = $/file:///**DIR_UNITYPROJECT**/$.replace("\\", "/")
        maven {
            url "https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib" // Packages/com.bugsnag.unitynotifier/Editor/BugsnagAndroidDependencies.xml:5
        }
        maven {
            url (unityProjectPath + "/Assets/GeneratedLocalRepo/Firebase/m2repository") // Assets/Firebase/Editor/AnalyticsDependencies.xml:18, Assets/Firebase/Editor/AppDependencies.xml:22, Assets/Firebase/Editor/CrashlyticsDependencies.xml:20, Assets/Firebase/Editor/MessagingDependencies.xml:24, Assets/Firebase/Editor/RemoteConfigDependencies.xml:20
        }
        maven {
            url "https://maven.google.com/" // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:7, Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:12, Assets/GoogleMobileAds/Editor/GoogleUmpDependencies.xml:7
        }
        maven {
            url (unityProjectPath + "/Assets/GeneratedLocalRepo/GooglePlayGames/com.google.play.games/Editor/m2repository") // Assets/GooglePlayGames/com.google.play.games/Editor/GooglePlayGamesPluginDependencies.xml:11
        }
        mavenLocal()
// Android Resolver Repos End
        flatDir {
            dirs "${project(':unityLibrary').projectDir}/libs"
        }
    }
}

gradleTemplate:
org.gradle.jvmargs=-Xmx**JVM_HEAP_SIZE**M
org.gradle.parallel=true
android.enableR8=**MINIFY_WITH_R_EIGHT**
unityStreamingAssets=.unity3d**STREAMING_ASSETS**
# Android Resolver Properties Start
android.useAndroidX=true
android.enableJetifier=true
# Android Resolver Properties End
**ADDITIONAL_PROPERTIES**
# MOPub required properties https://developers.mopub.com/publishers/unity/integrate/#additional-requirements-for-unity-2020
android.useAndroidX=true

Note: Recompile with -Xlint:deprecation for details.
ERROR:D8: com.android.tools.r8.kotlin.H
FAILURE: Build completed with 2 failures.

@Bestlis Your issue has already been reported googlesamples/unity-jar-resolver#703. As a workaround to fix it while Google investigates a real fix:

Increase Minimum API Level to 24
Player Settings > Other Settings > Minimum API Level

Unfortunately it still broken for me even with the above fixes. I'm on Unity 2021.3.42f1 with latest firebase version. This is the error log i'm getting:
Pixel_Starships_Build_Android_13761.log
This is actually inconsistent for me. It sometimes build successfully, but most of the time it will fail with the above error. Note here that these builds are being built using TeamCity for automation.

@vincent-savysoda, taking a quick glance at your logs, Firebase is not causing the issue.
ERROR:/Volumes/DataDrive/TeamCity/BuildAgent2/work/3af6105c011be877/Library/Bee/Android/Prj/IL2CPP/Gradle/launcher/build/intermediates/project_dex_archive/release/out/com/savysoda/pixelStarships/BuildConfig.dex: D8: Type com.savysoda.pixelStarships.BuildConfig is defined multiple times: /Volumes/DataDrive/TeamCity/BuildAgent2/work/3af6105c011be877/Library/Bee/Android/Prj/IL2CPP/Gradle/launcher/build/intermediates/project_dex_archive/release/out/com/savysoda/pixelStarships/BuildConfig.dex, /Volumes/DataDrive/TeamCity/BuildAgent2/work/3af6105c011be877/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/build/.transforms/28d612dd9ed4ab21a30f48890f321c60/transformed/release/com/savysoda/pixelStarships/BuildConfig.dex
[07:11:02] :	 [Step 2/3] com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
[07:11:02] :	 [Step 2/3] Type com.savysoda.pixelStarships.BuildConfig is defined multiple times: /Volumes/DataDrive/TeamCity/BuildAgent2/work/3af6105c011be877/Library/Bee/Android/Prj/IL2CPP/Gradle/launcher/build/intermediates/project_dex_archive/release/out/com/savysoda/pixelStarships/BuildConfig.dex, /Volumes/DataDrive/TeamCity/BuildAgent2/work/3af6105c011be877/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/build/.transforms/28d612dd9ed4ab21a30f48890f321c60/transformed/release/com/savysoda/pixelStarships/BuildConfig.dex

The issue is due to your code or setup that is causing the inconsistent build. Please file a new issue if you believe Firebase is this. Thanks!

Hi folks, the Firebase Unity SDK version 12.2.0 has now been released. This includes the latest version of the unity-jar-resolver EDM4U v1.2.182, and it should work with the latest version of Unity Editor version 2021.3.42f1. Please note that minimum API has to be set to level 24. That said, I'll go ahead and close this thread.

GoolgePlayStore 34 버전 대응이 필요해서 준비중에 발생한 문제입니다.
위와같은 동일한 문제를 격었다.

Unity: 2021.3.39 ( 원래 사용버전 )
Android API 33 -> 34 변경 ( Build Fail, AAPT2 문제로 기억함 )

Unity: 2021.3.42 ( Upgrade )
Firebase SDK Version: 11.6.0 Error 발생 -> Firebase SDK 12.2.0 Upgrade ( Build Fail )
Minimum API Level 23 -> 24 변경 ( Build Success )
https://www.appbrain.com/stats/top-android-sdk-versions
API Level 23: Marshmallow 점유율이 낮아서 23 에서 24로 변경하였습니다.

혹시 다른 친구들에게 도움이 될까 적어봅니다.

My workaround is as below:
https://stackoverflow.com/questions/77926070/agpbi-kinderror-textcom-android-tools-r8-kotlin-h-sources-to
I think it's better. Because minSdkVersion can be the minimal that Unity can provide (22).
My working environment:

Unity 2021.3.42f1.
Firebase Unity SDK: 11.8.1

I referred to this response，No need to modify the minSdkVersion.
https://stackoverflow.com/questions/77926070/agpbi-kinderror-textcom-android-tools-r8-kotlin-h-sources-to
Unity 2021.3.42f1
Firebase Unity SDK: 11.8.1
minSdk 21

My workaround is as below: https://stackoverflow.com/questions/77926070/agpbi-kinderror-textcom-android-tools-r8-kotlin-h-sources-to
I think it's better. Because minSdkVersion can be the minimal that Unity can provide (22).
My working environment:

Unity 2021.3.42f1.
Firebase Unity SDK: 11.8.1

What gradle file did you change to support sdk 22?

Hey @StinkySteak, you may check out the solutions we've discussed here to support SDK 22.


Default from address

Take a look at the erc1820 package for how they get the account to use.

This appears to be working now.


Inbuilt FiDO UAF Client is crashing. ( Galaxy S7 )

I am trying fidouafclient ( rp app ) on Galaxy S7.  S7 has inbuilt FiDO UAF Client ( com.sec.android.fido.uaf.client.OxygenActivity ).
When I click on register it prompts me to select UAF Client app.
https://github.com/eBay/UAF/blob/f524462b32a7ed899491a27c7022ac9f03014c9d/fidouafclient/app/src/main/java/org/ebayopensource/fidouafclient/MainActivity.java#L104
If I select OxygenActivity it crashes with the message.

Unfortunately, FiDO UAF client has stopped.

If I select eBay client it works fine.
Ideally we will not have our own FIDO_OPERATION intent ( org.ebayopensource.fidouafclient.ExampleFidoUafActivity ) . So in that case it will always crash.
I am not sure if the issue is with this app or inbuilt FiDO UAF Client.

Hi Rakesh,
Thank you for joining in. I've invited you to join the chat, too: https://gitter.im/eBay/UAF
Can you try to see if S7 UAF client is returning any error back? It could happen that the Faced Id of the RP test app check is failing.
We can discuss it more over the chat, if you like.
Thanks,
Neb.

@rakeshjuyal - Any luck in finding more details or solving the original issue?

@npesic I am sorry I don't have much update on this.  Last I remember OxygenActivity was crashing with code: 255 ( eBay client was working fine though ).   May be we can close this issue. Once I will start working on this I will re-open this.
Thanks for the follow up.

Hi Neb,
I think issue is sending in MainActivity. it is passing invalid Message to ASM.  Registration response from Server should be coverted to ASMRequest. current code passing the request as is.
regRequest is passed in Channel binding data. this is invalid
data.putString("message", regRequest);
data.putString("UAFIntentType", UAFIntentType.UAF_OPERATION.name());
data.putString("channelBindings", regRequest);

Any news on this? I'm getting the same 255 error on GS6 and Error Code 6 on Xperia Z5.

Hi @marius-bardan. Thanks for your interest. I'll take a look and report back here. If you do any further debugging, please share your findings.

Here is an update on testing the inbuilt UAF clients: I've added the endpoints for easy whitelisting AAIDs, and Facet Ids. More details can be found here:
https://github.com/eBay/UAF/blob/master/RELEASE.md#20161014
After that I was able to do the test using the ZUK Z2's inbuilt UAF client, eBay's Android Relying Party test app and eBay's UAF open source server.
@marius-bardan: Please, try to whitelist your AAID and Facet Id and try to test it one more time.

Since there are no new comments on this, I'll consider it resolved and go ahead and close this issue.

Hi @npesic. Sorry for the long delay. Been caught up in another project, lately.
I've tried whitelisting both facetID & AAID via the dedicated endpoints (local & head2toes.org), but I'm still having issues at registration, on S6 and Z5.
This is how the final request looks like:
{"uafProtocolMessage":"[{\"header\":{\"upv\":{\"major\":1,\"minor\":0},\"op\":\"Reg\",\"appID\":\"http:\\\/\\\/head2toes.org\\\/fidouaf\\\/v1\\\/public\\\/uaf\\\/facets\",\"serverData\":\"ZFJObjBhWnhIaElQQ2pfZ19JN3VHNTM2Y3FtOVFqY3lGSG1HM01qM1JJcy5NVFEzTnpNeE5UVTBNemt3TXcuYldGeWFYVnouU2tSS2FFcEVSWGRLUlhCVVZURkNibFpyVWtoUFZFMHpVMVZaTTFaR2FIaGtSR3hYWlVoVg\"},\"challenge\":\"JDJhJDEwJEpTU1BnVkRHOTM3SUY3VFhxdDlWeHU\",\"username\":\"marius\",\"policy\":{\"accepted\":[[{\"aaid\":[\"53EC#C002\"]}],[{\"aaid\":[\"0018#0001\"]}]]}}]"}
Dispatching the above request, yields different results:

on S6, I'm getting error code 7 - untrusted facet ID (UAF Oxygen).
on Z5, I'm getting error code 7 - Invalid operation header (UAF NokNok).

I can't see any stacktrace on S6, but on Z5, this is what I have:
Error while processing Uaf request
                                               com.fido.uaf.ver0100.types.UafException: Protocol error (Invalid operation header.)
                                                   at com.fido.uaf.ver0100.engine.UafEngine.parseRequest(SourceFile:46)
                                                   at com.noknok.android.uaf.framework.service.UafProcessor.processUafRequest(SourceFile:94)
                                                   at com.noknok.android.uaf.framework.service.UafIntentProcessor.processIntent(SourceFile:137)
                                                   at com.noknok.android.uaf.framework.service.MfacIntentActivity$UafProcessorTask.doInBackground(SourceFile:45)
                                                   at com.noknok.android.uaf.framework.service.MfacIntentActivity$UafProcessorTask.doInBackground(SourceFile:29)

@marius-bardan - This looks like the FacedId that you have whitelisted is not matched to the actual facet Id. You might want to check what to check the Android app signature in your case, and the actual FacetId that is generated for your Android app build.
You can check this code: https://github.com/eBay/UAF/blob/master/fidouafclient/app/src/main/java/org/ebayopensource/fidouafclient/MainActivity.java#L127

Yep. Using exactly the same code. Have not touched it. Tried to generate it from terminal as well and it has the same output.
Weird thing is I'm getting error code 6 on NokNok implementation on Z5.

So, you have verified that facet Id generated in the code is the one that is whitelisted?
If the facet Id is whitelisted, then verify your settings, are you pointing to the right UAF server.
Last to check is to verify if the HTTP protocol is an issue here: Are you pointing to http://www.head2toes.org
It could be that you need to do the HTTPS.

Yep, whitelisted everything, via head2toes.
Will try with https. Btw, I see that the 'channelBindindings' param contains the regRequest. Isn't that an issue?

Yep. Using exactly the same code. Have not touched it. Tried to generate it from terminal as well and it has the same output.Weird thing is I'm getting error code 6 on NokNok implementation.
-------- Original message --------From: Neb<EMAIL_ADDRESS>Date: 10/24/16  20:12  (GMT+02:00) To: eBay/UAF<EMAIL_ADDRESS>Cc: Marius Bardan<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [eBay/UAF] Inbuilt FiDO UAF Client is crashing. ( Galaxy S7 ) (#17)
@marius-bardan - This looks like the FacedId that you have whitelisted is not matched to the actual facet Id. You might want to check what to check the Android app signature
in your case, and the actual FacetId that is generated for your Android app build.
You can check this code:
https://github.com/eBay/UAF/blob/master/fidouafclient/app/src/main/java/org/ebayopensource/fidouafclient/MainActivity.java#L127
—
You are receiving this because you were mentioned.
Reply to this email directly,
view it on GitHub, or
mute the thread.

Deployed to a tomcat with a valid SSL certificate and it works on the Z5.
However, on S6, I'm getting again 255 error code. I think it needs channelBindings as well. Will try to compute those and see if it works.

Great run! I'm glad that you confirmed that Z5 works fine.
I remember that I was able to test it successfully with S6 before. I also remember that I was facing some issues while testing. Not sure what was it exactly. Try to verify the structure of the UAF message. If I remember correctly, S6 client was verifying the UAF message and failing if there are some additional fields that are not recognized. Other clients are ignoring what is optional, but not S6 client.

@npesic if you have the chance again to test against an S6, I'd really appreciate if you can post here what did you do to have it working :)


The same textures over levels and multiple texture colours in the same png

Once for example the red diving suit is chosen as random in 40 fathoms, you should keep it for the rest of the water levels.
Another thing is textures for different objects that have multiple colours that are in the same png. For example, in venice;

Blue Awning and Blue Boat (BOAT.TR29)
Green Awning and Blue Boat (BOAT.TR29)

Do we have to do textures for all scenarios or is there a workaround?

A solution is to have the different coloured objects in a separate png file. For example, one for the boat, another for the awning etc. It will take a while to have it pointed towards those specific texture locations instead, something for the future and it will make it easier to easily add new textures.


Game does not compile on Linux out of the box for several reasons

First of all, you hardcode "g++-5" in game/sdl/linux/makefile
To continue compilation I had to remove -5 from several places on top of the make file so that executable is just "g++".
Then build has stopped because of missing #include <stdio.h> in  several files:
game/httppackinfomanager.cpp with error: 'fopen' was not declared in this scope
game/httppackmanager.cpp:54:51: error: 'fopen' was not declared in this scope
mpshared/packinfomanager.cpp:43:54: error: 'fopen' was not declared in this scope
mpshared/indexloader.cpp:12:38: error: 'fopen' was not declared in this scope
Next problem was:
../../gameform.cpp:4:30: fatal error: game/Multiplayer.h: No such file or directory
compilation terminated.
../../Multiplayer.cpp:2:30: fatal error: game/Multiplayer.h: No such file or directory
compilation terminated.
In fact this file does not exist, however file game/multiplayer.h does. So changing this two files to multiplayer.h did work.
After those five files the game compile successfully.
Another problem is with file game/sdl/linux/install.sh
It uses if ! dpkg -l | grep libsdl2-dev > /dev/null ; then
This line which would only work in distributions based on deb packages, such as Debian and Ubuntu but not in other distributions. I think it's better to say that SDL2 is required for building and recommend to install this two packages: libsdl2-dev libcurl4-openssl-dev in your readme file
(though in my distribution -dev packages are not separated from main packages)

The game still does not start though, after I have copied ./HostileTakeover executable to ~/Games/HostileTakeover/ along with two files which were copied by script install.sh with this error message:
Incorrect game graphics version or no game graphics installed
I start it with ./HostileTakeover from the game directory. This message produced by game/game.cpp in this place:
        ddword ddwSizes8bpp = IsDataPresent(8);
        ddword ddwSizes4bpp = IsDataPresent(4);
        if (ddwSizes8bpp == 0 && ddwSizes4bpp == 0) {
                HostMessageBox(TEXT("Incorrect game graphics version or no game graphics installed"));
                return false;
        }

Apparently it can't find this file: htdata832.pdb. I thought that it's because of makefile having hardcoded path: -rpath ~/Games/HostileTakeover -lcurl -lpthread but I'm not sure. I didn't get REL=1 build to start but debug build shows a window.

Files game/sdl/sdlpackfile.cpp and mpshared/packinfomanager.cpp have lines "return false;" which cause type mismatch:
error: cannot convert ‘bool’ to ‘json::JsonMap*’ in return```

To get past "Incorrect game graphics version or no game graphics installed" for the release build, the database version check must be more permissive. That can be done by sending in true for fUpwardCompatOK for the last call to Game::CheckDatabaseVersion(). So change line 1438 in game.cpp from:
if (CheckDatabaseVersion(pszMainDataDir, szPdb, false))
to:
if (CheckDatabaseVersion(pszMainDataDir, szPdb, true))

sathisse, thanks. Your suggestion worked, now release build works for me.
But are there active developers who can add some fixes to the main tree?

It's been a while since I've had the time to work on this project. I didn't work much with the Linux port and makefile beyond getting it to build/run on my machine. Feel free to send pull requests.

It's been a while since I've had the time to work on this project. I didn't work much with the Linux port and makefile beyond getting it to build/run on my machine. Feel free to send pull requests.

what about the web version?


Node spec transformer

Pull Request
What? (description)
closes #3
Why? (reasoning)
Acceptance
Please use the following checklist:

[x] you linked an issue (if applicable)
[x] you included tests (if applicable)
[x] you ran conformance (make conformance)
[x] you linted your code (make lint)
[x] you linted your code (make unit)

See make help for a description of the available targets.

/m


missing definition for StorageDeviceSeekPenalty.

according to the defininition in MSDN: https://learn.microsoft.com/en-us/windows/win32/api/winioctl/ne-winioctl-storage_property_id
StorageDeviceSeekPenalty is missing in the enum. the corresponding type is DEVICE_SEEK_PENALTY_DESCRIPTOR.
https://github.com/dahall/Vanara/blob/69f805f25c707ea3e216e92dbae293b7da82c352/PInvoke/Kernel32/WinIOCtl.Enums.cs#L2166
[CorrespondingType(typeof(DEVICE_SEEK_PENALTY_DESCRIPTOR ))]
StorageDeviceSeekPenalty,
should be inserted there.

Fixed and committed. Will go out in next release.


fix some deadlocks found by evil lock manager (tm)

Closing this PR, as the changes are now also in bug-fix/fix-premature-unlock branch.


python312Packages.trimesh: 4.1.3 -> 4.1.4

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python312Packages.trimesh is: Python library for loading and using triangular meshes
meta.homepage for python312Packages.trimesh is: https://trimsh.org/
meta.changelog for python312Packages.trimesh is: https://github.com/mikedh/trimesh/releases/tag/4.1.4
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 4.1.4 with grep in /nix/store/m3h45rlcgpp5k777bkqa4c8rrsp231m0-python3.12-trimesh-4.1.4
found 4.1.4 in filename of file in /nix/store/m3h45rlcgpp5k777bkqa4c8rrsp231m0-python3.12-trimesh-4.1.4

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

4 package rebuild(s)

First fifty rebuilds by attrpath
cura
python311Packages.pyrender
python311Packages.trimesh
python312Packages.trimesh

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/m3h45rlcgpp5k777bkqa4c8rrsp231m0-python3.12-trimesh-4.1.4 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python312Packages.trimesh https://github.com/r-ryantm/nixpkgs/archive/db8ddf0b80b5928a9f490a8d637db4c657ff675e.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/db8ddf0b80b5928a9f490a8d637db4c657ff675e#python312Packages.trimesh

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/m3h45rlcgpp5k777bkqa4c8rrsp231m0-python3.12-trimesh-4.1.4
ls -la /nix/store/m3h45rlcgpp5k777bkqa4c8rrsp231m0-python3.12-trimesh-4.1.4/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

4 packages built:

cura
python311Packages.pyrender
python311Packages.trimesh
python312Packages.trimesh

Maintainer pings
cc @gebner @pbsds for testing.

@NixOS/nixpkgs-merge-bot merge

@NixOS/nixpkgs-merge-bot merge

@NixOS/nixpkgs-merge-bot merge

@NixOS/nixpkgs-merge-bot merge

@NixOS/nixpkgs-merge-bot merge

@NixOS/nixpkgs-merge-bot merge

@NixOS/nixpkgs-merge-bot merge

@NixOS/nixpkgs-merge-bot merge

@NixOS/nixpkgs-merge-bot merge

Can i merge this, or do you want to keep it for testing?

Merging is fine :) @Scriptkiddi will find a new pr to test around


Move to top level package.json instead of build.sh

To be more consistent with our other packages, I think we should move to a top-level package.json that cd's into the subdirs and builds the subpackages (instead of the build.sh). This will be more familiar to our other devs and we can have separate npm commands for each subpackage.
@gnestor

I prefer npm scripts myself, but the intention here was to keep it consistent with ipywidgets which is the only other repo that is similar in structure (lab and notebook extensions, each have their own package.json, dev-install.sh to build and install both extensions). Min was explaining to me that all of the Jupyter repos minus ipywidgets can be fully installed with a pip install -e ., so that's another thing to consider. Given that, we could:

Create a top-level package.json for running scripts only: npm run build, npm run build:labextension, npm run build:nbextension, npm run watch (this would require the watch npm module to be installed at the top-level), npm run watch:labextension, npm run watch:nbextension
Add a JS build step to setup.py: pip install -e .

I think this approach sounds great! Then the top level setup.py could
simply run those JS/NPM build steps, similar to how jupyterlab itself works.
On Mon, Feb 6, 2017 at 8:37 AM, Grant Nestor<EMAIL_ADDRESS>wrote:

I prefer npm scripts myself, but the intention here was to keep it
consistent with ipywidgets which is the only other repo that is similar in
structure (lab and notebook extensions, each have their own package.json,
dev-install.sh
https://github.com/ipython/ipywidgets/blob/master/dev-install.sh to
build and install both extensions). Min was explaining to me that all of
the Jupyter repos minus ipywidgets can be fully installed with a pip
install -e ., so that's another thing to consider. Given that, we could:

Create a top-level package.json for running scripts only: npm run
build, npm run build:labextension, npm run build:nbextension, npm run
watch (this would require the watch npm module to be installed at the
top-level), npm run watch:labextension, npm run watch:nbextension
Add a JS build step to setup.py: pip install -e .

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jupyterlab/mimerender-cookiecutter/issues/38#issuecomment-277737522,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABr0JrG_f4PUf3IrCcYpdH7F5GcwHtDks5rZ0xcgaJpZM4L3vE-
.

--
Brian E. Granger
Associate Professor of Physics and Data Science
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
<EMAIL_ADDRESS>and<EMAIL_ADDRESS>


Custom date fields are not saved when date is entered manual

PHP Version
PHP8.2
Shopware Version
<IP_ADDRESS>
Affected area / extension
Platform(Default)
Expected behaviour
Setup a custom field as date/time an us it e. g. in products.
Open a product and go to the custom field.
Do not use the datepicker and enter date and time manual.
Save the product.
Go back in the product and have a look in the custom field.
If you first add the date via date picker, it works, but a fully manual entry does not.
Actual behaviour
The date and time should be shown after saving.
How to reproduce
See behavior.

[public] Automated response: This issue is linked to the internal issue  https://shopware.atlassian.net/browse/NEXT-38027 Pending  .
[created from NEXT-38027, comment 489627]


Avoid switching python interpreter when publishing

If setup.py is run via python2.7 setup.py publish, the current code will invoke the default python, rather than the explicitly called one.
Avoid that by spawning the same interpreter.

good catch!

Thanks!


android-deep-linking

android-deep-linking project is not exist in the zip.

@Tripati did you get an answer?

'android-deep-linking' repo doesn't exist anywhere in the main repository.


Easy ValueFunction API for dispatching on different integration methods

ValueFunctions should be (optionally) sensitive to integration method used, to dispatch differently.
This could be achieved by creating an output type which easily stores said information?

I think for now I'll leave their API as is, since the metric is passed in as the first argument, so dispatching on different methods is possible vis a vis different methods are currently dispatched by metric parameter type.
The kwargs... will also stay for now, since it's entirely optional, but may still be used in the future.


Unable to type in sui-textarea

Occasional issue when clicking in a sui-textarea, textarea is focused on but users are not able to type in it.

unable to duplicate the issue. closing for now.


DO NOT MERGE: Added response decoder configuration to fix max header size issue

Added response decoder configuration to fix max header size issue: https://github.com/Azure/azure-sdk-for-java/issues/6069
Added other response configurations in line with V2

LGTM. I like small PRs. thank you.
Just two questions:

does . httpResponseDecoder(.) overwrite the existing http decoder or does it add a new decoder in addition to the existing one?
I am curious how did you manage to test this?

httpResponseDecoder(.) adds a new response decoder with provided options. Works as a builder pattern internally. That's why we are doing it once in constructor.

I have tried and haven't been able to test it yet. I am working with folks from backend and query team to reproduce this. The reason to create this PR is to make sure it doesn't have any side effects on http client. Will only merge it after testing it thoroughly.

/azp run java - cosmos - tests

LGTM. I like small PRs. thank you.
Just two questions:

does . httpResponseDecoder(.) overwrite the existing http decoder or does it add a new decoder in addition to the existing one?
I am curious how did you manage to test this?

httpResponseDecoder(.) adds a new response decoder with provided options. Works as a builder pattern internally. That's why we are doing it once in constructor.
I have tried and haven't been able to test it yet. I am working with folks from backend and query team to reproduce this. The reason to create this PR is to make sure it doesn't have any side effects on http client. Will only merge it after testing it thoroughly.

@desh901 helped with the testing, we are good to go for merge: https://github.com/Azure/azure-sdk-for-java/issues/6069#issuecomment-564933308


High skipped

What does skipped actually mean - does it mean that another worker already covered it, or that it couldnt get there in time? I am at about 10% skipped. I also don't appear to every be able to map all of the points - this area has been running over a month and still have a lot of unknowns. Had 40 accounts until the ban wave knocked a few out - area is about 6-10km. Are there any changes I should make?
Monocle running for 1 day, 1:51:34.283437
Known spawns: 4709, unknown: 296, more: 4837
35 workers, 38 coroutines
DB queue: 0, sightings cache: 1445, mystery cache: 109
Seen per worker: min 0, max 6127, med 5729
Visits per worker: min 0, max 1672, med 1603
Visit delay: min 86.4, max 166.8, med 92.5
Speed: min 0.1, max 19.3, med 18.5
Extra accounts: 0, CAPTCHAs needed: 0
Pokemon found count (10s interval):
156375<PHONE_NUMBER>11<PHONE_NUMBER>51<PHONE_NUMBER>70<PHONE_NUMBER>07
Visits: 43811, per second: 0.47
Skipped: 65636, unnecessary: 6935
Seen per visit: 3.57, per minute: 101

Skipped means the spawn was not visited at all, unnecessary means it was visited by another worker who was not scheduled to visit it but passed by on its way to a scheduled visit somewhere else.
You don't have enough workers. Assuming the stats you've provided here are accurate, you'll need probably 10x more workers, maybe more if there are a lot of points not discovered yet. You should run a bootstrap scan to find the location of all spawn points, then divide the total spawn points (known + unknown + more) by around 50 and try to get at least that many workers.


Avoid forms getting cleared

Closes #133.
An easy solution that took a while since all react documentation warns against auto-generated ids. The catch is there's no issue if they are referentially stable and in sync with the array of elements.

Looks good to me. However, I wonder if we can just add an ID field to MsgGetter (maybe rename to MsgElement or something) and then loop over msgGetters.

I tried that with an id coming from const id = useId();, which is stable, and this happens:

MsgGetters is a ref, which means the components don't re-render when that changes. We would need to change it to useState.
If we change it to useState, everytime you change a form field, the msg gets rebuilt, put into MsgGetter, and the component re-renders again, so the effect is that you cannot enter anything on any msg form because it re-renders every time you try to do it.

Alright, then let's go for this solution


Unable to run React-Native android  Awesome project on Android version 4.4

I am playing my hands on android project and when i running it on android 5 and 6 its working fine but when switched to android version 4 it giving error like
"reference error can't find variable: _fbBatchedBridge (line 1 in the generated bundle)" and when i reload JS its turn to
"Unable to download JS bundle. Did you forget to start the development server or connect your device? "
even i started server using "react-native start" but still getting same error.
can any one help at where i 'm wrong. ?

@deeppatidar You have to enter your ip address manually for anything os version below 5.0
See: Connect to the local dev server via wifi


[Docs] API reference should show inherited public methods

If you look at https://pptr.dev/api/puppeteer.elementhandle/, you'd see that only the public methods defined on the ElementHandle class are shown and to see the inherited methods from JSHandle, one has to navigate to a different page. I think it might make sense to show inherited properties in the API reference for a class as well.
cc @jrandolf

Is this issue being worked upon? @OrKoN If not, I would love to pick this up 📜

@akashchouhan16 currently no one works on it. Happy to review a PR if you figure it out.


Add SNI support for API HTTPS endpoint

This allows us to use a production internal loadbalancer without forcing
readthedocs.org resolves to the internal loadbalancer.

Updated this, it worked for api v1, but needed some more changes for api v2.


[helm-charts] Use latest docker image for main branch

The current default image tag is the same as OPEA release. Since we'll have different branch for each release, we can use the following rules for docker image tag:
main branch: Use latest, so we can run with latest image to detect issues early.
stable branch (v0.9 etc): Use the docker images aligned with OPEA release.
When a new release is created, we'll trigger a CI job to modify the release branch accordingly.

close as the PR has been merged


Toolbar demo: Update dropdown with select component

The toolbar demo should be updated to replace drop down with the select dropdown variant. https://pf-next.com/components/Dropdown/examples/
Please note, there is a known issue with the dropdown select that will impact this demo. See: https://github.com/patternfly/patternfly-next/issues/792

Referencing #959 for continued work on Toolbar Component


Sorting of books is lost when copying

Describe the Bug
We have created a book as a template in our bookstack and now want to copy it. However, the manual sorting of the book is lost and is sorted automatically (by name?)
Steps to Reproduce

Create a book with a fixed strcuture
hit the copy button
strucutre is lost

Expected Behaviour
After clicking on copy the structure should be maintained.
Screenshots or Additional Context
No response
Browser Details
No response
Exact BookStack Version
v23.06.2
PHP Version
No response
Hosting Environment
Ubuntu 20.04 VPS, installed using official installation script

Thanks for reporting this @Man-in-Black,
From testing on between versions, it looks like this was addressed for v23.08, while performing changes to support sorting for the API.
I'll therefore close this off but if you do continue to experience issues on the current version of BookStack feel free to still comment and this can be re-opened.


New Game: Super Hexagon

Adds support for Super Hexagon
Quests:

Time Survived (Every 2 minutes. Time only counts if you survive at least 10 seconds)

Doesn't work for me. timeAddress is 0

Huh OK, I'll have to take a look at it.
I tested in on the itch.io version so that may make it different? I don't know if that makes a difference or not.
(Also, just to make sure, the quest doesn't start counting until more than 10 seconds have passed in a round)

Just pushed a change with a new (simpler) memory address that works for me. Give that a try and let me know if that still doesn't work for you.

I tested in on the itch.io version so that may make it different? I don't know if that makes a difference or not

It usually does.
Itch.io provides DRM free versions of the games, whereas Steam versions usually initialize the Steamworks API to protect the game from being run without owning it on Steam + setting up overlay, achievements & stuff.
This means the binary (the .exe file) is usually not the same in the 2 versions, and since memory is not initialized in the same order, it doesn't end up at the same place.

Gotcha. Do we have a system for setting up different addresses for each platform in Hint Machine yet?

We don't have a magic method of doing it, but I like the way it was implemented in Metroid Prime Pinball.
1* Detect which version you are dealing with
2* Behave differently depending on the version

Ok, well the current version only works for itch.io then. I don't own the game on Steam, so if someone who did could implement it, that would be great

I could do it for Steam, but the timer is not easy to get since you cannot pause, and I wasn't able to find any pointer path because of that.
Do you have any advice on how you found it for the itch version?

The time is stored as milliseconds, where each second is 60 milliseconds. The timer Memory is not reset after a run ends, so I end the run, calculate the integer value, and use that to find the pointer after a run is over.

That makes me think @Dinopony, for multi-platform support, we could have some form of hashing based on the file path of the attached process, and decide on a pointer (or raise that's it's an unsupported version) based on that. Would be nicer than having duplicate entries in the game selection

The time is stored as milliseconds, where each second is 60 milliseconds. The timer Memory is not reset after a run ends, so I end the run, calculate the integer value from the time I got, and use that to find the address after a run is over.

Damn, that's what I did but I always ended up with several addresses and I could not find a single match for crossed pointer scans. I might try again later, but I'm a bit busy right now.

That makes me think @Dinopony, for multi-platform support, we could have some form of hashing based on the file path of the attached process, and decide on a pointer (or raise that's it's an unsupported version) based on that. Would be nicer than having duplicate entries in the game selection

A game should never have several entries in the game selection list / window, even if it supports several versions. It's up to the (unique) connector class to handle the various game versions. Having a hash could be useful though to quickly identify if we're facing the right version of the game 👍
I'll add an issue for that.


Add Pixel type (photo or neumorphism)

Types

Original Photo
neumorphism
Lego
dice(grayscale only)
rubik's(RGB color)