Good Evening,

I really hope that someone will be able to help me, I have been working on 
a mobile game within unity for a little while now and finally decided to 
publish it to the store, after that I felt that it would be a good idea to 
incorporate Google Play Game Services to my project but now every time I 
try to build my project I get the error 'Failed to build apk, see console 
for details' and the console then shows 3 errors

' Error building Player: CommandInvokationFailure: Failed to build apk. See 
the Console for details.
C:/NVPACK/jdk1.7.0_71\bin\java.exe -Xmx2048M 
-Dcom.android.sdkmanager.toolsdir="C:/NVPACK/android-sdk-windows\tools" 
-Dfile.encoding=UTF8 -jar "C:\Program 
Files\Unity\Editor\Data\PlaybackEngines\androidplayer/Tools\sdktools.jar" -


stderr[
Error: Not a file 'C:\Users\User\Documents\Public Service Simulator V3'
]
stdout[


]'



CommandInvokationFailure: Failed to build apk. See the Console for details.
C:/NVPACK/jdk1.7.0_71\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.
toolsdir="C:/NVPACK/android-sdk-windows\tools" -Dfile.encoding=UTF8 -jar 
"C:\Program 
Files\Unity\Editor\Data\PlaybackEngines\androidplayer/Tools\sdktools.jar" -


stderr[
Error: Not a file 'C:\Users\User\Documents\Public Service Simulator V3'
]
stdout[


]
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()


and

Error: Not a file 'C:\Users\User\Documents\Public Service Simulator V3'


UnityEditor.HostView:OnGUI()


I tried a few troubleshooting steps myself including checking I am running 
1.8+ on java and ensuring that all the correct android packages are 
installed and unity is pointing to them correctly.

Does anyone have any idea how to fix this, I dont mind if I have to just 
remove the google play functionality all together as long as I can get it 
to compile I dont mind.

I hope you will be able to help,

thank you in advance

Robert Mitchell
(robert-mitchell-eportfolio.com)

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/d19957be-de96-4541-96d0-e74215111afe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to