Skip to content

Error NDK and DialogTheme #10

@gauloics

Description

@gauloics

Launching lib/main.dart on SM A566B in debug mode...
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by net.rubygrapefruit.platform.internal.NativeLibraryLoader in an unnamed module (file:/home/gdk/.gradle/wrapper/dists/gradle-8.10.2-all/7iv73wktx1xtkvlq19urqw1wm/gradle-8.10.2/lib/native-platform-0.22-milestone-26.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled

Your project is configured with Android NDK 26.3.11579264, but the following plugin(s) depend on a different Android NDK version:

  • connectivity_plus requires Android NDK 27.0.12077973

  • device_info_plus requires Android NDK 27.0.12077973

  • flutter_background requires Android NDK 27.0.12077973

  • flutter_webrtc requires Android NDK 27.0.12077973

  • livekit_client requires Android NDK 27.0.12077973

  • path_provider_android requires Android NDK 27.0.12077973
    Fix this issue by using the highest Android NDK version (they are backward compatible).
    Add the following to /home/gdk/project/FLUTTER/asisten-kasir/android/app/build.gradle:

    android {
    ndkVersion = "27.0.12077973"
    ...
    }
    ../../../.pub-cache/hosted/pub.dev/livekit_components-1.2.1/lib/src/ui/widgets/theme.dart:87:22: Error: The argument type 'DialogTheme' can't be assigned to the parameter type 'DialogThemeData?'.

  • 'DialogTheme' is from 'package:flutter/src/material/dialog_theme.dart' ('../../../snap/flutter/common/flutter/packages/flutter/lib/src/material/dialog_theme.dart').

  • 'DialogThemeData' is from 'package:flutter/src/material/dialog_theme.dart' ('../../../snap/flutter/common/flutter/packages/flutter/lib/src/material/dialog_theme.dart').
    dialogTheme: DialogTheme(
    ^
    Target kernel_snapshot_program failed: Exception

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command '/home/gdk/snap/flutter/common/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 14s
Running Gradle task 'assembleDebug'... 14.7s
Error: Gradle task assembleDebug failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions