question

angelp avatar image
angelp asked angelp commented

Clover plus Dagger

I need to use Clover in my Android Studio project. I'm using clover example, but when I put {compile 'com.clover.sdk:clover-android-sdk:26'} in gradle, the project built, but I got the following error:

FATAL EXCEPTION: main Process: myProject, PID: 3586 java.lang.NoClassDefFoundError: myProject.dagger.DaggerDaggerComponent??at myProject.dagger.DaggerComponent$Initializer.init(DaggerComponent.java).

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

First step: set up a sample project and use dagger. Once you get that to work, see if adding in the Clover libraries breaks it. I doubt it will, but if so please post the result.

0 Likes 0 ·

1 Answer

Mike M avatar image
Mike M answered angelp commented

For general Java errors, I would highly recommend Googling first and/or checking Stackoverflow.

https://stackoverflow.com/questions/3...

Specifically, this looks like an error in Dagger and not Clover.

3 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

angelp avatar image angelp commented ·

According to the Dagger team, this appears to be a "build tools" error. Could you take another look and give any suggestions? We have tried different things that would cause this, but no solution.

For your reference here is the Dagger ticket: https://github.com/google/dagger/issu...

0 Likes 0 ·
Mike M avatar image Mike M commented ·

Can you try using the latest version of the Clover SDK for starters? Latest public version is 133 or can be referenced via:

compile 'com.clover.sdk:clover-android-sdk:latest.release'
0 Likes 0 ·
Mike M avatar image Mike M commented ·

Also, Googling around gave some other hints. Try checking these out: https://stackoverflow.com/questions/2...

More so related to "build tools" https://stackoverflow.com/questions/3...

0 Likes 0 ·

Welcome to the
Clover Developer Community