- Home /
Android Build Error
Hey, whenever I try to build a game I get two errors.
I am using Unity 3.4.0 because it supports ARM v6. My phone is Samsung S5830. It should be connected without problems. Here you can see my SDK tools ( my phone supports Android 2.3.5 thats why I use 2.3.3 build). Can anybody help me please? I really dont know what to do...Thanks
UPDATE - I copied 3 adb (1 exe and 2 dlls)files from platform-tools into tools. Now I am getting another errors.The first one. Error building Player: Win32Exception: ApplicationName='C:/Program Files/SD$$anonymous$$_TOOLS/adt-bundle-windows-x86-20140624/sdk/platforms/android-20\aapt.exe', CommandLine='package -v -f -m -J gen -$$anonymous$$ Android$$anonymous$$anifest.xml -S "res" -I "C:/Program Files/SD$$anonymous$$TOOLS/adt-bundle-windows-x86-20140624/sdk/platforms/android-20\android.jar" -F bin/resources.ap', CurrentDirectory='Temp/StagingArea' UnityEditor.HostView:OnGUI()
And the second one.
Exception: Error building Player: Win32Exception: ApplicationName='C:/Program Files/SD$$anonymous$$_TOOLS/adt-bundle-windows-x86-20140624/sdk/platforms/android-20\aapt.exe', CommandLine='package -v -f -m -J gen -$$anonymous$$ Android$$anonymous$$anifest.xml -S "res" -I "C:/Program Files/SD$$anonymous$$TOOLS/adt-bundle-windows-x86-20140624/sdk/platforms/android-20\android.jar" -F bin/resources.ap', CurrentDirectory='Temp/StagingArea' UnityEditor.BuildPlayerWindow.BuildPlayerWithDefaultSettings (Boolean askForBuildLocation, BuildOptions forceOptions) (at C:/BuildAgent/work/842f9557127e852/Editor/$$anonymous$$ono/BuildPlayerWindow.cs:369) UnityEditor.BuildPlayerWindow.GUIBuildButtons (Boolean enableBuildButton, Boolean enableBuildAndRunButton, Boolean canInstallInBuildFolder) (at C:/BuildAgent/work/842f9557127e852/Editor/$$anonymous$$ono/BuildPlayerWindow.cs:979) UnityEditor.BuildPlayerWindow.ShowBuildTargetSettings () (at C:/BuildAgent/work/842f9557127e852/Editor/$$anonymous$$ono/BuildPlayerWindow.cs:953) UnityEditor.BuildPlayerWindow.OnGUI () (at C:/BuildAgent/work/842f9557127e852/Editor/$$anonymous$$ono/BuildPlayerWindow.cs:726) System.Reflection.$$anonymous$$ono$$anonymous$$ethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.$$anonymous$$ono$$anonymous$$ethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) System.Reflection.$$anonymous$$ethodBase.Invoke (System.Object obj, System.Object[] parameters) UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/BuildAgent/work/842f9557127e852/Editor/$$anonymous$$ono/GUI/DockArea.cs:225) UnityEditor.HostView.Invoke (System.String methodName) (at C:/BuildAgent/work/842f9557127e852/Editor/$$anonymous$$ono/GUI/DockArea.cs:218) UnityEditor.HostView.OnGUI () (at C:/BuildAgent/work/842f9557127e852/Editor/$$anonymous$$ono/GUI/DockArea.cs:119)
Answer by Sisso · Jul 07, 2014 at 07:42 PM
Android SDK have a history that spaces in path cause problem, try to install some place like "C:/android-sdk"
Also check that you have the Android SD$$anonymous$$ path properly configured in Unity under Preferences->External Tools
Your answer
Follow this Question
Related Questions
not compiling for android 2 Answers
build failures 0 Answers
Unrecognized Attribute name MODULE when building .AAB with AdMob 2 Answers
Google play services build error help me (android) :( 1 Answer