在使用Android Studio的过程中需要添加依赖recyclerview,出现报错:

Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve com.android.support:recyclerview-v7:27.1.1.

 

报错原因:

添加依赖的方法错误。添加了不存在的依赖。

解决办法:

查看sdk文件夹中真实存在的依赖版本。

Error:Failed to resolve: com.android.support:recyclerview-v7:28.0.0解决方法

修改build.gradle文件,添加真实存在的依赖版本,注意sdk版本与依赖版本一致。 

Error:Failed to resolve: com.android.support:recyclerview-v7:28.0.0解决方法

重新build即可。 

相关文章:

  • 2021-07-28
  • 2021-08-27
  • 2021-07-23
  • 2021-09-21
  • 2021-04-07
  • 2021-09-03
  • 2021-07-01
猜你喜欢
  • 2022-12-23
  • 2021-06-20
  • 2021-06-28
  • 2021-07-01
  • 2021-05-08
相关资源
相似解决方案