skip to Main Content

The app was made using Flutter 3.7.7 and there is some depencies that are not working very well. When i run the app in my device via USB it’s work perfectly. But always when i try to build a realese it’s give me the following error:

Note: C:UsersF�bio BrasileiroAppDataLocalPubCachehostedpub.devcloud_firestore-4.8.0androidsrcmainjavaioflutterpluginsfirebasefirestoreFlutterFirebaseFirestoreMessageCodec.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:UsersF�bio BrasileiroAppDataLocalPubCachehostedpub.devcloud_firestore-4.8.0androidsrcmainjavaioflutterpluginsfirebasefirestoreFlutterFirebaseFirestoreMessageCodec.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: C:UsersF�bio BrasileiroAppDataLocalPubCachehostedpub.devflutter_zoom_videosdk-1.7.0androidsrcmainjavacomflutterzoomvideosdkFlutterZoomVideoSdkPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
e: C:/Users/F�bio Brasileiro/.gradle/caches/transforms-3/a2a101baaed768f358d4d8f74655776a/transformed/jetified-activity-1.7.0/jars/classes.jar!/META-INF/activity_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 
1.8.0, expected version is 1.6.0.
e: C:/Users/F�bio Brasileiro/.gradle/caches/transforms-3/b365cbbdc580e3f264ee929243b93252/transformed/lifecycle-livedata-2.6.1/jars/classes.jar!/META-INF/lifecycle-livedata_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/F�bio Brasileiro/.gradle/caches/transforms-3/4817204ab7acc54a5f2c041737b3ebbd/transformed/lifecycle-viewmodel-2.6.1/jars/classes.jar!/META-INF/lifecycle-viewmodel_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/F�bio Brasileiro/.gradle/caches/transforms-3/fb13d994a9c57675c3797fdb5edd3dc7/transformed/lifecycle-livedata-core-2.6.1/jars/classes.jar!/META-INF/lifecycle-livedata-core_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/F�bio Brasileiro/.gradle/caches/transforms-3/7c1fedf36a262d80afd033982dc78c54/transformed/jetified-lifecycle-viewmodel-savedstate-2.6.1/jars/classes.jar!/META-INF/lifecycle-viewmodel-savedstate_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/F�bio Brasileiro/.gradle/caches/transforms-3/f7cdfb73eaf400e8b2c346bb8e6d73ec/transformed/jetified-core-ktx-1.10.1/jars/classes.jar!/META-INF/core-ktx_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/F�bio Brasileiro/.gradle/caches/transforms-3/9c9ab1a476c120097a79d748cec7161f/transformed/core-1.10.1/jars/classes.jar!/META-INF/core_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected 
version is 1.6.0.
e: C:/Users/F�bio Brasileiro/.gradle/caches/transforms-3/ad9f1a2743e3eaf4aa449a5b2d8828b3/transformed/lifecycle-runtime-2.6.1/jars/classes.jar!/META-INF/lifecycle-runtime_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/F�bio Brasileiro/.gradle/caches/modules-2/files-2.1/androidx.lifecycle/lifecycle-common/2.6.1/10f354fdb64868baecd67128560c5a0d6312c495/lifecycle-common-2.6.1.jar!/META-INF/lifecycle-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/F�bio Brasileiro/.gradle/caches/transforms-3/acc0a4ed60db051ae6d4cb2c458aa935/transformed/jetified-savedstate-1.2.1/jars/classes.jar!/META-INF/savedstate_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/F�bio Brasileiro/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-jvm/1.6.0/a7257339a052df0f91433cf9651231bbb802b502/annotation-jvm-1.6.0.jar!/META-INF/annotation.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/F�bio Brasileiro/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.8.21/43d50ab85bc7587adfe3dda3dbe579e5f8d51265/kotlin-stdlib-1.8.21.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/F�bio Brasileiro/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.8.21/43d50ab85bc7587adfe3dda3dbe579e5f8d51265/kotlin-stdlib-1.8.21.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/F�bio Brasileiro/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.8.21/43d50ab85bc7587adfe3dda3dbe579e5f8d51265/kotlin-stdlib-1.8.21.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/F�bio Brasileiro/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.8.21/d749cd5ae25da36d06e5028785038e24f9d37976/kotlin-stdlib-common-1.8.21.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.

That is my pubspec file:

environment:
  sdk: '>=2.19.4 <3.0.0'

dependencies:
  flutter:
    sdk: flutter
  http: ^0.13.4
  flutter_secure_storage: ^8.0.0
  shared_preferences: ^2.1.1
  auth_buttons: ^3.0.0
  google_sign_in: ^6.0.2
  flutter_facebook_auth: ^5.0.11
  postgres: ^2.6.1
  bcrypt: ^1.1.3
  flutter_animate: ^4.1.1+1
  page_transition: ^2.0.9
  image_picker: ^0.8.7+5
  validatorless: ^1.2.3
  crypto: ^3.0.3
  google_nav_bar: ^5.0.6
  rxdart: ^0.27.7
  rflutter_alert: ^2.0.6
  get_it: ^7.6.0
  cloud_firestore: ^4.8.0
  google_mobile_ads: ^3.0.0
  firebase_core: ^2.13.1
  flutter_zoom_videosdk: 
  cupertino_icons: ^1.0.2
  flutter_hooks: ^0.18.6
  dart_jsonwebtoken: ^2.4.2
  shared_value: ^3.0.0
  events_emitter: ^0.5.2
  permission_handler: ^10.2.0
  google_fonts: ^3.0.0

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^2.0.0

And for more information about my app. That is my gradlew file:

defaultConfig {

    minSdkVersion 24
    targetSdkVersion 33
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
    
}

buildTypes {
    release {
        // TODO: Add your own signing config for the release build.
        // Signing with the debug keys for now, so `flutter run --release` works.
        signingConfig signingConfigs.debug
         ext.kotlin_version = '1.4.32'
    }
}

}

flutter {
source ‘../..’
}

dependencies {

implementation "us.zoom.videosdk:ZoomVideoSDK:0.0.1-beta"
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.8.21"

I tried the following snipets:

./gradlew clean

and

../gradlew assembleRelease

but didn’t work.

I need to run

flutter build apk --release

and work in my cellphone.

2

Answers


  1. Look it says C:/Users/F�bio Brasileiro/.gradle/caches/transforms-3/a2a101baaed768f358d4d8f74655776a/transformed/jetified-activity-1.7.0/jars/classes.jar!/META-INF/activity_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0
    This means that your Kotlin should be 1.6.0. Go to Android, then go locate build.gradle file, inside there look at the top

    buildscript {
    
        ext.kotlin_version = '1.6.10'
        repositories {
            google()
            mavenCentral()
        }
    

    make that ext.kotlin_version = '1.6.0'
    Save, then try building your apk, but before run flutter clean. If it does not help, try to upgrade your dependencies, with flutter pub upgrade, then try building apk

    Login or Signup to reply.
  2. Follow these steps:

    Verify the Kotlin version:

    In your app’s build.gradle file, ensure that the Kotlin version specified in the dependencies matches the version expected by the Zoom Video SDK. Check the org.jetbrains.kotlin:kotlin-stdlib dependency, and make sure it aligns with the required version.

    Update Kotlin version:

    If the Kotlin version in your app is older than the version expected by the Zoom Video SDK, update the Kotlin version to match. You can find the latest version of Kotlin on the official Kotlin website or in the Kotlin GitHub repository. Update the Kotlin version in your build.gradle file.

    Clean the project:

    Run the following command to clean your project and remove any previously built artifacts

    flutter clean
    

    Rebuild the project:

    After cleaning the project, rebuild it using the following command:

    flutter build apk --release
    

    Resolve other dependency conflicts:
    If you still encounter issues after updating the Kotlin version, there might be other dependency conflicts in your project. Ensure that all dependencies are compatible with each other and with the Flutter version you’re using. Check for any warnings or errors related to deprecated APIs, unchecked operations, or other compatibility issues mentioned during the build process.

    Test on a physical device:

    Once the build process completes successfully, test the release build on a physical device to ensure that the integration with the Zoom Video SDK works as expected.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search