unity 打安卓包CommandInvokationFailure: Gradle build failed。 Missing 'package' key attribute on eleme...

CommandInvokationFailure: Gradle build failed. 
/applications/Unity/PlaybackEngines/AndroidPlayer/Tools/OpenJDK/MacOS/bin/java -classpath "/applications/Unity/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

stderr[
[com.facebook.android:audience-network-sdk:6.8.0] /Users/lvjiahui/.gradle/caches/transforms-2/files-2.1/963750c1949dbbdc2918f7adb25d5918/AndroidManifest.xml:12:9-55 Error:
    Missing 'package' key attribute on element package at [com.facebook.android:audience-network-sdk:6.8.0] AndroidManifest.xml:12:9-55
[com.facebook.android:audience-network-sdk:6.8.0] /Users/lvjiahui/.gradle/caches/transforms-2/files-2.1/963750c1949dbbdc2918f7adb25d5918/AndroidManifest.xml Error:
    Validation failed, exiting

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processReleaseManifest'.
> Manifest merger failed with multiple errors, see logs

* 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 10s
]
stdout[

> Configure project :
============================================================================

[com.facebook.android:audience-network-sdk:6.8.0] /Users/lvjiahui/.gradle/caches/transforms-2/files-2.1/963750c1949dbbdc2918f7adb25d5918/AndroidManifest.xml:12:9-55 Error:
Missing 'package' key attribute on element package at [com.facebook.android:audience-network-sdk:6.8.0] AndroidManifest.xml:12:9-55
[com.facebook.android:audience-network-sdk:6.8.0] /Users/lvjiahui/.gradle/caches/transforms-2/files-2.1/963750c1949dbbdc2918f7adb25d5918/AndroidManifest.xml Error:
Validation failed, exiting

记录一下解决这个问题的,


image.png

你的处理了?

你可能感兴趣的:(unity 打安卓包CommandInvokationFailure: Gradle build failed。 Missing 'package' key attribute on eleme...)