“Android 库项目无法启动”在 Facebook Android 教程中
我安装了 Android 和 Facebook SDK。我完成了 http://developers.facebook.com/docs/ 中的所有步骤mobile/android/build/#sdk 直到步骤 6.3。
在步骤 6.4 中,当我尝试在模拟器中运行该项目(使用 Android 4.0.3)时,我收到“Android 库项目无法启动”并且该项目无法进一步进行。甚至logcat也没有任何内容。
有人可以告诉我可能是什么问题吗?
谢谢
苏维克
I installed both the Android and Facebook SDKs. I did all the steps in http://developers.facebook.com/docs/mobile/android/build/#sdk till Step 6.3.
In step 6.4, when I try to run the project in Emulator (Using Android 4.0.3), I get "Android library projects cannot be launched" and the project doesn't proceed further. Even the logcat doesn't have any content.
Can someone please tell me what may be the problem?
Thanks
Souvik
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请按照以下步骤操作
Folow these steps
图书馆项目无法启动。您可以在项目中使用它并运行您的项目,将其添加为库。
Library projects cant be launched. you can use that in your project and run your project adding it as library.
最好将 Facebook sdk 作为库,这样您就可以简单地将 sdk 文件 #import 到 eclipse 中。简单的。我花了一天时间尝试将示例源代码放入项目中以测试墙上的帖子。我让应用程序运行,但在我的项目中没有调用断点,我必须创建 build.xml 并且不确定这是否是原因。如果包含整个测试项目文件而不是仅包含资源和 jar 文件会更好。这样您就可以导入所有内容,并且应该在 5 分钟内即可运行。
It would be much better to have the Facebook sdk as a Library so you can simply #import the sdk file into eclipse. Simple. I spent a day trying to get the sample source into a project to test the post on wall. I get the app to run but no breakpoints get called in my project, I had to create the build.xml and not sure if that is the cause. It would be better if the whole test project files were included instead of only the resources and jar files. That way you could just import everything and it should work within 5 mins.