adaptyteam / AdaptySDK-Flutter

SDK for growing mobile in-app purchases
https://docs.adapty.io/docs/quickstart
MIT License
95 stars 17 forks source link

Error on building for Android #27

Closed Lyokone closed 3 years ago

Lyokone commented 3 years ago

After adding the SDK I get this error while trying to launch my app:

e: /Users/guillaume/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/adapty_flutter-1.0.3/android/src/main/kotlin/com/adapty/flutter/AdaptyFlutterPlugin.kt: (239, 42): Expecting an argument
e: /Users/guillaume/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/adapty_flutter-1.0.3/android/src/main/kotlin/com/adapty/flutter/AdaptyFlutterPlugin.kt: (207, 63): Unresolved reference: from
e: /Users/guillaume/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/adapty_flutter-1.0.3/android/src/main/kotlin/com/adapty/flutter/AdaptyFlutterPlugin.kt: (489, 60): Unresolved reference: from

How can I solve this? Thanks.

Lyokone commented 3 years ago

Solved it by upgrading my Kotlin version in build.gradle

buildscript {
    ext.kotlin_version = '1.4.10'
vladd-g commented 3 years ago

@Lyokone yes, that's the solution