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

Napa Ram

06/29/2021, 4:32 AM
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

louiscad

06/29/2021, 8:22 AM
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

Napa Ram

06/29/2021, 9:08 AM
@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

louiscad

06/29/2021, 9:09 AM
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

Napa Ram

06/29/2021, 9:12 AM
for other kmm project woroking fine
i have done the sync getting same issue
l

louiscad

06/29/2021, 9:13 AM
BTW, I asked about the Kotlin version you're using in the project. Also, can you try in AS Artict Fox or Bumblebee?
s

Stefan Oltmann

06/29/2021, 11:39 AM
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

louiscad

06/29/2021, 12:10 PM
@Stefan Oltmann AS 4.2, or newer?
s

Stefan Oltmann

06/29/2021, 12:10 PM
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

louiscad

06/29/2021, 12:13 PM
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
3 Views