- Home /
Unity 4.2.2 Crashes When Switching Target Platform to Android
Hi guys, I have upgraded recently from Unity 4.1.2f to Unity 4.2.2f. I'm running on Windows 8 64-bit with Android SDK Tools r21.
After the upgrade, whenever I switch my target platform to Android and try to do a build, Unity crashes. It crashes before starting the build process. The crash happens during the process of switching the project's assets to the Android target platform.
I had a look at the Editor.log file, I found it having some information related to the crash that happened. However, I don't understand why it crashed. Here's some of the contents:
Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 3536.
Total: 4.760823 ms (FindLiveObjects: 0.367556 ms CreateObjectMapping: 0.191886 ms MarkObjects: 3.595692 ms DeleteObjects: 0.018618 ms)
----- Total AssetImport time: 2945.366211s, Asset Import: 2941.584473s, CacheServerIntegrate: 0.000000s, CacheServer Download: 3475.703857s [0 B, 0.000000 mb/s], CacheServer Hashing: 3475.703857s [Unknown, 4069028352.000000 mb/s]
- starting compile Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll, for buildtarget 13
- starting compile Library/ScriptAssemblies/Assembly-UnityScript-firstpass.dll, for buildtarget 13
*** Completed 'Build.SwitchBuildTargetEmulation.AndroidPlayer' in 2947 seconds
Crash!!!
SymInit: Symbol-SearchPath: 'D:/Program Files (x86)/Unity422/Editor/Data/MonoEmbedRuntime;.;D:\Development\Github\UnitySpectrum\XandY;D:\Program Files (x86)\Unity422\Editor;C:\Windows;C:\Windows\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 530, UserName: 'Mohammed'
OS-Version: 6.2.9200 () 0x100-0x1
Does any one have any clue why this is happening?
Help would be very appreciated :).
Answer by _Shockwave · Sep 08, 2014 at 07:06 AM
I solved this problem by making Unity ask which project to open on start up.
You can do so by going: Edit > Preferences > General > Always Show Project Wizard
This prevented Unity from trying to automatically open the project and hence trying to convert all the assets to the target platform. After that, I restarted Unity and opened a new project. The switching to target platform completed and then I reopened the existing project and all went fine!
Answer by Allsaveone · Mar 27, 2014 at 12:12 PM
I have a simular problem, but after unity crashes so does windows! only when i try to switch platforms! i have no idea what to do =(
Your answer
Follow this Question
Related Questions
Why does my apk app crash with the upgraded Unity? 1 Answer
Input field crashes on Android 4.1.2 (Unity 5.1.1f1) 0 Answers
When I start my game on Android this crashes (google play problem) 0 Answers
Terrain that will run on older androids? 1 Answer
App crashes after splash screen with Google Play Services for AR update (after April 11th 2020) 2 Answers