: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。
·
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
更多推荐
已为社区贡献49条内容
所有评论(0)