Can I run .apk file on Android Studio simulator?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By KenHuang0917
:warning: Old Version Published before Godot 3 was released.

After exporting .apk file from Godot, I can install it on real device and run it. But can I run .apk file on Android Studio simulator? If not, which means I can only run on real device, then how to debug it?

:bust_in_silhouette: Reply From: jospic

If an emulator is running, near Godot play button (run) appears another button with green android bot icon.
Click on this button to launch your project on the emulator.

Otherwise in general:

  1. Paste your APK file in the ‘android-sdk\tools’ or ‘platform-tools’ folder.
  2. Then type the following command.
adb install [.apk path]

-j

Nice I didn’t realise it saw any emulator. That could be handy. Thank you

Robster | 2016-12-22 03:11

Cool! Thank you for your answer!

KenHuang0917 | 2016-12-22 06:55

You can use this command to see devices connected to adb :

adb devices

Nutr1z | 2016-12-22 11:43