Skip to content

android: cannot find symbol mInstabug.setUserName(username); #36

@jplanders

Description

@jplanders

I saw in a closed issue and in a commit that you fixed the setUsername to be setUserName for consistency with iOS. However, we are now seeing this gradle build error when building for Android:

cannot find symbol mInstabug.setUserName(username);

As seen here:

https://stackoverflow.com/questions/43932286/gradle-build-error-cannot-find-symbol-for-minstabug-setusernameusername

So I changed line 186 to the previous casing to get a successful build:

    /**
     * Sets the user name that is used in the dashboard's contacts.
     *
     * @param username
     */
    @ReactMethod
    public void setUserName(String username) {
        try {
186 >            mInstabug.setUsername(username);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

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