IntelliJ IDEA 2017.1 has a built-in JShell, which imports all the project's libraries etc.
Is it possible to use this in Android Studio? (It is not in the Tools
menu, as said in the blog post).
UPDATE: Android still does not support Java 8 completely, JShell is Java 9. It might still be possible to use the gradle jshell plugin, or use the Kotlin REPL.