https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

Justin Tullgren

03/29/2021, 4:05 PM
Hello everyone, I am running into a Mono Repo Intellij Bug which says kotlin is not configured.  There are a lot of bugs in you track with that issue (that are closed or markedd fixed) so I am wondering if I am missing something. The issue appears as soon as i add the
android
preset to the common MPP module. After a sync the JVM module then stops working
🧵 1
e

efemoney

03/29/2021, 4:56 PM
Could you move all of the messages and code into a thread here? Also for the code, use “text snippets” 😕~. At this point your messages and code are cluttering up the channel, making it harder to follow and also see prev msgs~ thank you! 🙏🏼
j

Justin Tullgren

03/29/2021, 4:59 PM
So essentially, is it possible to have an mpp common for android in a mono repo that also has a jvm module?
@efemoney How do i do "code snippets? is that "code block" in slack?
e

efemoney

03/29/2021, 5:02 PM
On the left of the editor options below the edit box, the “lightning” icon will open shortcuts. On mobile you will need to click the blue arrow icon to bring up the options
👍 1
j

Justin Tullgren

03/29/2021, 5:04 PM
p

Paulius Ruminas

03/29/2021, 5:43 PM
How can a common MPP module depend on Android specific plugin? Or am I missing something?
j

Justin Tullgren

03/29/2021, 5:56 PM
how else would you publish an AAR (Android library) from common code using
expect/actual
to be consumed?
I also see android in the library section for presets: https://kotlinlang.org/docs/mpp-supported-platforms.html
👍 1
So I assumed you could do
common (ios/server/android) <- Android App
g

Giorgos Neokleous

03/29/2021, 10:17 PM
I have the same problem for some time now. I found some relevant tickets: KT-44522 and KT-43934. Running from CLI works but IDE cannot resolve references and things like auto-complete is broken.
j

Justin Tullgren

03/30/2021, 1:46 PM
Thanks @Giorgos Neokleous. Have you found any work arounds?
s

Sean Keane

03/30/2021, 2:59 PM
Have you tried the following: • Invalidate cache, and CLOSE Intellij (Don't restart) • Go to the project folder • Remove the
gradle
caches • Remove all
.iml
files • Open the project from the
build.gradle
file //extra • If this doesn't work, try removing the overall build cache in the
.gradle
folder for the version of
gradle
you're using. I've encountered this a few times. Managed to resolve it by doing something similar to the above. (Not sure if it's exactly this but if you try it let me know.)
j

Justin Tullgren

03/30/2021, 3:47 PM
i have tried very similar but will try again today and get back to you. Thanks @Sean Keane
👍 1