更新时间:2022-04-09 09:51:01
通常,如果要在Android项目中使用Java库,则Java库取决于com.google.android:android
.
Usually, java libraries depends on com.google.android:android
if this library will be used in Android project.
然后,您可以从目标Android项目的依赖项中排除此模块.像这样:
Then you can exclude this module from dependencies of target Android project. Like this:
compile ('some.library.that.depends.on.android') {
exclude group: 'com.google.android'
}