Error - Gradle and Android Studio
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 "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 "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 "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 "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 "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 "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/newprayerapp/build/assets_audio_player/.transforms/22d00a3ab1a621a58fbe5b00a882032e/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/newprayerapp/build/assets_audio_player_web/.transforms/4a86bddf8fccc64190e1105bc2421461/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/newprayerapp/build/fluttertoast/.transforms/9204accf4517dd840675e0132e5bbe38/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/newprayerapp/build/package_info_plus/.transforms/a3dbae5a94f26facda62bbef5ce94e08/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/newprayerapp/build/share_plus/.transforms/2534f93c96b176df5015704c9cb79f65/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/newprayerapp/build/shared_preferences_android/.transforms/72b3980f477de0421bd35853d4c8a98e/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 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\newprayerapp\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.
* Get more help at https://help.gradle.org
BUILD FAILED in 53s
Running Gradle task 'assembleRelease'... 54,2s
┌─ 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\newprayerapp\android\settings.gradle. │
│ │
│ Alternatively (if your project was created before Flutter 3.19), update │
│ C:\Users\eym_s\androidproject\newprayerapp\android\build.gradle │
│ ext.kotlin_version = '<latest-version>' │
└──────────────────────────────────────────────────────────────────────────────────────────────┘
Gradle task assembleRelease failed with exit code 1
Process finished with exit code 1
ATTACHED FILES
Asked 4 months ago on December 3, 2024 11:11 AM Comments 16 times
kevin replied 4 months ago on December 4, 2024 11:16 AM
Hello
You need to take the image of square ratio (example = 1080:1080 px )
- Kevin
Eymard Silva replied 4 months ago on December 4, 2024 10:14 AM
Hey Kevin, an last question:
Which is the correct size of the image on the admin panel for the audios?
kevin replied 4 months ago on December 4, 2024 7:43 AM
Hi, Your concern looks resolved now. Please check and feel free to write to us again if you have any questions or need further assistance. Also, can you please spare a moment to rate and review us on Codecanyon - https://codecanyon.net/downloads?
It makes a world of difference to read the positive responses from our premium item owners. Thank you and we appreciate you! :)
- Kevin
Eymard Silva replied 4 months ago on December 4, 2024 7:27 AM
Hi Kevin, we can connect?
036527975076
kevin replied 4 months ago on December 3, 2024 1:19 PM
Hello Eymard Silva,
Sorry for the inconvenience, let connect through Chrome Remote Desktop tomorrow during our working hour (Mon-FRI 9:00 AM to 6:00 PM +5:30 ist timezone) as our Working Hour for today is over.
- Kevin
Eymard Silva replied 4 months ago on December 3, 2024 1:08 PM
Stiil getting errors. And as you can see on the image, the enviroment was set:
C:\dev\flutter\bin\flutter.bat --no-color build apk
╔════════════════════════════════════════════════════════════════════════════╗
║ Welcome to Flutter! - https://flutter.dev ║
║ ║
║ The Flutter tool uses Google Analytics to anonymously report feature usage ║
║ statistics and basic crash reports. This data is used to help improve ║
║ Flutter tools over time. ║
║ ║
║ Flutter tool analytics are not sent on the very first run. To disable ║
║ reporting, type 'flutter config --no-analytics'. To display the current ║
║ setting, type 'flutter config'. If you opt out of analytics, an opt-out ║
║ event will be sent, and then no further information will be sent by the ║
║ Flutter tool. ║
║ ║
║ By downloading the Flutter SDK, you agree to the Google Terms of Service. ║
║ The Google Privacy Policy describes how data is handled in this service. ║
║ ║
║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and ║
║ crash reports to Google. ║
║ ║
║ Read about data we send with crash reports: ║
║ https://flutter.dev/to/crash-reporting ║
║ ║
║ See Google's privacy policy: ║
║ https://policies.google.com/privacy ║
║ ║
║ To disable animations in this tool, use ║
║ 'flutter config --no-cli-animations'. ║
╚════════════════════════════════════════════════════════════════════════════╝
Resolving dependencies...
Downloading packages...
_fe_analyzer_shared 67.0.0 (77.0.0 available)
analyzer 6.4.1 (7.0.0 available)
async 2.11.0 (2.12.0 available)
boolean_selector 2.1.1 (2.1.2 available)
build_runner 2.4.11 (2.4.13 available)
build_runner_core 7.3.1 (7.3.2 available)
cached_network_image 3.3.1 (3.4.1 available)
cached_network_image_platform_interface 4.0.0 (4.1.1 available)
cached_network_image_web 1.2.0 (1.3.1 available)
characters 1.3.0 (1.3.1 available)
clock 1.1.1 (1.1.2 available)
code_builder 4.10.0 (4.10.1 available)
collection 1.18.0 (1.19.1 available)
! connectivity_plus 5.0.1 (overridden) (6.1.0 available)
connectivity_plus_platform_interface 1.2.4 (2.0.1 available)
dart_style 2.3.6 (3.0.0 available)
fake_async 1.3.1 (1.3.2 available)
flutter_cache_manager 3.3.1 (3.4.1 available)
flutter_inappwebview 6.0.0 (6.1.5 available)
flutter_inappwebview_android 1.0.13 (1.1.3 available)
flutter_inappwebview_ios 1.0.13 (1.1.2 available)
flutter_inappwebview_macos 1.0.11 (1.1.2 available)
flutter_inappwebview_platform_interface 1.0.10 (1.3.0+1 available)
flutter_inappwebview_web 1.0.8 (1.1.2 available)
http_parser 4.0.2 (4.1.1 available)
! intl 0.17.0 (overridden) (0.20.1 available)
js 0.6.7 (0.7.1 available)
> leak_tracker 10.0.5 (was 10.0.4) (10.0.8 available)
> leak_tracker_flutter_testing 3.0.5 (was 3.0.3) (3.0.9 available)
matcher 0.12.16+1 (0.12.17 available)
> material_color_utilities 0.11.1 (was 0.8.0) (0.12.0 available)
> meta 1.15.0 (was 1.12.0) (1.16.0 available)
mime 1.0.6 (2.0.0 available)
path 1.9.0 (1.9.1 available)
path_provider_android 2.2.10 (2.2.14 available)
rxdart 0.27.7 (0.28.0 available)
shared_preferences_android 2.3.2 (2.3.4 available)
shelf 1.4.1 (1.4.2 available)
sqflite 2.3.3+1 (2.4.1 available)
sqflite_common 2.5.4 (2.5.4+6 available)
stack_trace 1.11.1 (1.12.0 available)
string_scanner 1.2.0 (1.4.0 available)
synchronized 3.1.0+1 (3.3.0+3 available)
> test_api 0.7.2 (was 0.7.0) (0.7.4 available)
typed_data 1.3.2 (1.4.0 available)
url_launcher_android 6.3.9 (6.3.14 available)
uuid 3.0.7 (4.5.1 available)
> vm_service 14.2.5 (was 14.2.1) (15.0.0 available)
webview_flutter 4.8.0 (4.10.0 available)
webview_flutter_android 3.16.8 (4.1.0 available)
webview_flutter_wkwebview 3.14.0 (3.16.3 available)
win32 5.5.4 (5.9.0 available)
Changed 6 dependencies!
52 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
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
Warning: This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
Note: C:\Users\eym_s\AppData\Local\Pub\Cache\hosted\pub.dev\external_app_launcher-4.0.0\android\src\main\java\com\example\launchexternalapp\LaunchexternalappPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
warning: unknown enum constant Mode.LOCAL
reason: class file for com.facebook.infer.annotation.Nullsafe$Mode not found
warning: unknown enum constant Mode.LOCAL
warning: unknown enum constant Mode.LOCAL
warning: unknown enum constant Mode.LOCAL
warning: unknown enum constant Mode.LOCAL
warning: unknown enum constant Mode.LOCAL
warning: unknown enum constant Mode.LOCAL
warning: unknown enum constant Mode.LOCAL
warning: unknown enum constant Mode.LOCAL
warning: unknown enum constant Mode.LOCAL
warning: unknown enum constant Mode.LOCAL
warning: unknown enum constant Mode.LOCAL
warning: unknown enum constant Mode.LOCAL
13 warnings
Note: Some input files use or override 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: C:\Users\eym_s\AppData\Local\Pub\Cache\hosted\pub.dev\google_mobile_ads-5.2.0\android\src\main\java\io\flutter\plugins\googlemobileads\AdMessageCodec.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override 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: C:\Users\eym_s\AppData\Local\Pub\Cache\hosted\pub.dev\store_redirect-2.0.3\android\src\main\java\com\danieldallos\storeredirect\StoreRedirectPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
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 "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 "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 "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 "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 "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.
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 "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.
FAILURE: Build 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\newprayerapp\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.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 47s
ATTACHED FILES
kevin replied 4 months ago on December 3, 2024 12:55 PM
Please confirm the steps before running the app
- set the path in the Environment for the Flutter 3.22.3 (if the path is set please restart the System)
step to set path : https://stackoverflow.com/questions/60212125/flutter-install-in-windows-environment-variable
- After Finishing the above step run the following commans in Android Studio
1 - flutter clean
2 - flutter pub get
After Completing all the above steps try to build.
- Kevin
Eymard Silva replied 4 months ago on December 3, 2024 12:33 PM
Ive provided by text because we cannot share files here. Only image are supported.
Eymard Silva replied 4 months ago on December 3, 2024 12:31 PM
kevin replied 4 months ago on December 3, 2024 12:25 PM
Can you provide us the pubspec.yaml file of the project
- Kevin
Eymard Silva replied 4 months ago on December 3, 2024 12:19 PM
Still getting errors:
C:\dev\flutter\bin\flutter.bat --no-color build apk
╔════════════════════════════════════════════════════════════════════════════╗
║ Welcome to Flutter! - https://flutter.dev ║
║ ║
║ The Flutter tool uses Google Analytics to anonymously report feature usage ║
║ statistics and basic crash reports. This data is used to help improve ║
║ Flutter tools over time. ║
║ ║
║ Flutter tool analytics are not sent on the very first run. To disable ║
║ reporting, type 'flutter config --no-analytics'. To display the current ║
║ setting, type 'flutter config'. If you opt out of analytics, an opt-out ║
║ event will be sent, and then no further information will be sent by the ║
║ Flutter tool. ║
║ ║
║ By downloading the Flutter SDK, you agree to the Google Terms of Service. ║
║ The Google Privacy Policy describes how data is handled in this service. ║
║ ║
║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and ║
║ crash reports to Google. ║
║ ║
║ Read about data we send with crash reports: ║
║ https://flutter.dev/to/crash-reporting ║
║ ║
║ See Google's privacy policy: ║
║ https://policies.google.com/privacy ║
║ ║
║ To disable animations in this tool, use ║
║ 'flutter config --no-cli-animations'. ║
╚════════════════════════════════════════════════════════════════════════════╝
Resolving dependencies...
Downloading packages...
_fe_analyzer_shared 67.0.0 (77.0.0 available)
analyzer 6.4.1 (7.0.0 available)
async 2.11.0 (2.12.0 available)
boolean_selector 2.1.1 (2.1.2 available)
build_runner 2.4.11 (2.4.13 available)
build_runner_core 7.3.1 (7.3.2 available)
cached_network_image 3.3.1 (3.4.1 available)
cached_network_image_platform_interface 4.0.0 (4.1.1 available)
cached_network_image_web 1.2.0 (1.3.1 available)
characters 1.3.0 (1.3.1 available)
clock 1.1.1 (1.1.2 available)
code_builder 4.10.0 (4.10.1 available)
collection 1.18.0 (1.19.1 available)
! connectivity_plus 5.0.1 (overridden) (6.1.0 available)
connectivity_plus_platform_interface 1.2.4 (2.0.1 available)
dart_style 2.3.6 (3.0.0 available)
fake_async 1.3.1 (1.3.2 available)
flutter_cache_manager 3.3.1 (3.4.1 available)
flutter_inappwebview 6.0.0 (6.1.5 available)
flutter_inappwebview_android 1.0.13 (1.1.3 available)
flutter_inappwebview_ios 1.0.13 (1.1.2 available)
flutter_inappwebview_macos 1.0.11 (1.1.2 available)
flutter_inappwebview_platform_interface 1.0.10 (1.3.0+1 available)
flutter_inappwebview_web 1.0.8 (1.1.2 available)
http_parser 4.0.2 (4.1.1 available)
! intl 0.17.0 (overridden) (0.20.1 available)
js 0.6.7 (0.7.1 available)
> leak_tracker 10.0.5 (was 10.0.4) (10.0.8 available)
> leak_tracker_flutter_testing 3.0.5 (was 3.0.3) (3.0.9 available)
matcher 0.12.16+1 (0.12.17 available)
> material_color_utilities 0.11.1 (was 0.8.0) (0.12.0 available)
> meta 1.15.0 (was 1.12.0) (1.16.0 available)
mime 1.0.6 (2.0.0 available)
path 1.9.0 (1.9.1 available)
path_provider_android 2.2.10 (2.2.14 available)
rxdart 0.27.7 (0.28.0 available)
shared_preferences_android 2.3.2 (2.3.4 available)
shelf 1.4.1 (1.4.2 available)
sqflite 2.3.3+1 (2.4.1 available)
sqflite_common 2.5.4 (2.5.4+6 available)
stack_trace 1.11.1 (1.12.0 available)
string_scanner 1.2.0 (1.4.0 available)
synchronized 3.1.0+1 (3.3.0+3 available)
> test_api 0.7.2 (was 0.7.0) (0.7.4 available)
typed_data 1.3.2 (1.4.0 available)
url_launcher_android 6.3.9 (6.3.14 available)
uuid 3.0.7 (4.5.1 available)
> vm_service 14.2.5 (was 14.2.1) (15.0.0 available)
webview_flutter 4.8.0 (4.10.0 available)
webview_flutter_android 3.16.8 (4.1.0 available)
webview_flutter_wkwebview 3.14.0 (3.16.3 available)
win32 5.5.4 (5.9.0 available)
Changed 6 dependencies!
52 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
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
Note: Some input files use or override 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.
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 "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 "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 "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 "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 "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-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.
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.
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\newprayerapp\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\newprayerapp\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 1m 13s
Running Gradle task 'assembleRelease'... 74,1s
Gradle task assembleRelease failed with exit code 1
kevin replied 4 months ago on December 3, 2024 11:39 AM
okay, if the issue still occurs please let us know.
- Kevin
Eymard Silva replied 4 months ago on December 3, 2024 11:33 AM
Ok, downloading the downgraded Flutter version.
kevin replied 4 months ago on December 3, 2024 11:29 AM
Hello
Try to run the Project using the below mention Flutter version.
Flutter version : 3.22.3
If the issue still occurs, let us know.
- Kevin
Eymard Silva replied 4 months ago on December 3, 2024 11:17 AM
C:\Users\eym_s>dart --version
Dart SDK version: 3.5.4 (stable) (Wed Oct 16 16:18:51 2024 +0000) on "windows_x64"
Flutter 3.24.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision dec2ee5c1f (3 weeks ago) • 2024-11-13 11:13:06 -0800
Engine • revision a18df97ca5
Tools • Dart 3.5.4 • DevTools 2.37.3
kevin replied 4 months ago on December 3, 2024 11:15 AM
Hello Eymard Silva
Can you please provide the Flutter and Dart version .
- Kevin