Giter Site home page Giter Site logo

error: constructor ReactNativeOneSignalPackage in class ReactNativeOneSignalPackage cannot be applied to given types about react-native-onesignal HOT 5 CLOSED

onesignal avatar onesignal commented on May 26, 2024
error: constructor ReactNativeOneSignalPackage in class ReactNativeOneSignalPackage cannot be applied to given types

from react-native-onesignal.

Comments (5)

avishayil avatar avishayil commented on May 26, 2024

Can you please put the stack trace?

from react-native-onesignal.

edo1493 avatar edo1493 commented on May 26, 2024

This is what I get:

:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/android/app/src/main/java/com/mentor_app/MainActivity.java:42: error: constructor ReactNativeOneSignalPackage in class ReactNativeOneSignalPackage cannot be applied to given types;
            new ReactNativeOneSignalPackage()
            ^
  required: Activity
  found: no arguments
  reason: actual and formal argument lists differ in length
1 error
:app:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

from react-native-onesignal.

avishayil avatar avishayil commented on May 26, 2024

from react-native-onesignal.

edo1493 avatar edo1493 commented on May 26, 2024

@avishayil Yes, that was it. Thanks, I thought I had the latest.

from react-native-onesignal.

avishayil avatar avishayil commented on May 26, 2024

Sure!

from react-native-onesignal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.