dimanche 26 mars 2023

MainActivity::class.java Unresolved reference: java?

I have problem in android studio with reflection after using Realm library. I'm using this implementation and the jar file is already added but still "java" is unresolved:

implementation("org.jetbrains.kotlin:kotlin-reflect:1.8.10")
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'

and this :

buildscript {
ext.kotlin_version = "1.3.72"
repositories {
    google()
    jcenter()
    mavenCentral()
}
dependencies {
    classpath "com.android.tools.build:gradle:4.1.2"
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    classpath "io.realm:realm-gradle-plugin:10.11.1"


    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

I tried all these solutions and no changes





Aucun commentaire:

Enregistrer un commentaire