Skip to content

Execution failed for task ':app:compileDebugJavaWithJavac'. #7

@tetogomez

Description

@tetogomez

Hi @philiWeitz
I found an error when I tried to run my react-native app

public void onActivityResult(int requestCode, int resultCode, Intent data) {...

Execution failed for task ':app:compileDebugJavaWithJavac'.

Basically the error is that Intent class never was imported into the MainActivity.java file

Solution:
Update the README file and add this line on andriod step number 6:

  1. add the "LocationSwitch" and "Intent" import into your MainActivity.java file::
    import org.pweitz.reactnative.locationswitch.LocationSwitch;
    import android.content.Intent;

On this way we would solve the error.
I tried to do a PR but I don't have permission :P

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