Is it possible to generate an executable in Android Studio?

Asked

Viewed 253 times

0

Hello, I want to run my Android application on PC (Windows) without emulator, so it is possible to install with . exe, this is possible?

  • https://developer.android.com/studio/run/? hl=en

  • I need an . exe for production. thank you.

  • 1

    You will need the emulator... no way, windows will not interpret instructions that are for another OS.

2 answers

4


Unfortunately, as far as I know, it’s not possible.

When you compile your code, it generates a bytecode that runs on a JVM, but this JVM is dedicated to the android system. Anyway you need an emulator to simulate features like GPS, Network, file system and camera.

  • Thanks @Renato Tavares is very enlightening your reply, I will wait a little longer before validating this.

1

Certainly not, windows and android are two distinct platforms with two different architectures, just as a code for android will not run on windows, an executable program will not run on android, then the only way to run an android application in windows is through an emulator, if you need an emulator for production recommend the Bluestacks.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.