【发布时间】:2012-03-05 11:34:07
【问题描述】:
所以我在 Eclipse 上使用 PhoneGap,并且在“构建目录”开始编程时遇到了一些问题。我正在按照原始页面中的步骤进行操作,但我不明白某些要点(我是西班牙人,可能是语言问题)我通常可以处理它,但这次经过一些尝试后我没有任何其他机会而不是问。 所以这是教程页面https://github.com/davejohnson/phonegap-plugin-facebook-connect我卡在Android部分。
3.- 您需要构建 + 包含 Facebook Android SDK 并构建 + 修补 Facebook JavaScript SDK:
-First run *git submodule update --init* to initialize and pull down the versions of the JS and Android Facebook SDKs that work with this plugin; they will end up under lib/.
-Next, build the JS file. cd lib/facebook-js-sdk and run php all.js.php >> ../facebook_js_sdk.js. This will create the JS SDK file under lib/facebook_js_sdk.js. Please note: the output filename is important as the patch assumes that filename!
-cd .. and apply the patch file by running patch < facebook-js-patch.
这是命令git submodule update --init。我不确定在哪里运行它,我已经在所有项目目录中的终端上尝试过,但它总是返回相同的问题:fatal: Not a git repository (or any parent directory): .git
如果有人知道这一点并且可以帮助我,我将非常感激! 谢谢。
【问题讨论】:
标签: eclipse facebook plugins cordova command