HelpDesk

HelpDesk Support System

DTLive - Flutter App (Android - iOS - Website ) Movies - TV Series - Live TV - OTT - Admin Panel

Q:

Execution failed for task ':flutter_cast_video:compileReleaseKotlin'

Closed public

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.

All Replies

Viewing 29 to 32 of total 34 topics

Can you connect to Anydesk and help me out once and for all Please

FAILURE: Build failed with an exception.


* What went wrong:

Could not open cp_settings generic class cache for settings file '/Users/***/Downloads/PROSPAVIEW SCRIPT FILES/Mainfiles_1.6/Appcode/YourAppName/android/settings.gradle' (/Users/****/.gradle/caches/7.5.1/scripts/i4m1m00wqa96xgbyrvrswytf).

> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65


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

Running Gradle task 'assembleRelease'...                         1,890ms


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

│ [!] Your project's Gradle version is incompatible with the Java version that Flutter is using for Gradle.                                      │

│                                                                                                                                                │

│ If you recently upgraded Android Studio, consult the migration guide at docs.flutter.dev/go/android-java-gradle-error.                         │

│                                                                                                                                                │

│ Otherwise, to fix this issue, first, check the Java version used by Flutter by running `flutter doctor --verbose`.                             │

│                                                                                                                                                │

│ Then, update the Gradle version specified in /Users/andyuzor/Downloads/PROSPAVIEW SCRIPT                                                       │

│ FILES/Mainfiles_1.6/Appcode/YourAppName/android/gradle/wrapper/gradle-wrapper.properties to be compatible with that Java version. See the link │

│ below for more information on compatible Java/Gradle versions:                                                                                 │

│ https://docs.gradle.org/current/userguide/compatibility.html#java                                                                              │

│                                                                                                                                                │

│                                                                                                                                                │

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

Gradle task assembleRelease failed with exit code 1

andyuzor@Olumurphys-MacBook-Pro YourAppName % 



I just updated my android studio to the latest version and its giving me this error.
Most of the problem I have been facing so far is the gradle.

Hi, Good Morning!

I hope you've found a solution to the issue mentioned above. If you're still experiencing any problems, feel free to share them with us. We're happy to assist you.

Thank you!

Regards,
Mr. Priyank

Hi,

Please add the following lines to your .zshrc file:

export PATH="/opt/homebrew/opt/openjdk@11/bin:$PATH"
export PATH="/opt/homebrew/opt/openjdk@17/bin:$PATH"


You can find the .zshrc file at this path: /Users/{your-username}/.zshrc

Thank you!

Regards,
Mr. Priyank

Viewing 29 to 32 of total 34 topics

Support is Online

Office hours

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

  • Office time

    00:00:00 AM

  • Your time

    00:00:0 AM

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