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 9 to 12 of total 19 topics

select suggested

Document

13_02_2025_12_67ae29a2b4088.png

Document

13_02_2025_98_67ae29a2b4473.png

send screenshot please

Regards,
Mr. Chirag

After the process below, this message appears:
Set the 'program' value in your launch config (eg 'lib/main.dart') then launch again

this is not a code error... you have to just open file and save it .. let's follow below steps


- Go to packages folder
- Open One by one folder
- inside every folder, pubspec.yaml avaialbe so open this file
- just save this ( ctrl + s / cmd + s )
- run this command ' flutter pub get '
- Do same steps for every folder inside packages

Regards,
Mr. Chirag

Viewing 9 to 12 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