LINUX.ORG.RU

История изменений

Исправление bryak, (текущая версия) :

$gradle wrapper

FAILURE: Build failed with an exception.

* Where:
Build file '/home/user/media/source_code/kotlin/minimal-android-project/build.gradle' line: 10

* What went wrong:
A problem occurred evaluating root project 'minimal-android-project'.
> Failed to apply plugin [id 'com.android.application']
   > Gradle version 2.2 is required. Current version is 4.4.1. If using the gradle wrapper, try editing the distributionUrl in /home/user/.gradle/daemon/4.4.1/gradle/wrapper/gradle-wrapper.properties to gradle-2.2-all.zip

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Попробовал последовать совету и создать файл

/home/user/.gradle/daemon/4.4.1/gradle/wrapper/gradle-wrapper.properties

с содержимым

distributionUrl=https\://services.gradle.org/distributions/gradle-2.2-all.zip

Но это не помогло

Исходная версия bryak, :

$gradle wrapper

FAILURE: Build failed with an exception.

* Where:
Build file '/home/user/media/source_code/kotlin/minimal-android-project/build.gradle' line: 10

* What went wrong:
A problem occurred evaluating root project 'minimal-android-project'.
> Failed to apply plugin [id 'com.android.application']
   > Gradle version 2.2 is required. Current version is 4.4.1. If using the gradle wrapper, try editing the distributionUrl in /home/user/.gradle/daemon/4.4.1/gradle/wrapper/gradle-wrapper.properties to gradle-2.2-all.zip

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org