解决方法
Gradle build时正常,但运行项目时出现:CreateProcess error=206, 文件名或扩展名太长,查看其他配置,一顿操作还是没有好,最后发现是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"