HelpDesk

HelpDesk Support System

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

Q:

I can't compile the APK

public

PS C:\aplicacao\Mainfiles\Appcode\mooveplay\android> flutter build apk --release

Changing current working directory to: C:\aplicacao\Mainfiles\Appcode\mooveplay


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.

C:\Users\pc_lince\AppData\Local\Pub\Cache\hosted\pub.dev\razorpay_web-2.0.2\android\src\main\java\com\razorpay\razorpay_flutter\RazorpayFlutterPlugin.java:18: error: cannot find symbol

import io.flutter.plugin.common.PluginRegistry.Registrar;

                                              ^

  symbol:   class Registrar

  location: interface PluginRegistry

C:\Users\pc_lince\AppData\Local\Pub\Cache\hosted\pub.dev\razorpay_web-2.0.2\android\src\main\java\com\razorpay\razorpay_flutter\RazorpayFlutterPlugin.java:36: error: cannot find symbol

    public static void registerWith(Registrar registrar) {

                                    ^

  symbol:   class Registrar

  location: class RazorpayFlutterPlugin

C:\Users\pc_lince\AppData\Local\Pub\Cache\hosted\pub.dev\razorpay_web-2.0.2\android\src\main\java\com\razorpay\razorpay_flutter\RazorpayFlutterPlugin.java:56: error: cannot find symbol

    private RazorpayFlutterPlugin(Registrar registrar) {

                                  ^

  symbol:   class Registrar

  location: class RazorpayFlutterPlugin

Note: C:\Users\pc_lince\AppData\Local\Pub\Cache\hosted\pub.dev\razorpay_web-2.0.2\android\src\main\java\com\razorpay\razorpay_flutter\RazorpayDelegate.java uses or overrides a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

3 errors

3 warnings

e: file:///C:/Users/pc_lince/AppData/Local/Pub/Cache/hosted/pub.dev/paytm_allinonesdk-1.2.8/android/src/main/kotlin/com/paytm/allinonesdk/AllInOneSdkPlugin.kt:21:48 Unresolved reference 'Registrar'.


FAILURE: Build completed with 2 failures.


1: Task failed with an exception.

-----------

* What went wrong:

Execution failed for task ':razorpay_web:compileReleaseJavaWithJavac'.

> Compilation failed; see the compiler error output for details.


* Try:

> Run with --info 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 ':paytm_allinonesdk:compileReleaseKotlin'.

> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction

   > Compilation error. See log for more details


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

Running Gradle task 'assembleRelease'...                            5,2s

Gradle task assembleRelease failed with exit code 1




PS C:\aplicacao\Mainfiles\Appcode\mooveplay\android> flutter doctor

Doctor summary (to see all details, run flutter doctor -v):

[√] Flutter (Channel stable, 3.29.3, on Microsoft Windows [versÆo 10.0.26100.3915], locale pt-BR)

[√] Windows Version (Windows 11 or higher, 24H2, 2009)

[√] Android toolchain - develop for Android devices (Android SDK version 35.0.1)

[√] Chrome - develop for the web

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.13.6)

[√] Android Studio (version 2024.3.2)

[√] VS Code (version 1.100.1)

[√] Connected device (3 available)

[√] Network resources


• No issues found!

All Replies

Viewing 1 to 4 of total 19 topics

I made the change to flutter as indicated.

but even so when running: flutter build apk --release

I receive the attached messages


PS C:\aplicacao\Mainfiles\Appcode\mooveplay\android> flutter doctor 

Doctor summary (to see all details, run flutter doctor -v):

[√] Flutter (Channel stable, 3.27.0, on Microsoft Windows [versÆo 10.0.26100.4061], locale pt-BR)

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 35.0.1)

[√] Chrome - develop for the web

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.13.6)

[√] Android Studio (version 2024.3.2)

[√] VS Code (version 1.100.3)

[√] Connected device (3 available)

[√] Network resources


• No issues found!

Document

06_06_2025_11_68432e7037130.txt

Thanks for the update!

The current version of the app code is compatible with Flutter 3.27.0, so please use this version instead of Flutter 3.29.3.

Regards,
Mr. Priyank

Flutter 3.29.3 • channel stable • https://github.com/flutter/flutter.git

Framework • revision ea121f8859 (8 weeks ago) • 2025-04-11 19:10:07 +0000

Engine • revision cf56914b32

Tools • Dart 3.7.2 • DevTools 2.42.3

Hi, Good Morning!

Can you please share your Flutter version?

You can check it by running the following command in your project terminal:
flutter --version

Thank you!

Regards,
Mr. Priyank

Viewing 1 to 4 of total 19 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