Using assembly in Android Studio

There are many reasons why to write your algorithm in assembler. You can have all the optimizations firmly in hand. However, it comes at costs Рyou need to know a lot about the hardware running your program, your program will be highly non-portable, non readable and you will spend ages on writing it. Oh, did I mention that debugging is a hell? Preparation So, to start using assembly in Android Studio, you need to install Android NDK. You can install it manually (and reference the installation) or from the Android Studio itself ( File > Settings > Appearence & Behaviour...