I'm done with this. I will just post an answer here. Don't accept it.
So what that means is that Eclipse is looking for a file "x.jar" in your .gradlew
folder. However, it cannot find it. So what happens if you need a class from there? Obviously your code won't compile right? Therefore eclipse complains and won't compile the code. So the way to add back the library is this.
- Check that your
build.gradle
file has the right syntax and it has no errors like missing curly braces.
- Run
gradlew clean
.
- Run
gradlew setUpDecompWorkspace
/ gradlew setUpDevWorkspace
. (As you guessed, the first gives source code, the second doesn't)
- Run
gradlew eclipse
. (Sets the classpath)
- Back in eclipse, go to your project and click F5 first, then click CTRL + B (⌘ on mac).
- Now all your errors should be fixed!
Note:
If on linux/mac, add a ./
in front of the gradlew ...
.
Also do chmod 700 gradlew