Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/blundell/arouterhiltissue


https://github.com/blundell/arouterhiltissue

Last synced: 24 days ago
JSON representation

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