在android studio 中轻松解决jar包冲突

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/a243920187/article/details/82259011

今天android studio 升级到3.3,建了一个kotlin的项目,捣鼓了一会之后 发现提示我这句话:

习惯性的看到链接就点进去了,发现原来是jar包冲突的问题。如果你不能轻易到找到解决办法,就继续看吧:

  1. Select Navigate > Class from the menu bar.
  2. In the pop-up search dialog, make sure that the box next to Include non-project items is checked.
  3. Type the class that appeared in the build error.
  4. Inspect the results for the dependencies that include the class.

翻译:

  1. 从菜单栏中选择“ 导航”>“类 ”。
  2. 在弹出搜索对话框中,确保选中包含非项目项旁边的框 。
  3. 键入构建错误中出现的类。
  4. 检查包含该类的依赖项的结果。

按照上面的步骤,会出现以下的情况:

从提示中可以看到是这两个包包含了冲突文件,按照自己需要删除一个就好了

猜你喜欢

转载自blog.csdn.net/a243920187/article/details/82259011