error: supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath

后端 未结 15 1151
误落风尘
误落风尘 2020-12-05 22:31

I can\'t compile my Android Kotlin project.

I have no idea what is this...

Gradle log:

error: supertypes of the following classes ca

相关标签:
15条回答
  • 2020-12-05 23:31

    (App)-----depends----(library)

    In my case I did not change any dependencies configuration nor i change the order. I had to copy a local pojo(model) jar file from the library module to App.

    App is in kotlin library is in java

    Its a bug, I should not have pojo.jar in app and library

    0 讨论(0)
  • 2020-12-05 23:32

    Clean Project and Rebuild it This works for me

    0 讨论(0)
  • 2020-12-05 23:34

    For me the problem was child module not using AndroidX Activity. I guess the class names clashed.

    Added this to resolve:

    implementation 'androidx.legacy:legacy-support-v4:1.0.0'

    0 讨论(0)
提交回复
热议问题