在导入一个新项目时,出现错误Could not find junit:junit:4.12,网上大多是说缺少junit的jar包,但我查看了安装目录下是有jnuit包的,并且新建的项目都没有问题。几经对比,发现是因为project的设置有问题

android开发里跳过的坑-android studio 错误 Could not find junit:junit:4.12

新导入的项目,Default Library Repository为空,没有设置。设置后,clean project,编译通过。

 

相关文章:

  • 2021-09-16
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2021-07-16
  • 2021-10-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-19
  • 2021-06-17
  • 2022-12-23
  • 2021-06-22
  • 2021-07-27
相关资源
相似解决方案