[许多教程都提到了一个类-PsiClass,但是我在我的项目中找不到该类。我的build.gradle如下:
plugins {
id 'java'
id 'org.jetbrains.intellij' version '0.4.16'
id 'org.jetbrains.kotlin.jvm' version '1.3.61'
id 'idea'
}
apply plugin: "org.jetbrains.intellij"
apply plugin: 'java'
apply plugin: 'idea'
group 'com.github.boybeak.adapter'
version '0.1'
sourceCompatibility = 1.8
repositories {
/*google()
jcenter()*/
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
// implementation group: 'com.github.boybeak', name: 'any-adapter', version: '1.1.2'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
intellij {
/*version '192.7142.36'*/
type 'AI'
plugins 'android'
localPath '/Applications/Android Studio.app'
}
我的IDEA版本:
IntelliJ IDEA 2019.3.1(社区版)内部版本#IC-193.5662.53,于2019年12月18日建立运行时版本:11.0.5 + 10-b520.17 x86_64VM:JetBrains s.r.o的OpenJDK 64位服务器VMmacOS 10.15.3GC:ParNew,ConcurrentMarkSweep内存:990M核心数:4注册表:非捆绑插件:DBN,OdpsStudio,编号:tornado.tornadofx.idea
我应该在我的项目中添加更多库吗?
经过更多搜索后,我找到了解决方案。https://intellij-support.jetbrains.com/hc/en-us/community/posts/360005055559-Missing-classes-after-upgrade-to-2019-2-2
像这样改变我的摇篮:
intellij {
/*version '192.7142.36'*/
type 'AI'
plugins 'android', 'java'
localPath '/Applications/Android Studio.app'
}
在android
之后添加Java插件