Ios version of app works, but Android fails due to no suitable constructor found for AccessToken for React Native App

后端 未结 3 1750
北荒
北荒 2021-01-19 10:18

As mentioned in the title, the Ios version of this app works fine on a physical device. However, when I try to build it on an android device, I get an error



        
3条回答
  •  旧时难觅i
    2021-01-19 11:07

    I had also that issue today and solved by modifying the package to have the last parameter - dataAccessExpirationTime.

    new AccessToken(
                configMap.getString("accessToken"),
                AccessToken.getCurrentAccessToken().getApplicationId(),
                AccessToken.getCurrentAccessToken().getUserId(),
                null,
                null,
                null,
                null,
                null,
                null)
    

    You will see this issue in FBGraphRequestModule.java and Utility.java file. So please fix both files.

提交回复
热议问题