sdk - Unity 3d android building error -


when try build .apk file gives me following 2 errors:

error building player: win32exception: applicationname='c:/users/teodor/appdata/local/android/android-sdk/platforms/android-18\aapt.exe', commandline='package -v -f -m -j gen -m androidmanifest.xml -s "res" -i "c:/users/teodor/appdata/local/android/android-sdk/platforms/android-18\android.jar" -f bin/resources.ap_', currentdirectory='temp/stagingarea' unityeditor.hostview:ongui()

and

exception: error building player: win32exception: applicationname='c:/users/teodor/appdata/local/android/android-sdk/platforms/android-18\aapt.exe', commandline='package -v -f -m -j gen -m androidmanifest.xml -s "res" -i "c:/users/teodor/appdata/local/android/android-sdk/platforms/android-18\android.jar" -f bin/resources.ap_', currentdirectory='temp/stagingarea' unityeditor.buildplayerwindow.buildplayerwithdefaultsettings (boolean askforbuildlocation, buildoptions forceoptions) (at c:/buildagent/work/842f9557127e852/editor/mono/buildplayerwindow.cs:367) unityeditor.buildplayerwindow.guibuildbuttons (boolean enablebuildbutton, boolean enablebuildandrunbutton, boolean caninstallinbuildfolder) (at c:/buildagent/work/842f9557127e852/editor/mono/buildplayerwindow.cs:972) unityeditor.buildplayerwindow.showbuildtargetsettings () (at c:/buildagent/work/842f9557127e852/editor/mono/buildplayerwindow.cs:953) unityeditor.buildplayerwindow.ongui () (at c:/buildagent/work/842f9557127e852/editor/mono/buildplayerwindow.cs:726) system.reflection.monomethod.invoke (system.object obj, bindingflags invokeattr, system.reflection.binder binder, system.object[] parameters, system.globalization.cultureinfo culture) rethrow targetinvocationexception: exception has been thrown target of invocation. system.reflection.monomethod.invoke (system.object obj, bindingflags invokeattr, system.reflection.binder binder, system.object[] parameters, system.globalization.cultureinfo culture) system.reflection.methodbase.invoke (system.object obj, system.object[] parameters) unityeditor.hostview.invoke (system.string methodname, system.object obj) (at c:/buildagent/work/842f9557127e852/editor/mono/gui/dockarea.cs:225) unityeditor.hostview.invoke (system.string methodname) (at c:/buildagent/work/842f9557127e852/editor/mono/gui/dockarea.cs:218) unityeditor.hostview.ongui () (at c:/buildagent/work/842f9557127e852/editor/mono/gui/dockarea.cs:119)

and dont know how fix it.

in unity 4.2.0 doesn't give me errors, in 3.4.2 if project contains main camera , cube gives me these errors , .apk file not built. how can resolve this?

try search android sdk directory file aapt.exe. in later versions, moved android-sdk/build-tools/18.0.0/. there and, if find it, copy there android-sdk/platforms/android-18 folder.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -