Skip to content

Error while building the app - flutter version 3.29.0 #74

@ponnamkarthik

Description

@ponnamkarthik

Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
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.
/Users/karthikponnam/.pub-cache/hosted/pub.dev/appspector-0.10.0/android/src/main/java/com/appspector/flutter/AppSpectorPlugin.java:6: error: cannot find symbol
import io.flutter.plugin.common.PluginRegistry.Registrar;
^
symbol: class Registrar
location: interface PluginRegistry
/Users/karthikponnam/.pub-cache/hosted/pub.dev/appspector-0.10.0/android/src/main/java/com/appspector/flutter/AppSpectorPlugin.java:37: error: cannot find symbol
public static void registerWith(Registrar registrar) {
^
symbol: class Registrar
location: class AppSpectorPlugin
warning: unknown enum constant Include.NON_EMPTY
reason: class file for com.fasterxml.jackson.annotation.JsonInclude$Include not found
warning: unknown enum constant Include.NON_EMPTY
/Users/karthikponnam/.pub-cache/hosted/pub.dev/appspector-0.10.0/android/src/main/java/com/appspector/flutter/MainAppSpectorHandler.java:202: warning: [deprecation] Handler() in Handler has been deprecated
final Handler mainHandler = new Handler();
^
2 errors
6 warnings

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':appspector:compileDebugJavaWithJavac'.

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.

BUILD FAILED in 9m 47s
Error: Gradle task assembleDebug failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions