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

"Cannot access class" when using Henson in Espresso test written in Kotlin #160

Open
joharei opened this issue Jul 18, 2017 · 0 comments
Open

Comments

@joharei
Copy link

joharei commented Jul 18, 2017

I'm trying to use Henson in my Espresso test like this:

activityRule.launchActivity(Henson.with(MainApplication.getAppContext())
    .gotoMyActivity()
    .build())

Compilation fails with the following error:

Error:(31, 18) Cannot access class 'my.package.MyActivity$.IntentBuilder'. Check your module classpath for missing or conflicting dependencies

I'm using kapt for all my annotation processors. The code is indeed generated under /build/generated/source/kapt/main/my/package/MyActivity$$IntentBuilder.java, and the Android Studio lint doesn't complain.

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

1 participant