Comments (4)
I'm facing the exact same issue with SQLDelight. In my case, I was able to make it work by updating build.gradle.kts
like this:
// This is written for Gradle KTS
androidComponents {
onVariants(selector().all()) { variant ->
afterEvaluate {
val capName = variant.name.capitalize()
tasks.getByName<KotlinCompile>("ksp${capName}Kotlin") {
setSource(tasks.getByName("generate${capName}DatabaseInterface").outputs)
}
}
}
}
from dagger.
Filled https://issuetracker.google.com/313669430 for the AGP team as they own the AIDL stub generation.
from dagger.
Workaround:
// Workaround for https://github.com/google/dagger/issues/4158
androidComponents {
onVariants(selector().all(), { variant ->
afterEvaluate {
def capName = variant.name.capitalize()
tasks.getByName("ksp${capName}Kotlin") {
setSource(tasks.getByName("compile${capName}Aidl").outputs)
}
}
})
}
from dagger.
Links #4049.
from dagger.
Related Issues (20)
- Firebase.messaging.subscribeToTopic("weather") .addOnCompleteListener { task -> var msg = "Subscribed" if (!task.isSuccessful) { msg = "Subscribe failed" } Log.d(TAG, msg) Toast.makeText(baseContext, msg, Toast.LENGTH_SHORT).show() } HOT 1
- [KSP] FileAlreadyExistsException: Hilt fails during multi-round processing due to recreating files
- Can't add Hilt to a multiplatform project HOT 4
- Build Fails with "file not found" on task transformDebugClassesWithAsm AGP 8.3.0-alpha11 HOT 1
- Dagger should not allow injection into Kotlin protected fields
- KSP: InjectProcessingStep was unable to process 'glide' because 'error.NonExistentClass' could not be resolved. HOT 6
- Cannot use legacy dagger.spi.BindingGraphPlugin while compiling with KSP HOT 1
- CVE-2976 HOT 1
- [KSP] Performance regression vs KAPT HOT 7
- KSP: Consistently failing build in first run and success on second run HOT 8
- Lots of warnings with KSP related to incremental compilation HOT 8
- ComponentProcessingStep was unable to process 'com.example.lab0.App_HiltComponents.SingletonC' because '<error>' could not be resolved. HOT 8
- getViewModel crash intermittently with NullPointerException / IllegalArgumentException HOT 3
- [KSP] internal @Provides method produces non-compiling code using dagger-android HOT 5
- [KSP] dagger-android unresolved generated subcomponent for internal module methods used across gradle modules HOT 3
- Unable to build with 2.48.1 - 2.49 and 2.50 HOT 2
- KSP processing does not see member injections from typealiased superclass in 2.50 HOT 2
- Regression "warning: [cast] redundant cast to Map" when updating from 2.49 to 2.50 HOT 1
- Dagger-Hilt 2.49: Activity onCreate() and onDestroy() code is generated, but our base Activity class has these final HOT 3
- Dagger 2.50 produces code that calls deprecated method 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 dagger.