How to configure and use haxe in android studio

How we can configure the haxe in android studio and make a simple gaming apk?

To code Haxe in Android Studio which is based on IntelliJ you can install the Haxe plugin

To create games in Haxe targeting Android, you can e.g. use OpenFL or HaxeFlixel.