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) 1–5 of 34
Mr. Priyank
Mr. Priyank employee 06 Dec 2024, 6:48 AM

We’re glad we could assist you with your issue. If you're satisfied with our support, we’d appreciate it if you could leave a review on CodeCanyon.

We’ll be closing this ticket now. Thank you!

Regards, Mr. Priyank

Mr. Priyank
Mr. Priyank employee 19 Oct 2024, 7:40 AM

Hi,

Has your issue been resolved? Let me know if you need further assistance!

Thank you!

Regards, Mr. Priyank

Mr. Priyank
Mr. Priyank employee 19 Oct 2024, 3:14 AM

You’re welcome! I’m glad to hear that the JDK issue has been resolved.

Regarding the black screen after launching the APK, please replace below line at given location attached screenshots.

await Firebase.initializeApp(
name: Constant.appName, options: DefaultFirebaseOptions.currentPlatform);

Thank you!

Regards, Mr. Priyank

Tikolo Olawale
Tikolo Olawale 19 Oct 2024, 2:07 AM

Thank you Mr. Priyank!
I've been able to sort that jdk problem and now I build successfully but the problem I have now is that the apk will install and when launched it will just display black screen, it won’t load.

Here is my build log;


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


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.

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.

Note: Some input files use or override 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: /Users/andyuzor/.pub-cache/hosted/pub.dev/flutter_share-2.0.0/android/src/main/java/com/example/fluttershare/FlutterSharePlugin.java uses or overrides a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: /Users/andyuzor/.pub-cache/hosted/pub.dev/google_mobile_ads-5.1.0/android/src/main/java/io/flutter/plugins/googlemobileads/FlutterRequestAgentProvider.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: Some input files use or override 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.

Running Gradle task 'assembleRelease'...                          258.6s

✓ Built build/app/outputs/flutter-apk/app-release.apk (110.5MB)


Mr. Priyank
Mr. Priyank employee 18 Oct 2024, 10:43 PM

Hi, Good Morning!

You can download the APK from the following link:
https://we.tl/t-fbkb5MnMqo

Once you've tested the app, we would really appreciate it if you could leave a review on the Codecanyon platform. Your feedback helps us continue improving our services.

Thank you!

Regards, Mr. Priyank

Showing 1–5 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