hey guys, what is the best way to fix red gradle c...
# multiplatform
n
hey guys, what is the best way to fix red gradle configs in kmm project? apart from cache clean/rebuild/cleaning build dirs (because it didn't help). It was working fine yesterday when i reopened today it's not building Adding screenshot also
l
Not building or just the IDE showing red code in Gradle scripts? Gradle sync done? Any error in the "Build" tool window? Also, which IDE (I guess AS) and which version exactly? And which Kotlin version?
n
@louiscad not building only getting below error
below is configuration for android studio Android Studio 4.2.1 Build #AI-202.7660.26.42.7351085, built on May 10, 2021 Runtime version: 11.0.8+0-b944-P17168821 amd64 VM: OpenJDK 64-Bit Server VM by N/A Linux 5.10.0-1029-oem GC: G1 Young Generation, G1 Old Generation Memory: 3072M Cores: 8 Registry: external.system.auto.import.disabled=true Non-Bundled Plugins: com.squareup.sqldelight Current Desktop: ubuntu:GNOME
@louiscad it was working fine yesterday from today i don't why it's not working there nothing changes i done
l
Then you lied in a way when you said "not building today". It's an IDE issue
You didn't answer the question about Gradle sync BTW
n
for other kmm project woroking fine
i have done the sync getting same issue
l
BTW, I asked about the Kotlin version you're using in the project. Also, can you try in AS Artict Fox or Bumblebee?
s
In my KMM project with Android Studio the Gradle files full of false positive errors and everything works fine. I guess it's a tooling issue.
l
@Stefan Oltmann AS 4.2, or newer?
s
Stable Android Studio, yes. But was not better in other versions.
Stable Kotlin & Gradle version also
But it's okay, I can live with that. That'll be fixed one day. 😉
l
I personally don't have such an issue with Bumblebee, and didn't either with Arctic Fox, and I don't recall having it on 4.2 beta either, so I wonder what is off.
🤷‍♂️ 1