Program type already present: org.intellij.lang.annotations.Flow

前端 未结 4 991
别跟我提以往
别跟我提以往 2021-01-03 20:17

I am getting this error whenever I try to run a program in Kotlin. My gradle files are like this: Project Level Gradle

buildscript {
    ext.kotlin_version =         


        
4条回答
  •  醉话见心
    2021-01-03 20:20

    Excluding the jetbrains annotations module is a workaround; why is it in your project in the first place? Most likely, it got automatically added to your classpath by Android Studio when what you really wanted was Android's own annotations.

    So, a better solution is to look for an org.jetbrains:annotations dependency in your build.gradle file[s], like this:

    implementation 'org.jetbrains:annotations-java5:15.0'
    

    ...and remove it.

提交回复
热议问题