#
Android Studio and Gradle

i am trying to generate an APK until my account creation on Google Play Console and I am facing this error: 

C:\dev\flutter\bin\flutter.bat --no-color build apk

 

Running Gradle task 'assembleRelease'...                        

You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply

 

You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply

 

Font asset "FontAwesome.ttf" was tree-shaken, reducing it from 165548 to 972 bytes (99.4% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.

Font asset "Entypo.ttf" was tree-shaken, reducing it from 66200 to 1048 bytes (98.4% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.

Font asset "AntDesign.ttf" was tree-shaken, reducing it from 70344 to 916 bytes (98.7% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.

Font asset "Ionicons.ttf" was tree-shaken, reducing it from 247192 to 1820 bytes (99.3% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.

Font asset "Feather.ttf" was tree-shaken, reducing it from 56228 to 2496 bytes (95.6% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.

Font asset "MaterialCommunityIcons.ttf" was tree-shaken, reducing it from 1147844 to 1616 bytes (99.9% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.

Font asset "MaterialIcons.ttf" was tree-shaken, reducing it from 230384 to 1328 bytes (99.4% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.

Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 2656 bytes (99.8% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.

e: C:/Users/eym_s/androidproject/prayerapp/build/assets_audio_player/.transforms/0a2c9ebc524c56c4e3f5f1557fb80b7a/transformed/out/jars/classes.jar!/META-INF/assets_audio_player_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/eym_s/androidproject/prayerapp/build/assets_audio_player_web/.transforms/3c9dd398646fc65c34d904cbf7780744/transformed/out/jars/classes.jar!/META-INF/assets_audio_player_web_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/eym_s/androidproject/prayerapp/build/fluttertoast/.transforms/d2f9b425ffd5580347894045840271cf/transformed/out/jars/classes.jar!/META-INF/fluttertoast_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/eym_s/androidproject/prayerapp/build/package_info_plus/.transforms/88b1815bfe97f4b85a734156c3356898/transformed/out/jars/classes.jar!/META-INF/package_info_plus_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/eym_s/androidproject/prayerapp/build/share_plus/.transforms/7539ad866e2808537db679cd0c6e0e69/transformed/out/jars/classes.jar!/META-INF/share_plus_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/eym_s/androidproject/prayerapp/build/shared_preferences_android/.transforms/1ea93dd6788e4d30b29f0a317752b8dc/transformed/out/jars/classes.jar!/META-INF/shared_preferences_android_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/eym_s/.gradle/caches/transforms-3/6a6ca96ca93efb8f8c60ca35bd866891/transformed/jetified-play-services-ads-23.4.0/jars/classes.jar!/META-INF/third_party.java_src.protobuf.current.java.com.google.protobuf.kotlin_only_for_use_in_proto_generated_code_its_generator_and_tests.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.9999, expected version is 1.6.0.

e: C:/Users/eym_s/.gradle/caches/transforms-3/6a6ca96ca93efb8f8c60ca35bd866891/transformed/jetified-play-services-ads-23.4.0/jars/classes.jar!/META-INF/third_party.java_src.protobuf.current.java.com.google.protobuf.kotlin_shared_runtime.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.9999, expected version is 1.6.0.

e: C:/Users/eym_s/.gradle/caches/transforms-3/6a6ca96ca93efb8f8c60ca35bd866891/transformed/jetified-play-services-ads-23.4.0/jars/classes.jar!/META-INF/java.com.google.android.gms.libs.filecompliance.proto_file_access_api_type_kt_proto_lite.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.9999, expected version is 1.6.0.

e: C:/Users/eym_s/.gradle/caches/transforms-3/e1afc37be379d34ceba16f34846985f6/transformed/fragment-1.7.1/jars/classes.jar!/META-INF/fragment_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/eym_s/.gradle/caches/transforms-3/3884b892a9a4c25696dbed6de6d190e9/transformed/jetified-activity-1.8.1/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/eym_s/.gradle/caches/transforms-3/b209bc224c5e1596e58b0ed095d8baf6/transformed/jetified-lifecycle-livedata-core-ktx-2.7.0/jars/classes.jar!/META-INF/lifecycle-livedata-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/eym_s/.gradle/caches/transforms-3/9685bef99981e38b04d47d1997e91e7b/transformed/lifecycle-livedata-2.7.0/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/eym_s/.gradle/caches/transforms-3/796d7b84501692ca11f2313e7811d32a/transformed/lifecycle-viewmodel-2.7.0/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/eym_s/.gradle/caches/transforms-3/6d7434f4a5e96790c9d9b3f19e4a9555/transformed/lifecycle-livedata-core-2.7.0/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/eym_s/.gradle/caches/transforms-3/0573ae8f2080632ca269e9b7f6803a13/transformed/lifecycle-runtime-2.7.0/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/eym_s/.gradle/caches/transforms-3/877cbd55e6ee77657f8ef03aba8873bc/transformed/jetified-lifecycle-process-2.7.0/jars/classes.jar!/META-INF/lifecycle-process_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/eym_s/.gradle/caches/modules-2/files-2.1/androidx.lifecycle/lifecycle-common/2.7.0/85334205d65cca70ed0109c3acbd29e22a2d9cb1/lifecycle-common-2.7.0.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/eym_s/.gradle/caches/transforms-3/c33cf2fc56a773f54aa2f8daf824060b/transformed/jetified-lifecycle-viewmodel-savedstate-2.7.0/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/eym_s/.gradle/caches/transforms-3/42523a833492e0721a95b1abd05cb86f/transformed/jetified-core-ktx-1.13.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/eym_s/.gradle/caches/transforms-3/8a8e7104364d5181cf57bb2214291a44/transformed/core-1.13.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/eym_s/.gradle/caches/transforms-3/a9b07cee2da019de1f6806f5c9f1f19c/transformed/jetified-window-1.2.0/jars/classes.jar!/META-INF/window_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/eym_s/.gradle/caches/transforms-3/07dfa6e15027122b5fa0ebd1ef705117/transformed/jetified-window-java-1.2.0/jars/classes.jar!/META-INF/window-java_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/eym_s/.gradle/caches/transforms-3/64cfe8d41acf8e619a8f7a165df89ab0/transformed/jetified-ads-adservices-java-1.0.0-beta05/jars/classes.jar!/META-INF/ads-adservices-java_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/eym_s/.gradle/caches/transforms-3/ca92a14e02d07c590f1a4afb490d6374/transformed/jetified-ads-adservices-1.0.0-beta05/jars/classes.jar!/META-INF/ads-adservices_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/eym_s/.gradle/caches/transforms-3/2be596585fa2a82970a08fccfc88f182/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/eym_s/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-jvm/1.9.1/b17951747e38bf3986a24431b9ba0d039958aa5f/annotation-jvm-1.9.1.jar!/META-INF/annotation.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.6.0.

e: C:/Users/eym_s/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-android/1.7.1/c2d86b569f10b7fc7e28d3f50c0eed97897d77a7/kotlinx-coroutines-android-1.7.1.jar!/META-INF/kotlinx-coroutines-android.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/eym_s/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core-jvm/1.7.1/63a0779cf668e2a47d13fda7c3b0c4f8dc7762f4/kotlinx-coroutines-core-jvm-1.7.1.jar!/META-INF/kotlinx-coroutines-core.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/eym_s/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.9.24/9928532f12c66ad816a625b3f9984f8368ca6d2b/kotlin-stdlib-1.9.24.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.6.0.

e: C:/Users/eym_s/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.9.24/9928532f12c66ad816a625b3f9984f8368ca6d2b/kotlin-stdlib-1.9.24.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.9.0, expected version is 1.6.0.

e: C:/Users/eym_s/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.9.24/9928532f12c66ad816a625b3f9984f8368ca6d2b/kotlin-stdlib-1.9.24.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.9.0, expected version is 1.6.0.

 

FAILURE: Build completed with 2 failures.

 

1: Task failed with an exception.

-----------

* What went wrong:

Execution failed for task ':assets_audio_player_web:verifyReleaseResources'.

> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action

   > Android resource linking failed

     ERROR:C:\Users\eym_s\androidproject\prayerapp\build\assets_audio_player_web\intermediates\merged_res\release\values\values.xml:194: AAPT: error: resource android:attr/lStar not found.

 

 

* 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.

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

 

2: Task failed with an exception.

-----------

* What went wrong:

Execution failed for task ':external_app_launcher:verifyReleaseResources'.

> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action

   > Android resource linking failed

     ERROR:C:\Users\eym_s\androidproject\prayerapp\build\external_app_launcher\intermediates\merged_res\release\values\values.xml:194: AAPT: error: resource android:attr/lStar not found.

 

 

* 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 21s

Running Gradle task 'assembleRelease'...                           22,3s

 

┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────┐

│ [!] Your project requires a newer version of the Kotlin Gradle plugin.                       │

│ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then   │

│ update the                                                                                   │

│ version number of the plugin with id "org.jetbrains.kotlin.android" in the plugins block of  │

│ C:\Users\eym_s\androidproject\prayerapp\android\settings.gradle.                             │

│                                                                                              │

│ Alternatively (if your project was created before Flutter 3.19), update                      │

│ C:\Users\eym_s\androidproject\prayerapp\android\build.gradle                                 │

│ ext.kotlin_version = '<latest-version>'                                                      │

└──────────────────────────────────────────────────────────────────────────────────────────────┘

 

Gradle task assembleRelease failed with exit code 1

ATTACHED FILES

Asked 4 months ago on December 3, 2024 10:09 AM Comments 2 times


  1. Generic placeholder image

    kevin replied

    Hello

    Can we connect through Chrom Remote desktop

    Thanks & Regards
    - Kevin
Recent Tickets
Backend not working after... 1 month ago on March 27, 2025 7:15 AM river is not receiving ri... 2 months ago on January 29, 2025 9:03 AM Unable to setup back end ... 1 month ago on March 27, 2025 3:48 AM Friend Request and Distan... 1 month ago on March 18, 2025 4:11 AM Build Faild 1 month ago on March 9, 2025 2:15 PM Error during build... 1 month ago on March 4, 2025 8:51 PM help 1 month ago on March 3, 2025 1:13 AM Connection Refused Error... 2 months ago on February 27, 2025 4:47 AM Flutter app issues... 2 months ago on February 26, 2025 10:49 AM I Am Getting 403 Access D... 2 months ago on February 17, 2025 11:22 AM