I'm using this technique to make release builds ask for keystore passwords, but lately the Android Studio editor for build.gradle
complains:
Cannot resolve symbol 'groovy'
for the line:
import groovy.swing.SwingBuilder
It didn't used to complain. The command line build ./gradlew assembleRelease
still works. It's only AS that can't import groovy.
This is with Android Studio 2.3.1, Gradle 3.3, Android Gradle plugin 2.3.1.
Is there some AS configuration to make it happy?
Amazingly enough, the import error doesn't keep AS from making debug builds, and build.gradle doesn't try to use Swing in a debug build.