I am developping an Android application on Android Studio with 3 collegues and recently, our project cannot be built anymore. We all have different versions of Android Studi
After adding the JAVA_HOME variable, I was able to compile my application like usual.
EDIT:
After I got the another error (see EDIT 2 on the question), I just deleted the build folder of my project and it worked again.
EDIT 2:
It stopped working again (see EDIT 3 on the question)
I think that the problem you are hitting in Edit 3 is connected with those lines:
maven {
url "http://maven.hq.couchbase.com/nexus/content/repositories/releases/"
}
maven {
url "http://files.couchbase.com/maven2/"
}
Some of those repositories is not active any more, and Android Studio has no timeout when checking that (freakin crazy, right?!).
This was my issue at least: Android Studio stuck on "Gradle: resolve dependancies '_debugCompile'" or 'detachedConfiguration1'
In my case one of developers did not include gradle.properties in .gitignore file, and it was the cause of stuck