I checked the external libraries imports and it seems like compose properly imported as you can see in the screen shot attached.
I tried to compile with Kotlin version 1.6.21 and compose version 1.2.0-rc02, also tried with kotlin version 1.7.0 and compose compiler version 1.1.1. , last try was with Kotlin version 1.6.10 and compose version 1.1.0. attached code below:
Project module -
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.6.21'
ext.compose_version = '1.2.0-rc02'
repositories {
google()
}
dependencies {
def nav_version = "2.4.1"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
/*classpath 'com.android.tools.build:gradle:7.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"*/
}}
plugins {
id 'com.android.application' version '7.1.0' apply false
id 'com.android.library' version '7.1.0' apply false
id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
id 'org.jetbrains.kotlin.jvm' version '1.6.21' apply false
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin' version '2.0.1' apply false
}
At some point I somehow managed to detect Compose but only run time and ui package. Foundation and material compose couldn’t detect at all.
no errors or warning thrown, it’s simply not working.
any idea to solve it will be much appreciated
@Stylianos Gakis Yes, I followed the instructions there.
I tried few different combos from suggest options just to make sure it isn't version specific issue