java.lang.NullPointerException: Project directory not specified
android-studio, gradle
Solution
Go to the build settings (the little wrench in the Messages view) and uncheck "Use external build".
Problem
When building a project in Android Studio (build AI-130.729444), I keep getting this exception: java.lang.NullPointerException: Project directory not specified: Project directory not specified It starts happening out of nowhere, and editing the gradle files does not help.