line / flutter_line_sdk

A Flutter plugin that lets developers access LINE's native SDKs in Flutter apps with Dart.
https://developers.line.biz/
Apache License 2.0
213 stars 43 forks source link

Update Kotlin Version to 1.5.32 #72

Closed tatsutakein closed 1 year ago

tatsutakein commented 1 year ago

Issue

Overview

I tried to use the flutter_line_sdk library but encountered an error.

To resolve the issue, please update the Kotlin version to 1.5.32, which is the latest in the 1.5.x family. Additionally, set compileSdkVersion to 31 to ensure that the example Android build passes successfully.

Supplementary information included the following error message.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
   > One or more issues found when checking AAR metadata values:

     The minCompileSdk (31) specified in a
     dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
     is greater than this module's compileSdkVersion (android-28).
     Dependency: androidx.window:window-java:1.0.0-beta04.
     AAR metadata file: /Users/r_takeuchi/.gradle/caches/transforms-3/b5421194365f75bbfbaee57983ed7804/transformed/jetified-window-java-1.0.0-beta04/META-INF/com/android/build/gradle/aar-metadata.properties.

     The minCompileSdk (31) specified in a
     dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
     is greater than this module's compileSdkVersion (android-28).
     Dependency: androidx.window:window:1.0.0-beta04.
     AAR metadata file: /Users/r_takeuchi/.gradle/caches/transforms-3/d1d2a299e8fde4c5c49d9224fa1901d6/transformed/jetified-window-1.0.0-beta04/META-INF/com/android/build/gradle/aar-metadata.properties.

* 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

BUILD FAILED in 757ms

┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a higher compileSdkVersion.                                      │
│ Fix this issue by bumping the compileSdkVersion in                                         │
│ /Users/xxx/xxx/flutter_line_sdk/example/android/app/build.gradle: │
│ android {                                                                                  │
│   compileSdkVersion 31                                                                     │
│ }                                                                                          │
└────────────────────────────────────────────────────────────────────────────────────────────┘
Exception: Gradle task assembleDebug failed with exit code 1
onevcat commented 1 year ago

@plateaukao Do you think there is a better way to not pin our Kotlin to a certain version, but accept/respect the host app setting?

plateaukao commented 1 year ago

Hi, @tatsutakein Thanks for sending this pull request! I will merge it to master branch for now, and try to update related versions to more up-to-date ones later, and then have a new release for flutter_line_sdk.