无法让 Appcelerator Titanium 项目在 Android 上读取用于 Facebook 模块集成的 strings.xml 文件

Can't get Appcelerator Titanium project to read the strings.xml file for Facebook Module integration on Android

我目前正在移植一个应用程序以在 Android 上运行(大约完成 70%)并且我需要集成 Facebook 登录。我有所有的应用程序 ID 和代理设置。只剩下strings.xml文件Android需要在下/platform/android/res/values/strings.xml 但是,我已经尝试将此目录放在项目的根目录以及 'Resources' 下,但它仍然会抛出一个错误: .../build/android/AndroidManifest.xml:19: error: Error: No resource found that matches the given name (at 'value' with value '@string/1498915623760005')

strings.xml 文件中,我有以下内容:

<?xml version="1.0" encoding="utf-8"?>
    <resources>
    <string name="app_name">Updateme</string>
    <string name="facebook_app_id">1498915623760005</string>
</resources>

tiapp.xml中是:

<android xmlns:android="http://schemas.android.com/apk/res/android">
    <manifest>
        <application>
            <activity android:label="@string/app_name"
                android:name="com.facebook.LoginActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
            <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/1498915623760005"/>
        </application>
    </manifest>
</android>

我的问题是,这个文件相对于项目的Resources目录应该放在哪里?还是我完全错过了什么?

在您的 tiapp.xml 中将 android:value="@string/1498915623760005"/> 替换为 android:value="@string/facebook_app_id"/>