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

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

 

报错原因:

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

解决办法:

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

Could not resolve com.android.support:recyclerview-v7:27.1.1的解决办法

 

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

Could not resolve com.android.support:recyclerview-v7:27.1.1的解决办法

重新build即可。

 

相关文章:

  • 2021-06-12
  • 2022-02-08
  • 2021-04-07
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-10
  • 2021-06-20
  • 2022-12-23
  • 2021-07-01
  • 2022-02-20
  • 2022-01-17
相关资源
相似解决方案