After rebuilding the project still no joy. My project (at time of writing this) is a gradle 4.10.2 kotlin 1.3 project in IntelliJ (IntelliJ IDEA 2018.2.5 (Ultimate Edition) Build #IU-182.4892.20, built on October 16, 2018)įor starters though, I invalidated caches and restarted. However the code panel has no red lines indicating that modules can't be found or imported or anything untoward. This was the sort of symptom the IDE was displaying in the message panel after trying to run tests via the IDE. I have tried a number of things mentioned on this page but not without complete success. Ok, i've been here a few times and not entirely sure how or why this happens but reading suggests its a Kotlin/JVM mismatch. I had to add the following to my ade:Īpply plugin: 'kotlin-android' Solution 5 Project Structure -> SDKs -> Remove and add the Java SDK again In my case, it was a misconfigured IntelliJ instance. ![]() Project Structure -> -> Kotlin -> FIXĪs suggested by a JetBrain's member here: Solution 3 To fix the IDE build, try the following:.If everything goes well, then your environment is all good to work with Kotlin. ![]() If anyone stumbles across this and NEITHER Invalidate Cache or Update Kotlin's Version work:įirst, make sure you can build it from outside the IDE. ![]() The option, per module, Kotlin -> FIX does not exist anymore and has been that way for years now since this was a temporary patch to deal with integration issues during the early previous releases. The jetbrains thread regarding this issue has moved and is nowhere to be found, so the link below is not valid anymore. If you still have issues, with some older plugins you need to clear the caches in Intellij IDEA (file menu, Clear Caches and Restart, select option to restart). For example if IDE plugin is Beta 1, but your Gradle/Maven project using M12, you'll have issues exactly as you described. Your Intellij IDEA plugin and the Kotlin runtime/compiler that you use in the project need to match.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |