【问题标题】:Gradle sync-Error:No service of type StyledTextOutputFactory available in ProjectScopeServicesGradle 同步错误:ProjectScopeServices 中没有 StyledTextOutputFactory 类型的服务可用
【发布时间】:2017-03-23 14:37:21
【问题描述】:

这是一个新创建的空项目。 这是我的 build.gradle 文件。有问题的错误发生在应用插件上:'spring-boot'

group 'com.teamtreehouse'
version '1.0-SNAPSHOT'

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath('org.springframework.boot:spring-boot-gradle-plugin:1.3.3.RELEASE')
    }
}

apply plugin: 'java'
apply plugin: 'spring-boot'

sourceCompatibility = 1.8

repositories {
    mavenCentral()
}

dependencies {
    compile 'org.springframework.boot:spring-boot-starter-data-rest'
    compile 'org.springframework.boot:spring-boot-starter-data-jpa'
    testCompile group: 'junit', name: 'junit', version: '4.11'
}

【问题讨论】:

    标签: spring intellij-idea gradle spring-boot


    【解决方案1】:

    Gradle 3.0 中有一个重大的 API 更改,这意味着 Spring Boot 的 Gradle 插件的 1.3.3.RELEASE 与它不兼容。您需要将 Gradle 降级到 2.x 或将 Spring Boot 升级到 1.5.x。

    【讨论】:

      猜你喜欢
      • 2017-02-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多