Comments (12)
@blundell Use hilt higher version 2.50,i have checked it. But u should do another hilt config, becaue higher hilt may by cover ohter's annotation.
confit like this
hilt {
enableExperimentalClasspathAggregation = true
enableAggregatingTask = false
}
from arouter.
use kapt replace arguments:
kapt {
arguments {
arg("AROUTER_MODULE_NAME", project.getName())
}
}
from arouter.
use kapt replace arguments: kapt { arguments { arg("AROUTER_MODULE_NAME", project.getName()) } }
试了好像不行啊,有人试过了吗
from arouter.
@mistermingming pls show your build.gradle that declares kapt { arguments {
and what version of the plugin: com.google.dagger.hilt.android
are you using? I could reproduce the error with 2.48.1
, but it works ok with 2.44.2
from arouter.
@blundell hilt version: 2.44,i have replaced all 'annotationProcessorOptions' with 'kapt'. I will try with verion 2.48.1 later.
from arouter.
@mistermingming replaced all java annotations with kapt and build again ?
from arouter.
@blundell @jack-alon I could reproduce with hilt 2.46, but it works 2.44. Have u fixed this?
from arouter.
No, we are also stuck on 2.44 for now (assuming that's the issue, still not 100% certain)
from arouter.
I think I found the cause, in Hilt v2.45: google/dagger#3546 / google/dagger#3658
not figured out the solution yet :-)
Made a simple reproduction project: https://github.com/blundell/ARouterHiltIssue
This is the least code needed to reproduce this issue.
It appears, whatever the change was, was introduced in Hilt 2.46
from arouter.
@blundell Use hilt higher version 2.50,i have checked it. But u should do another hilt config, becaue higher hilt may by cover ohter's annotation.
Yes the reproducer project uses Hilt: 2.51.1 : https://github.com/blundell/ARouterHiltIssue/blob/main/gradle/libs.versions.toml#L5
config like this
hilt {
enableExperimentalClasspathAggregation = true
enableAggregatingTask = false
}
Thanks I've just tried that.
Using only:
hilt {
enableAggregatingTask = false
}
the reproducer project build succeeds! 🎉 🙇♂️
from arouter.
@blundell Good job!✈✈
from arouter.
@blundell Use hilt higher version 2.50,i have checked it. But u should do another hilt config, becaue higher hilt may by cover ohter's annotation.
confit like this
hilt {
enableExperimentalClasspathAggregation = true
enableAggregatingTask = false
}
Thank you , this is the final solution.
from arouter.
Related Issues (20)
- It's outrageous, why is it strongly related to the calling order of the code:
- Fork了一个版本,适配了AGP8.0,可直接远程引用,链接见内
- 希望能适配 APG 7.3+ HOT 5
- 初始化耗时-BlockCanaryContext检测
- AS 火烈鸟 构建性能提示 HOT 2
- The following annotation processors are not incremental: jetified-arouter-compiler-1.1.4.jar (com.alibaba:arouter-compiler:1.1.4). Make sure all annotation processors are incremental to improve your build speed. :module_device:compileYF_PRODebugJavaWithJavac spend 78ms
- 安卓Android 7.1.1报错:
- Android7.1.1报错:Attempt to read from field 'java.lang.String com.android.server.am.ActivityRecord.packageName' on a null object reference,具体信息如下:
- 基于 KSP 和 AGP 8 的重构版本 HOT 3
- 自定义类型值不传崩溃
- It will caused NullPointException if we implement the interface of 'PretreatmentService' with Kotlin language
- ⚠️⚠️⚠️新写了一个Android路由库,Gradle8.0+自动注册,同样的API,更多的功能.
- 以后再用阿里的开源库我就是狗 HOT 3
- gradle 8.0构建项目报错API 'android.registerTransform' is removed. HOT 4
- 被通付盾安全监测出一个中危漏洞,贵司有计划修复一下么? HOT 1
- R8混淆报错了-dontwarn javax.lang.model.element.**
- Android 14 java.lang.NoClassDefFoundError
- com.alibaba.android.arouter.launcher._ARouter.startActivity(_ARouter.java:444)报错
- ARouter init logistics center exception HOT 1
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 arouter.