Reputation: 5597
I have a multi-module Java project, which I opened in Android Studio. Now, the project works otherwise fine, but when I click "Run", it won't build the project. Instead, it runs the old executable. I always have to first manually build the project so that it will run the most recent version.
What could cause this? My launch configuration seems correct (an "Application" config, with the correct main class and module). In my module's build.gradle, I have this:
apply plugin: "application"
apply plugin: "idea"
mainClassName = "me.manabreak.manray.EditorLauncher"
sourceCompatibility = 1.8
As per this Gradle documentation, this should be correct. I'm not sure why Android Studio / IDEA won't build before running.
Upvotes: 8
Views: 1575
Reputation: 71
The following worked for me:
Upvotes: 7