I'm getting a "Cannot access class. Check your mod...
# compiler
s
I'm getting a "Cannot access class. Check your module class path for missing or conflicting dependencies' when trying to run an android app on device and when trying to run the tests. When just running, a simple clean and rebuild is enough to make it go away, but that doesn't work for running tests. Where is that class path that it's talking about?
w
Is this an error in the IDE or you get the same thing when running the app/tests from command line (if you’re using Gradle)?
s
I get the same thing with the command line
🤔 1
j
You can try adding
--stacktrace --info
at the end to get more information.
s
I did. And the "Check Log for More Details" line was in the stack trace 😞
p
this is unlikely to be a compiler issue, I believe. the log is most probably the application log on the device. check out https://developer.android.com/studio/debug/am-logcat for more info
s
No, it's not the application log, as the app doesn't get built
p
oh, you wrote “trying to run the app on device”, that threw me off. it’s more likely something android-specific (and maybe due to which JDK version you’re using, based on the “module classpath” error). you might have more luck asking in the #android channel
s
no, it happens while compiling
hence, why I posted in the compile channel
428 Views