Skip to content

Execution failed for task ':heasy_react-native-sunmi-printer:compileDebugJavaWithJavac'. #59

@ndbeyer

Description

@ndbeyer
  • yarn install...
  • react-native start
  • a - run on android
    leads to the following error
> Task :app:processDebugResources

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/8.0.1/userguide/command_line_interface.html#sec:command_line_warnings
126 actionable tasks: 3 executed, 123 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor 

/Users/user/Documents/dev/project/rnapp/node_modules/@heasy/react-native-sunmi-printer/android/src/main/java/com/reactnativesunmiprinter/SunmiScanModule.java:99: error: cannot find symbol
    ContextCompat.registerReceiver(reactContext, receiver, filter, Context.RECEIVER_EXPORTED);
                 ^
  symbol:   method registerReceiver(ReactApplicationContext,BroadcastReceiver,IntentFilter,int)
  location: class ContextCompat
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/user/Documents/dev/project/rnapp/node_modules/@heasy/react-native-sunmi-printer/android/src/main/java/com/reactnativesunmiprinter/SunmiScanModule.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':heasy_react-native-sunmi-printer:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions