Skip to content
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

DaggerClientComponent class is undefined #182

Closed
ilya-payrange opened this issue Apr 27, 2017 · 8 comments
Closed

DaggerClientComponent class is undefined #182

ilya-payrange opened this issue Apr 27, 2017 · 8 comments

Comments

@ilya-payrange
Copy link

ilya-payrange commented Apr 27, 2017

Summary

DaggerClientComponent class is undefined

Preconditions

Pull latest RxAndroidBle, master branch

Steps to reproduce actual result

1.Pull latest RxAndroidBle
2.import into Android Studio project
3.Compile

Actual result

Error:(12, 32) error: cannot find symbol class DaggerClientComponent
on
import com.polidea.rxandroidble.DaggerClientComponent;

Expected result

Should compile ok.

@uKL
Copy link
Collaborator

uKL commented Apr 27, 2017

Did you try compiling from the console?

@dariuszseweryn
Copy link
Owner

dariuszseweryn commented Apr 27, 2017

@ilya-payrange 1.2.0 or 1.3.0-SNAPSHOT?

Edit: yeah - probably not relevant - master branch
What version of the Android Studio?

@ilya-payrange
Copy link
Author

Resolved.

It was on Android Studio 2.4 preview, with Java 8 enabled (as sample apps require Java 8 and Jack is deprecated).

Studio 2.4 and toolchain barked at apt. I got it build ok replacing
apt rootProject.ext.libs.dagger_compiler
with
annotationProcessor rootProject.ext.libs.dagger_compiler
in RxAndroidBle build.gradle.

I wonder if there's a way to do the same without messing with build.gradle (so updates/pulls will need no
patching)?

@dariuszseweryn
Copy link
Owner

Nothing that I can know from top of my head.

@KomoriWu
Copy link

How do you solve this problem

@dariuszseweryn
Copy link
Owner

@KomoriWu currently the project uses annotationProcessor by default. If you have problems making it to work you can check out this topic or other similar

@ghost
Copy link

ghost commented Nov 2, 2017

@uKL and @dariuszseweryn. Thanks for your outstanding job of making RxAndroidBLE open lib.

Issue: I have added the lib as a MODULE to my Android project but I am facing the error i.e DaggerClientComponent class is undefined and the class is not there in the lib files.
I am using Android Studio 3.0
and
// Dagger dependencies
compile 'com.google.dagger:dagger:2.10'
annotationProcessor 'com.google.dagger:dagger-compiler:2.10'

How can I solve the issue, I need yours guidance in the respect?

@dariuszseweryn
Copy link
Owner

Hello @farmanvu
Have you tried to google the problem?
I once had to enable annotationProcessor in Android Studio 2.3 which I use (I am not on 3.0 yet because of incompatibility of groovy plugin #302)
If you solve the issue feel free to report back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants