🤯 I tried to google and search this slack but my jvm and android mpp project won't run. Android builds fine but for the jvm I click the green arrow button in my Main.kt main() function and get the following error: "Error: Could not find or load main class sample.MainKt". Is there something wrong with my gradle?
Simplified version:
but I didn’t managed to get this working in the same gradle module with android plugin. Maybe there is some trick with writing manifest file via task etc. I am also interessted in solution …
r
russhwolf
06/04/2020, 3:29 PM
The application plugin requires
jvm { withJava() }
and that doesn't work if you also apply the android plugin. You can work around that by doing your app-level configuration in a separate gradle module which consumes the shared code as a library