This is part of a faltering attempt to switch an Android Studio project configuration from Groovy to Kotlin. Supposedly this has better IDE support and more meaningful error messages, but non of that seems to be happening. I keep getting the code insight is unavailable warning, though if I managed to fix reported compile problems it would eventually go away, but it is starting to look like there is some overriding configuration problem that is producing this warning and preventing me from getting the expected IDE support. Any hints as to where I should start looking?
You need to successfully sync to get the proper IDE support.
For that the configuration of course must be possible.
But if you look at the Build
tool window, you see the output from the sync try and for example compile errors in the build script.
To not blindly fix them but with IDE support, you could for example comment out the non-compiling parts and then sync again.
As soon as you successfully synced, you have the full IDE support and then can get the failing parts resolved more easily.
Instead of the Build
tool window, you can of course also simply execute some task like gradlew help
in case the error is not only during sync which seldomly is the case.