Can not build apk

hello together!

in the next 2 weeks i can use the pro version with android licence of my friend to test if i should buy it for myself. i got a little game and i want to build it for android. i have changed the scripts so that it gives me no more errors. just the sounds and the dynamic fonts are not working.

when i build the application it gives me following errors:

Available Android targets:
id: 1 or “android-9”
Android SDK does not include any platforms! Did you run Android SDK setup to install the platform(s)?
Minimum platform required for build is Android 2.2 (API level 8)
UnityEditor.HostView:OnGUI()

i have installed the 2.3 platform in the sdk. when i also install the 2.2 platform it works but then i cant open the application on my HTC desire with 2.3. it starts and then quit.

Did you install the 64-bit version of the SDK? That’s what I did and had the same issue you’re seeing. I uninstalled the 64-bit SDK and installed the 32-bit and it worked correctly.

i have installed just the latest sdk. i cant find an 32-bit or 64-bit option? where have you choose this? i am working on a mac…

Ah, didn’t know you were on a Mac. I’m on PC and there’s two different installation packages (one for 32 and one for 64). So, this may not apply to you. I don’t know much about Macs, sorry.

IIRC, you need to install the 2.2 platform; Google changed the layout of the SDK in 2.3 which broke some things, like this.
So, run the Android SDK manager again and install 2.2 (API-8).

thank you for your answer erique.

i have now installed the 2.2 and 2.3 platforms in the sdk and copy the adb command to tools. i can now build the apk and push it to my HTC desire. the problem is the apk does not start. it shows the unity startscreen for a second and then quit. any ideas?

does an empty scene work? what does the logcat say?

an empty scene does also not work.

in the ddms-tool i can find following error and warning in the log while i open the apk on my phone:

ActivityMa fail to set top app changed!
InputMana Got RemoteException sending setActive(false) notification to pid 1067 uid10064

and when i open the logcat i can find this:

D/Unity ( 1134): Mono path[0] = ‘/assets/bin/Data/Managed’
D/AK8973 ( 72): HRET = AKSC_HOF_DSS_REQUEST
D/AK8973 ( 72): HRET = AKSC_HOF_DSS_COMPLETE
D/Unity ( 1134): InitializeMonoFromMain OK (43318f00)
D/Unity ( 1134): Invalid serialized file version. File: “/assets/bin/Data/mainData”. Expected version: 3.1.0f4. Actual version: 3.1.0f3.
D/Unity ( 1134):
D/Unity ( 1134): (Filename: /Applications/buildAgent/work/71ca6fec1b41cc30/Runtime/Serialize/SerializedFile.cpp Line: 251)
D/Unity ( 1134):
D/Unity ( 1134): PlayerInitEngineNoGraphics settings: Could not preload global game manager #0
D/Unity ( 1134): engine initialization failed

That looks very odd; please re-download the 3.1.0f4 release and try again. For some reason the data is built for an older version of the Android…

yippie!!! i have redownloaded and it works! thank you.