Git Product home page Git Product logo

Comments (25)

yejiabin9 avatar yejiabin9 commented on July 28, 2024

#18 复现情况有点像这个,第一次编译可以,第二次就错了,但是有时候再试几次又能成功

from rocketx.

trycatchx avatar trycatchx commented on July 28, 2024

@GHyejb 网络问题。

from rocketx.

yejiabin9 avatar yejiabin9 commented on July 28, 2024

感觉不太像啊,第一次编译可以,立即再编译一次,出现这个问题
关闭插件项目能正常编译了

from rocketx.

trycatchx avatar trycatchx commented on July 28, 2024

你可以尝试使用 1.0.1 版本。RC 是候选版本。然后你可以用手机的热点试试,看这个异常信息是网络原因

image

from rocketx.

yejiabin9 avatar yejiabin9 commented on July 28, 2024

好的,我试试,谢谢

from rocketx.

trycatchx avatar trycatchx commented on July 28, 2024

@GHyejb 好的,如果有出现其他的问题请反馈,我们这边会尽力帮忙排查。

from rocketx.

yejiabin9 avatar yejiabin9 commented on July 28, 2024

找到问题了,我这里用了两个版本,结果插件在打印依赖关系的时候冲突导致的

from rocketx.

trycatchx avatar trycatchx commented on July 28, 2024

好的,很高兴听到这个消息

from rocketx.

yejiabin9 avatar yejiabin9 commented on July 28, 2024

插件最新进展--好消息
目前是使用源码引入插件的,和目前的代码做了一些兼容,终于能用了,目前只开了8个子模块,编译速度比之前会快一些,但是不是很多,可能是源码引入的模块比较少,导致效果不是特别大,后面会增加子模块去验证。
下面的遇到的几个问题和解决方案
1、由于我们的项目有个插件会在编译的时后在每个module生成一个文件夹,导致这个问题 #23 ,关闭了项目里的插件就好了
2、目前过滤了build文件夹,但是如果子module是独立的仓库,每次都会扫描进这个文件夹,这里面是不是可以不用扫描,里面的文件还挺多的,我尝试了过滤这个文件夹也能正常运行
image
3、AJXTransform这个无法被excludeTransForms识别和禁止编译,目前我是把项目里面AJXTransform关闭了
4、有时候mergeDebugJavaResource耗时较长

from rocketx.

trycatchx avatar trycatchx commented on July 28, 2024

@GHyejb 很高兴听到这个消息
问题2:是的,理论只是扫描源码部分即可。
问题3 :gradle.properties 配置 excludeTransForms ajx
image
问题4:这块 rockectx 没做任何动作,可能需要你排查一下是否有资源文件变动?

from rocketx.

yejiabin9 avatar yejiabin9 commented on July 28, 2024

问题三那样试过,还是会编译,而且build中transFormList没有输出,感觉是rocketx没有检测到使用了ajx,等后面有时间再排查一下这里

from rocketx.

trycatchx avatar trycatchx commented on July 28, 2024

@GHyejb 好的,请问方便贴出引入 ajx 方式?方便我们这边在工程中尝试复现出问题并解决它。

from rocketx.

yejiabin9 avatar yejiabin9 commented on July 28, 2024

classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.10'
根目录的 build.gradle

from rocketx.

trycatchx avatar trycatchx commented on July 28, 2024
apply plugin: 'android-aspectjx'
//或者这样也可以
apply plugin: 'com.hujiang.android-aspectjx'

来自aspectjx readme app module build.gradle 是否添加以上插件?

from rocketx.

yejiabin9 avatar yejiabin9 commented on July 28, 2024

app中添加了
apply plugin: 'android-aspectjx'

from rocketx.

trycatchx avatar trycatchx commented on July 28, 2024

@GHyejb 好的,感谢。

from rocketx.

trycatchx avatar trycatchx commented on July 28, 2024

@GHyejb 你使用的AGP 版本是多少?我在 demo 进行 ajx 测试是可以 exclude 成功

from rocketx.

yejiabin9 avatar yejiabin9 commented on July 28, 2024

4.0.2
6.1.1
你的transFormList有输出吗?

from rocketx.

trycatchx avatar trycatchx commented on July 28, 2024

@GHyejb
我在 gradle.propertity 添加 excludeTransForms = ajx ,transFormList 没有输出,并且 task 没有被执行。

from rocketx.

yejiabin9 avatar yejiabin9 commented on July 28, 2024

换成我的agp版本ajx就没法被过滤是吗?agp版本导致的吗

from rocketx.

trycatchx avatar trycatchx commented on July 28, 2024

@GHyejb
agp 6.0+的 transform 字段:为 _transform ,
agp 6.0 以下的是 transform

所以 6.0 以下目前插件会 exclude 不成功(反射修改)。但是你是 6.1.1 理论没有问题。这个就令我很苦恼

from rocketx.

yejiabin9 avatar yejiabin9 commented on July 28, 2024

源码调的话我应该在哪些地方打断点,我这边试试看

from rocketx.

trycatchx avatar trycatchx commented on July 28, 2024

查看 BaseExtension.kt 代码里面的变量即可

from rocketx.

yejiabin9 avatar yejiabin9 commented on July 28, 2024

好的,我看看

from rocketx.

trycatchx avatar trycatchx commented on July 28, 2024

这个我关了,如果后期有出现新的问题。你再提 issue

from rocketx.

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.