Open ukch opened 5 years ago
[Info - 15:58:39] client Adding [/opt/android-sdk-linux/platforms/android-28/android.jar, /path/to/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.31/11289d20fd95ae219333f3456072be9f081c30cc/kotlin-stdlib-1.3.31.jar] to class path
Apparently only android
and the standard library are found by the language server, which is the reason why other imports are flagged as unresolved.
Last time I tried running this setup against a React Native project I also had dependency issues. I haven't had the time to pursue getting their pretty specialized setup working 😒
Their Gradle config is pretty complex, so it's likely doing something non-typical that we're choking on. I'm personally waiting for them to calm down on some of the major changes going on and I'll be able to look into this further. Anyone else is free to look into it though in the meantime
I am trying to get a development environment set up with this plugin and coc.nvim for an Android/ReactNative project. Linting seems to work, but the dependency management always fails and I get a lot of
UNRESOLVED REFERENCE
errors. The logs show the warning 'An illegal reflective access operation has occurred' which might be contributing to the problem. Here's the complete logs (quietmodem
is the name of my project):Here is the contents of
/path/to/project/android/build.gradle
(as is common with React-native projects, the Android-specific code, includingbuild.gradle
, is in the/android
directory within the project):The test file that I am trying to lint imports
io.mockk
,org.junit.jupiter
andcom.facebook.react
(all of which are specified inbuild.gradle
as eitherimplementation
ortestImplementation
). Undergradle build
all of these imports work, but the linter cannot seem to find these dependencies. I am not directly importingcom.android
but I have tested it and it seems to work without issue.