https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
g

gumil

04/08/2019, 11:18 AM
has anyone encountered
cannot access class <class-name>. check your module or classpath for missing or conflicting dependencies
in Android Studio, but when running, it’s fine and tests are also running?
a

antonis

04/08/2019, 11:49 AM
Never had this issue. Try from the file menu to “Invalidate Caches and Restart”
m

max.cruz

04/08/2019, 4:26 PM
Looks like if the module with the missing class is not included on settings.gradle or in the build.gradle of the client module
g

gumil

04/08/2019, 8:27 PM
It is in settings.gradle and in the build.gradle. Everything works when you run the app and the tests. It's just the IDE
a

Alexey Belkov [JB]

04/09/2019, 8:38 AM
g

gumil

04/09/2019, 8:57 AM
Can this error be supressed for the mean time?
a

Alexey Belkov [JB]

04/09/2019, 9:05 AM
If this is indeed the problem that you're experiencing in your project, then the only way to fix it is to restructure the project, so that the libraries won't depend on project sources. There is no other known workaround at the moment.
g

gumil

04/09/2019, 9:40 AM
It’s the sample project inside the library that caused this issue. I guess I’ll just get the dependencies from mavenLocal
11 Views