在Facebook Android教程中“Android库项目无法启动”

时间:2012-02-22 17:13:57

标签: android facebook



我安装了Android和Facebook SDK。我完成了http://developers.facebook.com/docs/mobile/android/build/#sdk中的所有步骤,直到步骤6.3。

在步骤6.4中,当我尝试在模拟器中运行项目时(使用Android 4.0.3),我得到“Android库项目无法启动”,项目不再继续。即使是logcat也没有任何内容。
有人可以告诉我可能是什么问题吗?

谢谢
Souvik

3 个答案:

答案 0 :(得分:4)

请按照以下步骤操作

 1. In the Package Explorer, right-click the library project and select
    Properties.
 2. In the Properties window, select the "Android" properties group at left and 
     locate the Library properties at right.
 3. Select the "is Library" checkbox and click Apply.
 4. Click OK to close the Properties window.

答案 1 :(得分:3)

图书馆项目无法启动。您可以在项目中使用它并运行项目将其添加为库。

答案 2 :(得分:1)

将Facebook sdk作为一个库会好得多,所以你可以简单地#dmport sdk文件进入eclipse。简单。我花了一天时间试图将样本源放入一个项目来测试墙上的帖子。我让应用程序运行,但在我的项目中没有调用断点,我不得不创建build.xml并且不确定是否是原因。如果包含整个测试项目文件而不是仅包含资源和jar文件会更好。这样你就可以导入所有内容,它应该在5分钟内完成。