Coder Social home page Coder Social logo

Comments (7)

xyls09 avatar xyls09 commented on July 4, 2024

将permissionaspect中的java问价拷到app中就可以运行,不知道为什么在permissionaspect中时就报上述错误

from gradle_plugin_android_aspectjx.

firefly1126 avatar firefly1126 commented on July 4, 2024

动态权限这个库很久没有同步更新了,和我们内部使用的库有些差别,后面安排时间同步一下。

aspectOf这个方法是aspectj编译时生成的方法,出现这种情况一般是因为permissionaspect文件没有被aspectj编译进去。可能的原因是加入了过滤配置过滤掉了。可以解开../build/intermediates/transforms/AspectTransform/../aspected.jar查看编译后的代码结构。

from gradle_plugin_android_aspectjx.

xyls09 avatar xyls09 commented on July 4, 2024

怎么把它编译进去呢,能否提供思路?

from gradle_plugin_android_aspectjx.

firefly1126 avatar firefly1126 commented on July 4, 2024

Android_Permission_AspectjX项目的app的build.gradle里面加了过滤把permissionaspect过滤了,这个配置有问题,去掉这个配置就OK了

aspectjx {
    jarFilter 'com.firefly1126.permissionaspect/permissionaspect'
}

from gradle_plugin_android_aspectjx.

xyls09 avatar xyls09 commented on July 4, 2024

确实可以了,非常感谢您的回复

from gradle_plugin_android_aspectjx.

zhouchaohong1111 avatar zhouchaohong1111 commented on July 4, 2024

我的项目也出现了
java.lang.NoSuchMethodError: No static method aspectOf()Lcom/../../aop/LifeCycleAspect
使用了最新的
classpath "com.hujiang.aspectjx:gradle-android-plugin-aspectjx:1.0.10"

from gradle_plugin_android_aspectjx.

romii88 avatar romii88 commented on July 4, 2024

同样遇到这个问题,使用了最新版本的plugin。

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.