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

Michal Klimczak

05/19/2022, 4:45 PM
For quite some time I have issues with Android Studio being unable to resolve dependencies (they build just fine). Had different scenarios for the last year, they come and go. Right now it's two things: 1.
androidTest
not seeing any of my classes from
commonMain
(and possibly other modules) 2.
androidTest
and
iosTest
reporting "Actual property 'xxx' has no corresponding expected declaration" and vice versa from
commonTest
- "Expected property 'xxx' has no actual declaration in module X.shared.androidTest (test) for JVM" This happens on kotlin 1.6.20 (but checked a bit older code with 1.5.31 and has the same problem), AS Chipmunk, M1 macbook. I just confirmed the same issues with KaMPKit. Any hints?
p

Paul Woitaschek

05/19/2022, 5:12 PM
Tldr: Use IntelliJ
m

Michal Klimczak

05/19/2022, 5:14 PM
I was afraid this was the answer 😄 Should AppCode be fine as well, wdyt?
p

Paul Woitaschek

05/19/2022, 5:24 PM
I don't know, i think some time back it was not up to date on the kotlin plugin but I might be wrong
m

Michal Klimczak

05/19/2022, 7:22 PM
@Sebastian Sellmair [JB] hope you don't mind me summoning you here - should the AppCode work as fine as Intellij when it comes to multiplatform? That would be the best combo for KMM projects, I think
p

Paul Woitaschek

05/19/2022, 8:03 PM
Just try it out? It has a free trial
l

Landry Norris

05/19/2022, 8:04 PM
The one downside I see to IntelliJ is the fact that the Android Plugin is so out of date. I can’t use the newest Android Studio features or update my Android Gradle plugin to the newest version because of this.
m

Michal Klimczak

05/20/2022, 5:54 AM
@Paul Woitaschek the problem is that the issues change from one ide to another. I haven't had problems with unresolved refs in test source sets for some time and then suddenly they appeared again and I didn't notice, because I wasn't touching the platform specific test code for a few weeks. And as Landry said, there might some other subtle issues with AppCode or Intellij. Just wanted to ask the expert what the difference is under the hood.
2 Views