underwindfall / NFCAndroid

This is a project to using android HCE by using Type-4-Tag Message to working both in iOS and Android
MIT License
288 stars 56 forks source link

Does this work on AS 3.5.3 #2

Closed justdan0227 closed 4 years ago

justdan0227 commented 4 years ago

Trying this out on AS 3.5.3 and getting a build error:

Could not find org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.3.21. Required by: project :buildSrc Search in build.gradle files

underwindfall commented 4 years ago

@justdan0227

build.gradle.kts should contain

plugins {
    `kotlin-dsl`
}
// Required since Gradle 4.10+.
repositories {
    jcenter()
}

The kotlin-dsl plugin now requires a repository to be declared

With Kotlin 1.3.61, the Kotlin Gradle Plugin driving the kotlin compiler requires extra dependencies that aren't required by Gradle Kotlin DSL scripts alone and aren't embedded into Gradle.

This can be fixed by adding a repository that contains Kotlin compiler dependencies on the project where the kotlin-dsl plugin is applied: repositories { jcenter() }

====================================

It's been fixed.