Giter Club home page Giter Club logo

执行任务后,aar里面要过滤的包名是没看到了,但是点击as “运行”按钮,出现:Duplicate class cn.sirius.nga.BuildConfig found in modules jetified-exclude_GDTSDK_unionNormal-runtime.jar (exclude_GDTSDK_unionNormal.aar) and jetified-XXX_sdk_v3.1.0-runtime.jar (:XXX_sdk_v3.1.0:) about excludeaar HOT 9 CLOSED

jackom avatar jackom commented on July 29, 2024
执行任务后,aar里面要过滤的包名是没看到了,但是点击as “运行”按钮,出现:Duplicate class cn.sirius.nga.BuildConfig found in modules jetified-exclude_GDTSDK_unionNormal-runtime.jar (exclude_GDTSDK_unionNormal.aar) and jetified-XXX_sdk_v3.1.0-runtime.jar (:XXX_sdk_v3.1.0:)

from excludeaar.

Comments (9)

ssiyy avatar ssiyy commented on July 29, 2024

cn.sirius.nga.BuildConfig 这各类冲突了,你把这个类也过滤一下试试

from excludeaar.

jackom avatar jackom commented on July 29, 2024

cn.sirius.nga.BuildConfig 这各类冲突了,你把这个类也过滤一下试试

image
image

过滤了也不行。

image

我在想,是不是因为 app -> libs下有我的aar文件,而 执行移除aar中某个包名后,生成的build/excludePlguin/excludeaar/exclude_GDTSDK_unionNormal.aar文件,里面跟我现在的aar文件重复了,所以导致的问题?

from excludeaar.

ssiyy avatar ssiyy commented on July 29, 2024

是这样的,你可以仿照我的demo一样在libs里面新建一个exclude文件夹,这样被过滤的aar包就不会被引用到,你再autoDependencies 等于true就会自动引用到过滤后的aar包,就不会冲突了

from excludeaar.

jackom avatar jackom commented on July 29, 2024

是这样的,你可以仿照我的demo一样在libs里面新建一个exclude文件夹,这样被过滤的aar包就不会被引用到,你再autoDependencies 等于true就会自动引用到过滤后的aar包,就不会冲突了

好的,我再试试,谢谢了~

from excludeaar.

jackom avatar jackom commented on July 29, 2024

楼主你好,我这边测试了,还是会跟之前一样的报错。。不清楚是哪里出了问题了。
image
image
image

from excludeaar.

ssiyy avatar ssiyy commented on July 29, 2024

你引用了2次

from excludeaar.

ssiyy avatar ssiyy commented on July 29, 2024

微信图片_20200918180249

你配置了autoDependencies 为true 我会自动帮你引用过滤之后的aar包,你不需要要自己再implementtation files('libs/exclude/xxxxx.aar')

from excludeaar.

jackom avatar jackom commented on July 29, 2024

好的,我再试下。

from excludeaar.

jackom avatar jackom commented on July 29, 2024

现在是可以正常运行了。谢谢楼主!

from excludeaar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.