Android facebook applicationId cannot be null

后端 未结 5 2215
小鲜肉
小鲜肉 2020-12-02 12:08

I\'ve been following the following tutorial to integrate my app with Facebook. Facebook tutorial

I\'ve followed everything on the tutorial, but I\'ve been getting

5条回答
  •  醉酒成梦
    2020-12-02 12:28

    The problem is that the id is being converted to integer: https://code.google.com/p/android/issues/detail?id=78839

    In my case the facebook_app_id was being set from the build.gradle file per flavor.

    The solution was to wrap the id with ":

    flavor.resValue "string", "facebook_app_id", "\"1111111111111\""
    

    or if you would rather avoid escaping:

    flavor.resValue "string", "facebook_app_id", '"1111111111111"'
    

提交回复
热议问题