Could not resolve all files for configuration ':unityLibrary:releaseCompileClasspath'

Hello,

I migrated a project with a custom android .aar plugin from Unity 2017 to 2020.
When I try to build to android I get this error:

*CommandInvokationFailure: Gradle build failed.* 
*/Applications/Unity/Hub/Editor/2020.3.24f1/PlaybackEngines/AndroidPlayer/OpenJDK/bin/java -classpath "/Applications/Unity/Hub/Editor/2020.3.24f1/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx7410m" "assembleRelease"*
*stderr[*
*Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8*
*FAILURE: Build completed with 2 failures.*
*1: Task failed with an exception.*
*-----------*
_* What went wrong:_
*Execution failed for task ':unityLibrary:generateReleaseRFile'.*
*> Could not resolve all files for configuration ':unityLibrary:releaseCompileClasspath'.*
*> Failed to transform app-release-.aar :)app-release:) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.status=integration}.*
*> Execution failed for LibrarySymbolTableTransform: /Users/xxxx/.gradle/caches/transforms-2/files-2.1/0805d71e5e904e8a4990e5f53dd3f056/app-release.*
*> java.io.IOException: Failed to get package name from manifest /Users/xxxx/.gradle/caches/transforms-2/files-2.1/0805d71e5e904e8a4990e5f53dd3f056/app-release/AndroidManifest.xml*

As I understand it unity cannot overwrite the package name from the manifest in the .aar.
But I don’t know why. Can somebody Help ?

Thanks,
Philipp

The issue was the facebook SDK. Had to be removed.

Hi Ippster, have you resolve this issues? I have meet this error too.

I resolve this by remove “android:label” in AndroidMainfest.xml.