我在build.gradle
文件中添加了以下依賴項。從@aar,gradle dependency中排除軟件包/類
compile 'com.aerisweather:aeris-maps-lib:[email protected]'
距離
如果你看到下面的URL文物,它支持Android V7庫類。
https://oss.sonatype.org/#nexus-search;quick~aerisweather
我想運行/打包應用程序時排除包。由於重複的類錯誤,我無法運行/打包應用程序。
我已經嘗試添加配置這樣,
configurations {
all*.exclude group: 'com.android.support', module: 'appcompat-v7'
}
但是,這不包括它這使我錯誤很多,整個項目。
我已經嘗試了一切,但仍然出現以下錯誤。
Error:Execution failed for task ':transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v7/appcompat/R$anim.class
不工作,我不斷收到相同的錯誤消息「java.util.zip.ZipException:重複條目:android/support/v7/appcompat/R $ anim.class」 –
您是否在應用更改後清理項目? –
是的,我試過了,還是一樣的錯誤。 –