I’m trying to add
cocoapods
plugin to my very simple library project and it fails at:
Execution failed for task ':podspec'.
> The Gradle wrapper is required to run the build from Xcode.
Please run the same command with `-Pkotlin.native.cocoapods.generate.wrapper=true` or run the `:wrapper` task to generate the wrapper manually.
As suggested I tried to run
gradle wrapper
and it fails:
An exception occurred applying plugin request [id: 'org.jetbrains.kotlin.multiplatform', version: '1.4.10']
> Failed to apply plugin [id 'org.jetbrains.kotlin.multiplatform']
> The current Gradle version 5.4.1 is not compatible with the Kotlin Multiplatform plugin. Please use Gradle 6.0 or newer, or the previous version of the Kotlin plugin.
Why is that happening? In my
gradle-wrapper.properties
I’m using
distributionUrl=https\:<//services.gradle.org/distributions/gradle-6.6.1-bin.zip>