trying out jetpack compose. Gradle builds successf...
# android-studio
b
trying out jetpack compose. Gradle builds successfully but the entire :app build.gradle.kts file and project build.gradle.kts shows red underscores throughout the files. as can be seen below Any ideas. I'm trying to upgrade an existing project
Android Studio -> Preferences -> Build, Execution, Deployment -> Build Tools -> Gradle -> Gradle JDK(it is a dropdown) -> I selected AdoptOpenJDK 11.0.11.hs.
I have AdoptOpenJDK 11.0.11.hs installed on my system through sdkman. I guess any JDK 11 would work beside default android studio one. This should do the trick. Choose any JDK 11 from your system for Gradle JDK.
b
Taponidhi Thanks, I have 11.0.10 selected already. I don't see any 11.0.11. Any other ideas?
r
I still use 1.8 version 11.0.10... and it works fine (still in 2021.1.1.1 though, since I am using kotlin 1.5.20, and there aren't any stable enough plugins from jetbrains for 2021.1.1.2 which have rose the main version level from 203 to 211)