Skip to content

Gradle Sync Fails #3

@Traviskn

Description

@Traviskn

After following the instructions in the README to add this module to my android/setting.gradle file and my android/app/build.gradle file, gradle sync fails with this error:

Configuration with name 'default' not found

Also, the instructions on registering the module in the MainActivity.java seem to be out of date, newer versions of RN for Android just have you add a new package instance to a list like so:

   /**
   * A list of packages used by the app. If the app uses additional views
   * or modules besides the default ones, add more packages here.
   */
    @Override
    protected List<ReactPackage> getPackages() {
        return Arrays.<ReactPackage>asList(
                new MainReactPackage(),
                new Vibration()  // <- Add new package here
        );
    }

Has anyone else run into any problems adding this module to their android projects?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions