2017-03-23 15 views
1

這是新創建的空項目。 這是適用的插件有問題我的build.gradle文件。該錯誤發生的情況:「春天啓動」Gradle同步錯誤:未在ProjectScopeServices中提供StyledTextOutputFactory類型的服務

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' 
} 

回答

3

有在搖籃3.0意味着春天啓動的1.3.3.RELEASE斷裂API變化Gradle插件與它不兼容。您需要將Gradle降級到2.x或將Spring Boot升級到1.5.x.

+0

多數民衆贊成在此非常感謝 – Daniel

相關問題