-
Notifications
You must be signed in to change notification settings - Fork 207
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
java.lang.NoClassDefFoundError: com/arellomobile/mvp/MoxyReflector when testing AAR #223
Comments
Spending some time in research i found out a solution, that fits my demands. I use productFlavors. now gradle looks like this:
When i want to start tests, i chouse unitTestsBuild in build Variants in Android Studio. |
sergevalevich
pushed a commit
to sergevalevich/Moxy-Multimodule
that referenced
this issue
Mar 3, 2019
…n module. This allows Instant App support (Arello-Mobile#209), running unit-tests for feature modules (Arello-Mobile#223) and other issues Arello-Mobile#224. Here, Moxy always references to MoxyReflector by com.arellomobile.mvp package and generates MoxyReflectorDelegate for each module. In order to use Moxy, there is no need to follow instructions described on this page https://github.com/Arello-Mobile/Moxy/wiki/Multiple-modules Now it is only required to add 1 line of code to BaseActivity.onCreate of each module : MoxyReflector.registerDelegate(MoxyReflectorDelegate.INSTANCE);
sergevalevich
pushed a commit
to sergevalevich/Moxy-Multimodule
that referenced
this issue
Jul 22, 2019
…n module. This allows Instant App support (Arello-Mobile#209), running unit-tests for feature modules (Arello-Mobile#223) and other issues Arello-Mobile#224. Here, Moxy always references to MoxyReflector by com.arellomobile.mvp package and generates MoxyReflectorDelegate for each module. In order to use Moxy, there is no need to follow instructions described on this page https://github.com/Arello-Mobile/Moxy/wiki/Multiple-modules Now it is only required to add 1 line of code to BaseActivity.onCreate of each module : MoxyReflector.registerDelegate(MoxyReflectorDelegate.INSTANCE);
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello. I'm facedoff with problem when i'm trying to cover my AAR code with some tests.
some activity
some presenter
presenter test
gradle
When i'm starts testDetails from DetailPresenterTest it's fails with next exception:
I noticed, when i remove from gradle file following pieces and rebuild AAR project then everything becomes normal
but this gradle settings are necessary for AAR projects...
Thank you in advance for your answer.
The text was updated successfully, but these errors were encountered: