I have found a way to work around these problems, but I suspect they aren't supposed to happen in the first place, so I'm posting here in case you want to take any action -- or, at worst, so that anyone who encounters similar problems can use my workaround.
I'm trying to build intellij-community from master (5b4fa2a13a3ec2befcee810433428b2d578ace86; android 70133cbe5ef65acd8cdf5c38fea9d586f8cc1bfd; android/tools-base 17e9c8b666cac0b974b1efc5e1e4c33404f72904). I've followed the README as far as running "Build | Build Project." At that point, I see a handful of errors. For example:
Error:(47, 35) java: package org.jetbrains.kotlin.gradle does not exist
Error:(66, 38) java: package org.jetbrains.kotlin.kapt.idea does not exist
As best I can tell, I need to do both of the following to eliminate the errors:
- Set up dependencies with `cd build/dependencies && ./gradlew :setupDependencies` (per this announcement). (If I skip this step, I notice the message "Library 'KotlinPlugin' has broken paths.")
- Add the "KotlinPlugin" library as a dependency of the following 4 modules: intellij.android.core, intellij.android.core.tests, intellij.android.kotlin.idea, intellij.android.kotlin.extensions.
I assume that there's a real fix than this that would make the manual edits necessary, but I'm not familiar enough with the build setup to know what it would be. And I'm not sure if the Gradle step is supposed to happen automatically? (I think I have the Gradle plugin enabled -- certainly I can run it from within IntelliJ -- but maybe setupDependencies is supposed to run automatically? If not, maybe the README should mention it?)