https://kotlinlang.org logo
j

jdiaz

07/21/2021, 11:24 AM
Has anyone had trouble with indexing common dependencies? I add a dependency to the common and IntelliJ does't show it though I can write the import and use the class and build with
gradlew build
just fine
l

Landry Norris

07/21/2021, 7:48 PM
I get this sometimes. Invalidate Caches and Restart Android Studio typically works.
j

jdiaz

07/21/2021, 9:39 PM
Have restarted/invalidated caches for a while now. Adding the jvm target with -jvm suffix works fine, but in common without any suffix doesn't work
l

Landry Norris

07/21/2021, 9:40 PM
That's interesting. Have you tried searching https://mvnrepository.com/ for the non-jvm name? Some libraries have different URLs than you would expect.
j

jdiaz

07/21/2021, 9:54 PM
It's my own library hosted on JB Space, actually just copypasta the gradle import. The thing is that it works on gradle just not on intellij
4 Views