-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Description
When generating the APK using the flutter build apk command and having the infobip_mobilemessaging package integrated, it tells me that I have to use version 1.8.10 of kotlin, but when updating kotlin to that version and trying to generate the apk again, it gives me the following errors
`FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:checkReleaseAarMetadata'.
Could not resolve all files for configuration ':app:releaseRuntimeClasspath'.
Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.10.
Required by:
project :app
> Cannot find a version of 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' that satisfies the version constraints:
Dependency path 'android:app:unspecified' --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.10'
Dependency path 'android:app:unspecified' --> 'android:infobip_mobilemessaging:1.0' (releaseRuntimeElements) --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:{strictly 1.8.10}'
Dependency path 'android:app:unspecified' --> 'com.example.video_compress:video_compress:1.0-SNAPSHOT' (releaseRuntimeElements) --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10'
Constraint path 'android:app:unspecified' --> 'io.flutter.plugins.imagepicker:image_picker_android:1.0-SNAPSHOT' (releaseRuntimeElements) --> 'org.jetbrains.kotlin:kotlin-bom:1.8.22' (platform-runtime) --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22'
Dependency path 'android:app:unspecified' --> 'com.example.video_compress:video_compress:1.0-SNAPSHOT' (releaseRuntimeElements) --> 'com.otaliastudios:transcoder:0.10.5' (releaseRuntimePublication) --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30'
Dependency path 'android:app:unspecified' --> 'com.example.video_compress:video_compress:1.0-SNAPSHOT' (releaseRuntimeElements) --> 'com.otaliastudios:transcoder:0.10.5' (releaseRuntimePublication) --> 'com.otaliastudios.opengl:egloo:0.6.1' (releaseRuntimePublication) --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.20'
Dependency path 'android:app:unspecified' --> 'io.flutter.plugins.imagepicker:image_picker_android:1.0-SNAPSHOT' (releaseRuntimeElements) --> 'androidx.activity:activity:1.7.2' (releaseVariantReleaseRuntimePublication) --> 'androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.1' (releaseVariantReleaseRuntimePublication) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4' (runtimeElements) --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21'
Dependency path 'android:app:unspecified' --> 'io.flutter.plugins.firebase.core:firebase_core:1.0-SNAPSHOT' (releaseRuntimeElements) --> 'io.flutter:flutter_embedding_release:1.0.0-d44b5a94c976fbb65815374f61ab5392a220b084' (runtime) --> 'androidx.window:window-java:1.0.0-beta04' (releaseVariantReleaseRuntimePublication) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4' (jvmRuntimeElements-published) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4' (jvmRuntimeElements-published) --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21'
Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:{strictly 1.8.10}.
Required by:
project :app > project :infobip_mobilemessaging
> Cannot find a version of 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' that satisfies the version constraints:
Dependency path 'android:app:unspecified' --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.10'
Dependency path 'android:app:unspecified' --> 'android:infobip_mobilemessaging:1.0' (releaseRuntimeElements) --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:{strictly 1.8.10}'
Dependency path 'android:app:unspecified' --> 'com.example.video_compress:video_compress:1.0-SNAPSHOT' (releaseRuntimeElements) --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10'
Constraint path 'android:app:unspecified' --> 'io.flutter.plugins.imagepicker:image_picker_android:1.0-SNAPSHOT' (releaseRuntimeElements) --> 'org.jetbrains.kotlin:kotlin-bom:1.8.22' (platform-runtime) --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22'
Dependency path 'android:app:unspecified' --> 'com.example.video_compress:video_compress:1.0-SNAPSHOT' (releaseRuntimeElements) --> 'com.otaliastudios:transcoder:0.10.5' (releaseRuntimePublication) --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30'
Dependency path 'android:app:unspecified' --> 'com.example.video_compress:video_compress:1.0-SNAPSHOT' (releaseRuntimeElements) --> 'com.otaliastudios:transcoder:0.10.5' (releaseRuntimePublication) --> 'com.otaliastudios.opengl:egloo:0.6.1' (releaseRuntimePublication) --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.20'
Dependency path 'android:app:unspecified' --> 'io.flutter.plugins.imagepicker:image_picker_android:1.0-SNAPSHOT' (releaseRuntimeElements) --> 'androidx.activity:activity:1.7.2' (releaseVariantReleaseRuntimePublication) --> 'androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.1' (releaseVariantReleaseRuntimePublication) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4' (runtimeElements) --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21'
Dependency path 'android:app:unspecified' --> 'io.flutter.plugins.firebase.core:firebase_core:1.0-SNAPSHOT' (releaseRuntimeElements) --> 'io.flutter:flutter_embedding_release:1.0.0-d44b5a94c976fbb65815374f61ab5392a220b084' (runtime) --> 'androidx.window:window-java:1.0.0-beta04' (releaseVariantReleaseRuntimePublication) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4' (jvmRuntimeElements-published) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4' (jvmRuntimeElements-published) --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21'`
Environment
- Package Version: infobip_mobilemessaging: 6.3.0
- Kotlin Version: 1.8.10
- Flutter Version: 3.10.0