-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dagger2 and objectbox are used simultaneously, indicating that DaggerActivity cannot be found #1188
Comments
Thanks for reporting. Can you please share a more complete build script that also shows how Dagger is used? Is there any relevant log output when building the app? Otherwise, this is rather hard for me to reproduce. Note: I labeled this issue with "more info required" so it will auto-close in a few days if there are no follow-up comments. |
DaggerActivityComponent.builder(), Unable to find DaggerActivityComponent,thanks |
Tried this with our Android app Java example and it works just fine. It looks like you are using Kotlin though. IIRC in that case make sure that all Dagger related classes are written in Kotlin as well and then use kapt instead of annotationProcessor. But that's not related to ObjectBox. If you still think this is related to ObjectBox, please share a full example that I can use to verify. |
Without additional information, we are unfortunately not sure how to resolve this issue. Therefore this issue has been automatically closed. Feel free to comment with additional details and we can re-open this issue. |
buildscript {
dependencies {
classpath "io.objectbox:objectbox-gradle-plugin:4.0.2"
}
}
plugins {
// id 'com.android.application' version '7.1.2' apply false
id 'com.android.application' version '8.0.0' apply false
id 'org.jetbrains.kotlin.android' version '1.9.0' apply false
}
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'io.objectbox'
}
The text was updated successfully, but these errors were encountered: