添加新依赖时遇到一个报错。
今天在Android Studio添加了一个新的依赖:
1 | implementation ("org.ethereum:ethereumj-core:$ethereumj_version") |
然后Sync可以通过,但是Rebuild报错如标题,往上搜了几个方法都未奏效,最后只好顺着问题找答案。
报错的内容就是说CompressionType重复了,换句话说,添加的新依赖不添加这个即可。双击Shift全局搜索CompressionType定位,如图:
添加依赖时增加:
1 | implementation ("org.ethereum:ethereumj-core:$ethereumj_version") { |
Sync通过,Rebuild又报新错误:
1 | More than one file was found with OS independent path 'META-INF/spring.tooling' |
在android节点增加配置:
1 | android { |
继续Sync,通过;Rebuild,通过。
问题解决。