"CreateProcess error=206, 檔案名或擴充名太長。",用gradle建構項目建立mapper檔案時提示這個錯誤,是Windows Gradle長類路徑問題,官方已經修複
用gradle建構項目mapper檔案時,提示這個錯誤,這個是Windows Gradle長類路徑問題, gradle官方已經解決了這個問題。
官網給出的解決方法位址:https://plugins.gradle.org/plugin/ua.eshepelyuk.ManifestClasspath
Using the plugins DSL:
plugins {
id "ua.eshepelyuk.ManifestClasspath" version "1.0.0"
}
Using legacy plugin application:
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.ua.eshepelyuk:ManifestClasspath:1.0.0"
}
}
apply plugin: "ua.eshepelyuk.ManifestClasspath"