Ticket Details

Con't find an answer?

Need Assistance? Submit a Support Ticket

Submit a Support Ticket
Tikolo Olawale
Tikolo Olawale 13 Oct 2024
DTLive - Flutter App (Android - iOS - Website ) Movies - TV Series - Live TV - OTT - Admin Panel
Closed public

Q : Execution failed for task ':flutter_cast_video:compileReleaseKotlin'

andyuzor@Olumurphys-MacBook-Pro YourAppName % flutter build apk


Font asset "CupertinoIcons.ttf" was tree-shaken, reducing it from 257628 to 1752 bytes (99.3% 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 4044 bytes (99.8% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.

warning: [options] source value 8 is obsolete and will be removed in a future release

warning: [options] target value 8 is obsolete and will be removed in a future release

warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.

3 warnings

warning: [options] source value 8 is obsolete and will be removed in a future release

warning: [options] target value 8 is obsolete and will be removed in a future release

warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

3 warnings

warning: [options] source value 8 is obsolete and will be removed in a future release

warning: [options] target value 8 is obsolete and will be removed in a future release

warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.

3 warnings


FAILURE: Build failed with an exception.


* What went wrong:

Execution failed for task ':flutter_cast_video:compileReleaseKotlin'.

> Inconsistent JVM-target compatibility detected for tasks 'compileReleaseJavaWithJavac' (1.8) and 'compileReleaseKotlin' (21).


  Consider using JVM Toolchain: https://kotl.in/gradle/jvm/toolchain

  Learn more about JVM-target validation: https://kotl.in/gradle/jvm/target-validation 


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

Running Gradle task 'assembleRelease'...                           69.5s

Gradle task assembleRelease failed with exit code 1


Please help see to the error bolded above I have been on it for over 3days now!


The error is to build debug apk.

Add Attachments .png  .jpg  .jpeg  .docx  .mp4  .mp3  .pdf  .zip  .sql
Replied (34) 21–25 of 34
Tikolo Olawale
Tikolo Olawale 17 Oct 2024, 12:35 AM

1 129 045 585

Can you please connect by 12:00 pm that’s the next 25 mins pls

Tikolo Olawale
Tikolo Olawale 16 Oct 2024, 7:30 AM

1 129 045 585

Mr. Priyank
Mr. Priyank employee 16 Oct 2024, 6:48 AM

Can you please share anydesk Id ?

Regards, Mr. Priyank

Tikolo Olawale
Tikolo Olawale 16 Oct 2024, 6:33 AM

/Users/andyuzor/FlutterDev/flutter/bin/flutter --no-color build apk


Running Gradle task 'assembleRelease'...                        


FAILURE: Build failed with an exception.


* Where:

Build file '/Users/andyuzor/Downloads/PROSPAVIEW SCRIPT FILES/Mainfiles_1.6/Appcode/YourAppName/android/app/build.gradle' line: 2


* What went wrong:

An exception occurred applying plugin request [id: 'com.android.application']

> Failed to apply plugin 'com.android.internal.version-check'.

   > Minimum supported Gradle version is 8.4. Current version is 7.3.3. If using the gradle wrapper, try editing the distributionUrl in /Users/andyuzor/Downloads/PROSPAVIEW SCRIPT FILES/Mainfiles_1.6/Appcode/YourAppName/android/gradle/wrapper/gradle-wrapper.properties to gradle-8.4-all.zip


* 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 4m 41s

Running Gradle task 'assembleRelease'...                          282.0s

Gradle task assembleRelease failed with exit code 1


Mr. Priyank
Mr. Priyank employee 16 Oct 2024, 4:09 AM

Hi,

Please follow the steps below and check again:

Steps:

  1. Open android/gradle/wrapper/gradle-wrapper.properties.

  2. Update the distributionUrl to a newer version of Gradle that supports Java 17. For example:

    distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip

    Gradle 7.3 and higher support Java 17. You can check for newer Gradle versions on the official Gradle releases page.

Regards, Mr. Priyank

Showing 21–25 of 34 replies

Support is Online

Office hours

Monday – Friday
10:00 AM – 06:00 PM
IST (GMT +5:30)

Office time --:-- --
Your time --:-- --
Documentation

Explore Our Support Documentation

Whether you're troubleshooting an issue or looking for step-by-step guidance, our resources are designed to empower you with the knowledge you need

Back To Top