Coder Social home page Coder Social logo

Comments (2)

Somony avatar Somony commented on August 28, 2024

插件是在最终class编译成dex时生效的,那么在library中配置的切面应该也是能够被处理的,但是目前来看不符合预期,请问这是什么原因呢?

from gradle_plugin_android_aspectjx.

Somony avatar Somony commented on August 28, 2024

解决了,是因为libaryB的jar被过滤掉了,核心在com.hujiang.gradle.plugin.android.aspectjx.internal.AJXUtils#filterJar()

  1. 如果同时配置include和exclude的话,就会遍历整个jar的文件,判断是否在这两个list中,如果library中的依赖复杂,可能就会造成同时都在两个list,造成问题
  2. 如果只是配置include或者exclude的话,就只会在其中以一个list里面寻找,只要jar里面有一个文件匹配上了,就会返回

所以解决方案是:只配置include。能解决我的问题。

from gradle_plugin_android_aspectjx.

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.