在res/values目录下创建string.xml文件,并将以下代码添加到其中。<?xml version="1.0" encoding="utf-8"?> <resources> <!-- Replace "343254889799245" with your Facebook App ID here. --> <string name="facebook_app_id">343254889799245</string> </resources> 希望这能对你有所帮助。