Hi!
When I try to build my app i get the Error: “Error building Player: UnityException: Couldn’t find Android device
No Android devices found.”
I don’t have an Android phone so I would like to run it on an Emulator.
Any suggestions?
Hi!
When I try to build my app i get the Error: “Error building Player: UnityException: Couldn’t find Android device
No Android devices found.”
I don’t have an Android phone so I would like to run it on an Emulator.
Any suggestions?
The emulator is barely usable for Unity games anyways, bluestacks seems to run Unity games well. But any emulator won’t fully reflect a real device.
I don’t need to fully reflect it, I just want to know if it will work on an Android phone.
Don’t do build&run if you want to run it in emulator. Instead of that, do File → Build Settings… and Build. That way you get an .apk file, which can be run in emulator.
Thank you very much it works better but now I have an other probem. I get this error message:
“Error building Player: Exception: apk (invokation failed)”
Hope for help ![]()
When I have seen this it gets usually fixed by closing Unity and all other programs, then re-opening and building again.
Thanks but nope, still the same error:
“Error building Player: Exception: apk (invokation failed)
ERROR: Debug Certificate expired on 05.06.12 14:49”
Doesn’t that quite much twll what is the problem, your certificate seems to be expired.
How do I update it?
Go to android player settings and create new keystore and a key/alias to it, and remember to use always the same certificste if you are publishing the game.
See here the first answer: http://forum.unity3d.com/threads/62137-Android-Signing
Ok many thanks, now I can finally build the apk.
But now: how can I start it with the Android Emulator?
Copy your apk to and open terminal in ’ path-to-your-sdk-folder/paltform-tools ’ and type in the terminal ’ adb install yourappname.apk ’
Or don’t copy it anywhere and type full paths to the terminal…
Thats what I get:
‘usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2’
Did you type 'install, or ‘adb install’?
install. When I type adb install nothing happens.
Is your terminal opened in the platform-tools folder where the adb file is? Press shift and right click the folder, then ‘open command window here’. After that type the ’ adb install name-of-your-app-file.apk ’ to the opened command window (and of cource replace that file name…)
did you start your adb in pc .adb start-server
How do I do that?
Thats what I get:
“-bash: adb: command not found”
Your command line needs to be in the folder the adb file is like I said (if you haven’t added the adb as a path)
Press shift and right click the ‘platform-tools’ folder in the ‘android sdk’ folder, then ‘open command window here’
Or cd to the directory, but that open in directory feature is rather handy.