#
closed
The application is not compiling on either iOS or Android, but let's start on Android.

Can you make me a list of the things I have to fill in and customize for the application to compile for both iOS and Android, problems with the awesome_notifications plugin, live_chat_screen.dart, audioplayers_android, crisp_chat, and google_sign_in_android with these errors, compileSdkVersion 34, and I need to change it to version 35, but when I start making changes, it starts to give incompatibility.

log erros 

Please choose one (or "q" to quit): 1

Launching lib/main.dart on sdk gphone64 x86 64 in debug mode...

Warning: The plugin audioplayers_android requires Android SDK version 35 or higher.

For more information about build configuration, see https://flutter.dev/to/review-gradle-config.

Warning: The plugin crisp_chat requires Android SDK version 35 or higher.

For more information about build configuration, see https://flutter.dev/to/review-gradle-config.

Warning: The plugin flutter_plugin_android_lifecycle requires Android SDK version 35 or higher.

For more information about build configuration, see https://flutter.dev/to/review-gradle-config.

Warning: The plugin google_sign_in_android requires Android SDK version 35 or higher.

For more information about build configuration, see https://flutter.dev/to/review-gradle-config.

Warning: The plugin image_picker_android requires Android SDK version 35 or higher.

For more information about build configuration, see https://flutter.dev/to/review-gradle-config.

Warning: The plugin path_provider_android requires Android SDK version 35 or higher.

For more information about build configuration, see https://flutter.dev/to/review-gradle-config.

Warning: The plugin pedometer requires Android SDK version 35 or higher.

For more information about build configuration, see https://flutter.dev/to/review-gradle-config.

Warning: The plugin shared_preferences_android requires Android SDK version 35 or higher.

For more information about build configuration, see https://flutter.dev/to/review-gradle-config.

Warning: The plugin stripe_android requires Android SDK version 35 or higher.

For more information about build configuration, see https://flutter.dev/to/review-gradle-config.

Warning: The plugin url_launcher_android requires Android SDK version 35 or higher.

For more information about build configuration, see https://flutter.dev/to/review-gradle-config.

Warning: The plugin video_player_android requires Android SDK version 35 or higher.

For more information about build configuration, see https://flutter.dev/to/review-gradle-config.

Warning: The plugin webview_flutter_android requires Android SDK version 35 or higher.

For more information about build configuration, see https://flutter.dev/to/review-gradle-config.

Your project is configured to compile against Android SDK 34, but the following plugin(s) require to be compiled against a higher Android SDK version:

- audioplayers_android compiles against Android SDK 35

- crisp_chat compiles against Android SDK 35

- flutter_plugin_android_lifecycle compiles against Android SDK 35

- google_sign_in_android compiles against Android SDK 35

- image_picker_android compiles against Android SDK 35

- path_provider_android compiles against Android SDK 35

- pedometer compiles against Android SDK 35

- shared_preferences_android compiles against Android SDK 35

- stripe_android compiles against Android SDK 35

- url_launcher_android compiles against Android SDK 35

- video_player_android compiles against Android SDK 35

- webview_flutter_android compiles against Android SDK 35

Fix this issue by compiling against the highest Android SDK version (they are backward compatible).

Add the following to /Users/wagnergomes/development/fitpass/android/app/build.gradle:

    android {

        compileSdk = 35

        ...

    }

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

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

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] 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] source value 8 is obsolete and will be removed in a future release

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

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

warning: [options] target 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.

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.

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

/Users/wagnergomes/.pub-cache/hosted/pub.dev/awesome_notifications-0.9.3+1/android/src/main/java/me/carda/awesome_notifications/DartBackgroundExecutor.java:74: error: cannot find symbol

    private static io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback

                                                          ^

  symbol:   class PluginRegistrantCallback

  location: interface PluginRegistry

/Users/wagnergomes/.pub-cache/hosted/pub.dev/awesome_notifications-0.9.3+1/android/src/main/java/me/carda/awesome_notifications/DartBackgroundExecutor.java:86: error: cannot find symbol

            io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback callback) {

                                                   ^

  symbol:   class PluginRegistrantCallback

  location: interface PluginRegistry

/Users/wagnergomes/.pub-cache/hosted/pub.dev/awesome_notifications-0.9.3+1/android/src/main/java/me/carda/awesome_notifications/AwesomeNotificationsPlugin.java:22: error: cannot find symbol

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

                                              ^

  symbol:   class Registrar

  location: interface PluginRegistry

3 warnings

/Users/wagnergomes/.pub-cache/hosted/pub.dev/awesome_notifications-0.9.3+1/android/src/main/java/me/carda/awesome_notifications/AwesomeNotificationsPlugin.java:112: error: cannot find symbol

    public static void registerWith(Registrar registrar) {

                                    ^

  symbol:   class Registrar

  location: class AwesomeNotificationsPlugin

/Users/wagnergomes/.pub-cache/hosted/pub.dev/awesome_notifications-0.9.3+1/android/src/main/java/me/carda/awesome_notifications/FlutterBitmapUtils.java:12: error: cannot find symbol

import io.flutter.view.FlutterMain;

                      ^

  symbol:   class FlutterMain

  location: package io.flutter.view

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked 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.

Note: /Users/wagnergomes/.pub-cache/hosted/pub.dev/flutter_paytabs_bridge-2.7.0/android/src/main/java/com/paymentsdk/flutter_paymentsdk_bridge/FlutterPaytabsBridgePlugin.java uses or overrides a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

3 warnings

/Users/wagnergomes/.pub-cache/hosted/pub.dev/awesome_notifications-0.9.3+1/android/src/main/java/me/carda/awesome_notifications/FlutterBitmapUtils.java:46: error: cannot find symbol

                String assetLookupKey = FlutterMain.getLookupKeyForAsset(bitmapPath);

                                        ^

  symbol:   variable FlutterMain

  location: class FlutterBitmapUtils

6 errors

3 warnings

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 unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

3 warnings

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.

3 warnings

lib/screens/live_chat_screen.dart:28:18: Error: The method 'getStringAsync' isn't defined for the class '_LiveChatScreenState'.

 - '_LiveChatScreenState' is from 'package:mighty_fitness/screens/live_chat_screen.dart' ('lib/screens/live_chat_screen.dart').

Try correcting the name to the name of an existing method, or defining a method named 'getStringAsync'.

      websiteID: getStringAsync(CRISP_CHAT_WEB_SITE_ID),

                 ^^^^^^^^^^^^^^

lib/screens/live_chat_screen.dart:28:33: Error: The getter 'CRISP_CHAT_WEB_SITE_ID' isn't defined for the class '_LiveChatScreenState'.

 - '_LiveChatScreenState' is from 'package:mighty_fitness/screens/live_chat_screen.dart' ('lib/screens/live_chat_screen.dart').

Try correcting the name to the name of an existing getter, or defining a getter or field named 'CRISP_CHAT_WEB_SITE_ID'.

      websiteID: getStringAsync(CRISP_CHAT_WEB_SITE_ID),

                                ^^^^^^^^^^^^^^^^^^^^^^

Target kernel_snapshot_program failed: Exception

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

-----------

* What went wrong:

Execution failed for task ':awesome_notifications:compileDebugJavaWithJavac'.

> Compilation failed; see the compiler output below.

  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

  /Users/wagnergomes/.pub-cache/hosted/pub.dev/awesome_notifications-0.9.3+1/android/src/main/java/me/carda/awesome_notifications/DartBackgroundExecutor.java:74: error: cannot find symbol

      private static io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback

                                                            ^

    symbol:   class PluginRegistrantCallback

    location: interface PluginRegistry

  /Users/wagnergomes/.pub-cache/hosted/pub.dev/awesome_notifications-0.9.3+1/android/src/main/java/me/carda/awesome_notifications/DartBackgroundExecutor.java:86: error: cannot find symbol

              io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback callback) {

                                                     ^

    symbol:   class PluginRegistrantCallback

    location: interface PluginRegistry

  /Users/wagnergomes/.pub-cache/hosted/pub.dev/awesome_notifications-0.9.3+1/android/src/main/java/me/carda/awesome_notifications/AwesomeNotificationsPlugin.java:22: error: cannot find symbol

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

                                                ^

    symbol:   class Registrar

    location: interface PluginRegistry

  /Users/wagnergomes/.pub-cache/hosted/pub.dev/awesome_notifications-0.9.3+1/android/src/main/java/me/carda/awesome_notifications/AwesomeNotificationsPlugin.java:112: error: cannot find symbol

      public static void registerWith(Registrar registrar) {

                                      ^

    symbol:   class Registrar

    location: class AwesomeNotificationsPlugin

  /Users/wagnergomes/.pub-cache/hosted/pub.dev/awesome_notifications-0.9.3+1/android/src/main/java/me/carda/awesome_notifications/FlutterBitmapUtils.java:12: error: cannot find symbol

  import io.flutter.view.FlutterMain;

                        ^

    symbol:   class FlutterMain

    location: package io.flutter.view

  /Users/wagnergomes/.pub-cache/hosted/pub.dev/awesome_notifications-0.9.3+1/android/src/main/java/me/carda/awesome_notifications/FlutterBitmapUtils.java:46: error: cannot find symbol

                  String assetLookupKey = FlutterMain.getLookupKeyForAsset(bitmapPath);

                                          ^

    symbol:   variable FlutterMain

    location: class FlutterBitmapUtils

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

  6 errors

  3 warnings

* Try:

> Check your code and dependencies to fix the compilation error(s)

> Run with --scan to get full insights.

==============================================================================

2: Task failed with an exception.

-----------

* What went wrong:

Execution failed for task ':app:compileFlutterBuildDebug'.

> Process 'command '/Users/wagnergomes/development/flutter/bin/flutter'' finished with non-zero exit value 1

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

Running Gradle task 'assembleDebug'...                             64,3s

Error: Gradle task assembleDebug failed with exit code 1

wagnergomes@MacBook-Pro-de-Wagner fitpass % 

Asked 1 week ago on August 6, 2025 1:04 PM Comments 1 times


  1. Generic placeholder image

    Fiaz replied

     

    Your issue will be resolved in the upcoming update.
Recent Tickets
river is not receiving ri... 6 months ago on January 29, 2025 9:03 AM error sending to apple co... 1 day ago on August 12, 2025 4:21 AM error in build the app bu... 2 days ago on August 11, 2025 1:00 AM How do I translate Flutte... 4 days ago on August 8, 2025 9:23 PM Request for Guidance – Ad... 5 days ago on August 8, 2025 10:01 AM portale licenze 5 days ago on August 8, 2025 10:01 AM The application is not co... 1 week ago on August 6, 2025 1:04 PM Firestore Document Update... 1 week ago on August 5, 2025 8:02 AM Urgent: Laravel Project N... 1 week ago on August 4, 2025 6:31 AM Problem with distance cal... 2 weeks ago on July 28, 2025 10:10 PM