Skip to content

Conversation

Dssdiego
Copy link
Contributor

When trying to run "react-native run-android", was giving the error:

"error: constructor StatusBarPackage in class StatusBarPackage cannot be applied to given types;
.addPackage(new StatusBarPackage(this))
^
required: no arguments
found: MainActivity
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."

Code Changes:

Changed .addPackage(new StatusBarPackage(this)) to .addPackage(new StatusBarPackage())

When trying to run "react-native run-android", was giving the error:

 "error: constructor StatusBarPackage in class StatusBarPackage cannot be applied to given types;
                .addPackage(new StatusBarPackage(this))
                            ^
  required: no arguments
  found: MainActivity
  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."


Code Changes:

Changed .addPackage(new StatusBarPackage(this)) to .addPackage(new StatusBarPackage())
@Salakar Salakar merged commit 3391eda into invertase:master Sep 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants