Comments (25)
#18 复现情况有点像这个,第一次编译可以,第二次就错了,但是有时候再试几次又能成功
from rocketx.
@GHyejb 网络问题。
from rocketx.
感觉不太像啊,第一次编译可以,立即再编译一次,出现这个问题
关闭插件项目能正常编译了
from rocketx.
你可以尝试使用 1.0.1 版本。RC 是候选版本。然后你可以用手机的热点试试,看这个异常信息是网络原因
from rocketx.
好的,我试试,谢谢
from rocketx.
@GHyejb 好的,如果有出现其他的问题请反馈,我们这边会尽力帮忙排查。
from rocketx.
找到问题了,我这里用了两个版本,结果插件在打印依赖关系的时候冲突导致的
from rocketx.
好的,很高兴听到这个消息
from rocketx.
插件最新进展--好消息
目前是使用源码引入插件的,和目前的代码做了一些兼容,终于能用了,目前只开了8个子模块,编译速度比之前会快一些,但是不是很多,可能是源码引入的模块比较少,导致效果不是特别大,后面会增加子模块去验证。
下面的遇到的几个问题和解决方案
1、由于我们的项目有个插件会在编译的时后在每个module生成一个文件夹,导致这个问题 #23 ,关闭了项目里的插件就好了
2、目前过滤了build文件夹,但是如果子module是独立的仓库,每次都会扫描进这个文件夹,这里面是不是可以不用扫描,里面的文件还挺多的,我尝试了过滤这个文件夹也能正常运行
3、AJXTransform这个无法被excludeTransForms识别和禁止编译,目前我是把项目里面AJXTransform关闭了
4、有时候mergeDebugJavaResource耗时较长
from rocketx.
@GHyejb 很高兴听到这个消息
问题2:是的,理论只是扫描源码部分即可。
问题3 :gradle.properties 配置 excludeTransForms ajx
问题4:这块 rockectx 没做任何动作,可能需要你排查一下是否有资源文件变动?
from rocketx.
问题三那样试过,还是会编译,而且build中transFormList没有输出,感觉是rocketx没有检测到使用了ajx,等后面有时间再排查一下这里
from rocketx.
@GHyejb 好的,请问方便贴出引入 ajx 方式?方便我们这边在工程中尝试复现出问题并解决它。
from rocketx.
classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.10'
根目录的 build.gradle
from rocketx.
apply plugin: 'android-aspectjx'
//或者这样也可以
apply plugin: 'com.hujiang.android-aspectjx'
来自aspectjx readme app module build.gradle 是否添加以上插件?
from rocketx.
app中添加了
apply plugin: 'android-aspectjx'
from rocketx.
@GHyejb 好的,感谢。
from rocketx.
@GHyejb 你使用的AGP 版本是多少?我在 demo 进行 ajx 测试是可以 exclude 成功
from rocketx.
4.0.2
6.1.1
你的transFormList有输出吗?
from rocketx.
@GHyejb
我在 gradle.propertity 添加 excludeTransForms = ajx ,transFormList 没有输出,并且 task 没有被执行。
from rocketx.
换成我的agp版本ajx就没法被过滤是吗?agp版本导致的吗
from rocketx.
@GHyejb
agp 6.0+的 transform 字段:为 _transform ,
agp 6.0 以下的是 transform
所以 6.0 以下目前插件会 exclude 不成功(反射修改)。但是你是 6.1.1 理论没有问题。这个就令我很苦恼
from rocketx.
源码调的话我应该在哪些地方打断点,我这边试试看
from rocketx.
查看 BaseExtension.kt 代码里面的变量即可
from rocketx.
好的,我看看
from rocketx.
这个我关了,如果后期有出现新的问题。你再提 issue
from rocketx.
Related Issues (20)
- 修改commonUI 源码依赖不生效,还是打包成aar HOT 4
- No static field xxx of type I in class Lcom/xxx/xxx/BR; HOT 1
- 请问改为发布到远端maven仓库有示例吗,需要改哪些地方呢 HOT 3
- demo 编译报错 HOT 4
- kapt: java.lang.ClassNotFoundException: com.google.gson.annotations.SerializedName HOT 1
- 使用kapt没生成对应类 HOT 1
- Cannot change dependencies of dependency configuration ':xxx:api' after it has been included in dependency resolution. HOT 1
- Execution failed for task ':xxx:kaptDebugKotlin HOT 2
- AGP 7.2.2 sync 失败 HOT 5
- Cannot change dependencies of dependency configuration ':app:implementation' after it has been included in dependency resolution. HOT 1
- 引入其他asm插桩插件导致编译失败: zip END header not found HOT 1
- a模块布局xml引用b模块资源文件会编译报错,第一次可以编译通过,之后就报错了 HOT 2
- 请教一下,这部分禁用transform任务的逻辑,有没有办法在build.gradle里面写,而不是在插件里? HOT 1
- Execution failed for task ':app:checkDevDebugAarMetadata' HOT 3
- 针对 Flutter 项目需要额外的处理吗 HOT 1
- demo编译爆错 HOT 2
- 项目是老项目,没有适配androidX,使用rocketX插件编译不了
- gradle 编译没法使用
- 目前还不支持 includeBuild
- 没有适配AndroidStudio新UI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rocketx.