Obrigado!!! Deu certinho.
Tak:
A user reported that downgrading sdk tools to 25.2.2 resolves the issue for him/her. We haven’t been able to reproduce this here in order to fix it, so any information you can provide could be helpful.
If you run that command in the console, do you get the same error?
(/usr/lib/jvm/java-8-oracle/bin/java -Xmx2048M-Dcom.android.sdkmanager.toolsdir="/home/yeol/AndroidSDK/tools"-Dfile.encoding=UTF8 -jar "/opt/Unity/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar"
)
will the unity fix this so it is compatible with new version of android? thank you
PiedLove_com
I LOVE U
Cancer was cured when I saw this solution.
1 Like
INCREDIBLE. I was just setting everything up to do an online course and am completely new to Unity and Android SDK. I was worried I wasn’t gonna be able to figure it out, but the explanation was clear. This solution worked and was the most amazing thing I could have asked for.
You da real MVP
Thanks a lot that worked for me too! great thanks!
Same error, I spent 2 or 3 hours wondering what I’d done wrong …
Thx for the answer !
This worked for me straight away. Thanks dude!
Thanks a lot! worked for me too!
Downgrading to 25.2.2 also worked for me. I am running windows 10. My SDK Platform Tools are at version 25.0.4.
Also, if you’re having trouble figuring out how to ‘rollback’/‘downgrade’ your SDK tools I found this post to be really helpful: http://stackoverflow.com/a/11514698
-D
Is this an issue with 5.6? I’m using 5.5.2f1 and I’m wondering whether upgrading Unity would resolve this.
kork
April 5, 2017, 6:50pm
34
I just tried with 5.6, same issue.
1 Like
Thanks PiedLove_com, your solution did help!!
1 Like
Thank you it works!
Important in my case was not to replace the folder but just files inside.
I’m experiencing this problem too. This is the error I’m currently receiving when trying to build my game:
Error: [Temp/StagingArea/AndroidManifest-main.xml:12, /Users/nathanmeier/Documents/Video Game Projects/Fart Man (Web)/Temp/StagingArea/android-libraries/play-services-tasks-10.2.1/AndroidManifest.xml:2] Main manifest has but library uses minSdkVersion=‘14’
UnityEditor.HostView:OnGUI()
CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir=“/Users/nathanmeier/Library/Android/sdk/tools” -Dfile.encoding=UTF8 -jar “/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar” -
stderr[
Error: [Temp/StagingArea/AndroidManifest-main.xml:12, /Users/nathanmeier/Documents/Video Game Projects/Fart Man (Web)/Temp/StagingArea/android-libraries/play-services-auth-10.2.1/AndroidManifest.xml:2] Main manifest has but library uses minSdkVersion=‘14’
Error: [Temp/StagingArea/AndroidManifest-main.xml:12, /Users/nathanmeier/Documents/Video Game Projects/Fart Man (Web)/Temp/StagingArea/android-libraries/play-services-auth-base-10.2.1/AndroidManifest.xml:3] Main manifest has but library uses minSdkVersion=‘14’
Error: [Temp/StagingArea/AndroidManifest-main.xml:12, /Users/nathanmeier/Documents/Video Game Projects/Fart Man (Web)/Temp/StagingArea/android-libraries/play-services-base-10.2.1/AndroidManifest.xml:2] Main manifest has but library uses minSdkVersion=‘14’
Error: [Temp/StagingArea/AndroidManifest-main.xml:12, /Users/nathanmeier/Documents/Video Game Projects/Fart Man (Web)/Temp/StagingArea/android-libraries/play-services-basement-10.2.1/AndroidManifest.xml:2] Main manifest has but library uses minSdkVersion=‘14’
Error: [Temp/StagingArea/AndroidManifest-main.xml:12, /Users/nathanmeier/Documents/Video Game Projects/Fart Man (Web)/Temp/StagingArea/android-libraries/play-services-drive-10.2.1/AndroidManifest.xml:2] Main manifest has but library uses minSdkVersion=‘14’
Error: [Temp/StagingArea/AndroidManifest-main.xml:12, /Users/nathanmeier/Documents/Video Game Projects/Fart Man (Web)/Temp/StagingArea/android-libraries/play-services-games-10.2.1/AndroidManifest.xml:2] Main manifest has but library uses minSdkVersion=‘14’
Error: [Temp/StagingArea/AndroidManifest-main.xml:12, /Users/nathanmeier/Documents/Video Game Projects/Fart Man (Web)/Temp/StagingArea/android-libraries/play-services-nearby-10.2.1/AndroidManifest.xml:2] Main manifest has but library uses minSdkVersion=‘14’
Error: [Temp/StagingArea/AndroidManifest-main.xml:12, /Users/nathanmeier/Documents/Video Game Projects/Fart Man (Web)/Temp/StagingArea/android-libraries/play-services-tasks-10.2.1/AndroidManifest.xml:2] Main manifest has but library uses minSdkVersion=‘14’
]
stdout[
[Temp/StagingArea/AndroidManifest-main.xml, /Users/nathanmeier/Documents/Video Game Projects/Fart Man (Web)/Temp/StagingArea/android-libraries/play-services-basement-10.2.1/AndroidManifest.xml:5] Skipping identical /manifest/application/meta-data[@name=com.google.android.gms.version] element.
]
exit code: 1
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[ ] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[ ] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()
Anybody have any ideas?
Tried Unity 5.6, same issue still, had to downgrade SDK tools to 25.2.3
Is there any issue open related to this? Tell me where to put my votes.
pbeer
April 11, 2017, 7:22am
40
PiedLove_com ’s solution also works on Mac