After importing a few files from that library https://github.com/michaelye/EasyDialog
our android build started failing for weird reasons.
export TERM="dumb"
if [ -e ./gradlew ]; then ./gradlew compileTestJava;else gradle compileTestJava;fi
Starting a new Gradle Daemon for this build (subsequent builds will be faster).
FAILURE: Build failed with an exception.
* What went wrong:
Task 'compileTestJava' not found in root project X.
It seems some of the java and xml files had Chinese characters in them (comments and strings)
removing those characters made our build run normally again.