Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Scala Idea无法识别符号,即使它存在于外部依赖中_Scala_Intellij Idea_Gradle_Playframework - Fatal编程技术网

Scala Idea无法识别符号,即使它存在于外部依赖中

Scala Idea无法识别符号,即使它存在于外部依赖中,scala,intellij-idea,gradle,playframework,Scala,Intellij Idea,Gradle,Playframework,有人知道什么是问题吗?为什么我的IDE看不到依赖项中的类Idea版本:17.2.2 根build.gradle: subprojects.each { apply plugin: 'idea' } include 'client' include 'api' rootProject.name = 'app-1-akka-reactjs' 根设置。渐变: subprojects.each { apply plugin: 'idea' } include 'client' i

有人知道什么是问题吗?为什么我的IDE看不到依赖项中的类Idea版本:17.2.2

build.gradle

subprojects.each {
    apply plugin: 'idea'
}
include 'client'
include 'api'

rootProject.name = 'app-1-akka-reactjs'
设置。渐变

subprojects.each {
    apply plugin: 'idea'
}
include 'client'
include 'api'

rootProject.name = 'app-1-akka-reactjs'
api项目的我的build.gradle

apply plugin: 'play'

buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath 'org.iatoki:gradle-play-idea:0.4.1'
    }
}

apply plugin: 'org.iatoki.play-idea'

repositories {
    jcenter()
    ivy {
        url "https://repo.typesafe.com/typesafe/ivy-releases/"
        layout "pattern", {
            ivy "[organisation]/[module]/[revision]/ivys/ivy.xml"
            artifact "[organisation]/[module]/[revision]/jars/[artifact].[ext]"
        }
    }
}

model {
    components {
        play {
            platform play: '2.5.8', scala: '2.11', java: '1.8'
            injectedRoutesGenerator = true
        }
    }
}

dependencies {
    play 'com.typesafe.play:play-slick_2.11:2.1.0'
    play 'com.typesafe.play:play-slick-evolutions_2.11:2.1.0'

    play 'org.postgresql:postgresql:9.4-1200-jdbc41'
}
客户端的build.gradle目前为空

要生成我使用过的idea文件,请执行以下操作:

gradle cleanIdea idea

我也面临类似的问题。我可以通过将settings.xml文件从$MVN_HOME/conf移动/复制到~/.m2文件夹来解决这个问题。由于Idea未检测到MVN_HOME,因此它无法解析MVN_HOME中的settings.xml。

这里是project linkI,我也有同样的问题,甚至它会为我的所有团队成员重现。看起来IDEA在gradle dependenciesHi,@Orest Kyrychuk身上有一些重大缺陷。你说得对。我已经在JetBrains的支持上回答了这个问题。看起来他们的bug跟踪系统中已经存在这样的问题了。投票支持该bug跟踪查看任何状态更新。