CreateProcess error=206, Имя файла или его расширение имеет слишком большую длину
gradle-5.6.4
7.2.22
решения с форума не помогают, может что-то не так делаю
CreateProcess error=206, Имя файла или его расширение имеет слишком большую длину
gradle-5.6.4
7.2.22
решения с форума не помогают, может что-то не так делаю
Execution failed for task ':app-global:compileJava'.
> A problem occurred starting process 'command 'C:\Program Files\Eclipse Adoptium\jdk-11.0.17.8-hotspot\bin\java.exe''
CreateProcess error=206, Имя файла или его расширение имеет слишком большую длину
У вас к app-global модулю подключено очень много библиотек.
И из-за длинного classpath срабатывает лимит, который есть в Windows. В Gradle до версии 6 была такая проблема.
Другие решения на форуме обычно касались задачи по сборке виджетсета. А у вас ошибка падает на ‘:app-global:compileJava’, что необычно.
Решение - это либо попробовать сократить количество библиотек, подключенных к модулю.
Или что-то из этого попробовать: https://stackoverflow.com/a/59147372/2032468
Или попробовать обновить Gradle в этом проекте до версии 6.
с 6 версией такая ошибка
All of them match the consumer attributes:
- Variant ‘androidRuntimeElements’ capabilities com.google.collections:google-collections:33.3.1-jre and com.google.guava:guava:33.3.1-jre:
- Unmatched attributes:
- Provides org.gradle.category ‘library’ but the consumer didn’t ask for it
- Provides org.gradle.dependency.bundling ‘external’ but the consumer didn’t ask for it
- Provides org.gradle.jvm.environment ‘android’ but the consumer didn’t ask for it
- Provides org.gradle.jvm.version ‘8’ but the consumer didn’t ask for it
- Provides org.gradle.libraryelements ‘jar’ but the consumer didn’t ask for it
- Provides org.gradle.status ‘release’ but the consumer didn’t ask for it
- Provides org.gradle.usage ‘java-runtime’ but the consumer didn’t ask for it
- Variant ‘jreRuntimeElements’ capabilities com.google.collections:google-collections:33.3.1-jre and com.google.guava:guava:33.3.1-jre:
- Unmatched attributes:
- Provides org.gradle.category ‘library’ but the consumer didn’t ask for it
- Provides org.gradle.dependency.bundling ‘external’ but the consumer didn’t ask for it
- Provides org.gradle.jvm.environment ‘standard-jvm’ but the consumer didn’t ask for it
- Provides org.gradle.jvm.version ‘8’ but the consumer didn’t ask for it
- Provides org.gradle.libraryelements ‘jar’ but the consumer didn’t ask for it
- Provides org.gradle.status ‘release’ but the consumer didn’t ask for it
- Provides org.gradle.usage ‘java-runtime’ but the consumer didn’t ask for it