I have an IntelliJ 14.1.2 Project consisting of two modules - one is an Android Gradle based module and the other is a Spring Java-based module with Maven.
gps-track
Tried all above. Didn't work.
Here's what worked. Go to the file called modules.xml
Delete all the modules there. Clean and rebuild.
You can simply downgrade your gradle dependency to fit your current android studio version.
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
....
}
Worked for me.
Had same issue with Android Studio 3.3 Canary 13.
I was able to solve it by following these steps:
When you complete these steps the module will be copied into your project again, AS will start syncing Gradle again and that succeeds without errors :-) Check your GIT status and you will see as soon as you add your module directory to GIT again that nothing has changed to your working directory. So it's purely an issue with AS that gets somehow out-of-sync...
Based my solution on this comment: https://issuetracker.google.com/issues/37008041#comment3
Follow these steps :
1-Command+Shift+F
2-Type : modules.xml
3-Open file
4-Remove those you get error for (the module when you get error once building project)
Good luck :)
the error explain all things, the idea is confused between gradle and maven.
try to create new project with two gradle modules, you can build spring application with gradle as maven.
see this example from spring guides