:app:compileDebugKotlin Supertypes of the following classes cannot be resolved. Please make sure you

Posted 彬sir哥

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了:app:compileDebugKotlin Supertypes of the following classes cannot be resolved. Please make sure you相关的知识,希望对你有一定的参考价值。

android kotlin编译的报错提示:

:app:compileDebugKotlin
Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
MainActivity.kt
Cannot access 'android.support.v4.view.ViewPager.OnPageChangeListener' which is a supertype of 'com.youth.banner.Banner'. Check your module classpath for missing or conflicting dependencies
Cannot access 'android.support.v4.view.ViewPager.OnPageChangeListener' which is a supertype of 'com.youth.banner.Banner'. Check your module classpath for missing or conflicting dependencies
Cannot access 'android.support.v4.view.ViewPager.OnPageChangeListener' which is a supertype of 'com.youth.banner.Banner'. Check your module classpath for missing or conflicting dependencies
Cannot access 'android.support.v4.view.ViewPager.OnPageChangeListener' which is a supertype of 'com.youth.banner.Banner'. Check your module classpath for missing or conflicting dependencies
Cannot access 'android.support.v4.view.ViewPager.OnPageChangeListener' which is a supertype of 'com.youth.banner.Banner'. Check your module classpath for missing or conflicting dependencies
Cannot access 'android.support.v4.view.ViewPager.OnPageChangeListener' which is a supertype of 'com.youth.banner.Banner'. Check your module classpath for missing or conflicting dependencies
Cannot access 'android.support.v4.view.ViewPager.OnPageChangeListener' which is a supertype of 'com.youth.banner.Banner'. Check your module classpath for missing or conflicting dependencies
Cannot access 'android.support.v4.view.ViewPager.OnPageChangeListener' which is a supertype of 'com.youth.banner.Banner'. Check your module classpath for missing or conflicting dependencies
Cannot access 'android.support.v4.view.ViewPager.OnPageChangeListener' which is a supertype of 'com.youth.banner.Banner'. Check your module classpath for missing or conflicting dependencies
org.gradle.api.GradleException: Compilation error. See log for more details

并且代码编译错误:

解决问题,在gradle.properties中添加一句:android.enableJetifier=true

以上是关于:app:compileDebugKotlin Supertypes of the following classes cannot be resolved. Please make sure you的主要内容,如果未能解决你的问题,请参考以下文章

任务 ':app:compileDebugKotlin' java.io.IOException 执行失败

任务 ':app:compileDebugKotlin' 执行失败。 >内部编译器错误。有关详细信息,请参阅日志

错误:任务“:app:compileDebugKotlin”执行失败。 > 编译错误。有关详细信息,请参阅日志

:app:compileDebugKotlin Supertypes of the following classes cannot be resolved. Please make sure you

:app:compileDebugKotlin Supertypes of the following classes cannot be resolved. Please make sure you

:app:compileDebugKotlin Supertypes of the following classes cannot be resolved. Please make sure you