Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blundell/arouterhiltissue
https://github.com/blundell/arouterhiltissue
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/blundell/arouterhiltissue
- Owner: blundell
- Created: 2024-05-29T12:11:27.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-03T21:22:06.000Z (7 months ago)
- Last Synced: 2024-11-27T04:36:51.422Z (28 days ago)
- Language: Kotlin
- Size: 95.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Reproducer Project
Arouter + Hilt build failure
```bash
:app:hiltJavaCompileDebug FAILED
error: ARouter::Compiler An exception is encountered, [These no module name, at 'build.gradle', like :
android {
defaultConfig {
...
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
}
]
1 error
```In toml, if:
```hilt_gradle_plugin = "2.45" ```
Then `./gradlew build` succeeds.
___
If
```hilt_gradle_plugin = "2.46" ``` (or higher)
Then `./gradlew build` fails.
Fixes
#1 Disable the aggregating task from hilt: https://github.com/blundell/ARouterHiltIssue/tree/fix-non-aggregating-hilt-task
#2 Move to a different compiler implementation that uses KSP: https://github.com/blundell/ARouterHiltIssue/tree/fix-arouter-jailbird-ksp