问题描述
我克隆了Git Hub repo并将该文件夹导入到eclipse中。我试图运行我的三星Galaxy Skyrocket与CM10的所有样品,所有的应用程序失败。然后我用股票ICS和股票姜饼的三星R720的股票Galaxy S3跑了,他们都以同样的方式失败了。我终于在仿真器上运行了相同的结果。
I cloned the Git Hub repo and imported the folder into eclipse. I attempted to run all of the samples on my Samsung Galaxy Skyrocket with CM10 and all the apps failed. I then ran it on a stock Galaxy S3 with stock ICS and a Samsung R720 with stock gingerbread and they all failed the same way. I finally ran it on the emulator for the same results.
以下是失败的详细信息
SplashActivity:不幸Facebook SDK已经停止工作
立即
SplashActivity: Unfortunately Facebook SDK has stopped working immediately
测试:应用运行,但登录公共API时出错错误失败;
Tests: App runs but errors when signing in Public API errors failed;
点击登录返回一个表示AN错误
发生的主题页面。请稍后再试。
Clicking login returns a facebook themed pagge that says AN error occured. Please try again later.
测试Ui允许我正确登录,如果我输入
错误传递但在验证同一错误后出现错误
Test Ui allows me to login correctly and will return error if I input wrong pass but after auth same error comes up
测试注销退出测试失败
流:我得到欢迎屏幕和Facebook按钮,但点击
的Facebook流按钮会导致错误不幸的Facebook
SDK已经停止工作
Stream: I get the welcome screen and the facebook button but clicking the facebook stream button causes the error Unfortunately Facebook SDK has stopped working immediately
在控制台我一直看到[2012-10-10 19:13: 56 - facebook]找不到facebook.apk!
In console I keep seeing [2012-10-10 19:13:56 - facebook] Could not find facebook.apk!
Logcat正在产生此错误
Logcat is producing this error
我不知道在哪里 问题是。似乎连接到Lib项目罚款。也许有一个名字collison,因为例子和Lib都有com.facebook.android?我真的想开始将其整合到我自己的应用程序中,但由于非工作样本,我很疲倦。这可能是我的错,我只想看到它的工作第一,Nah是什么意思?
I am not sure where the problem is. It seems to connect to the Lib project fine. Maybe there is a name collison because example and Lib both have com.facebook.android? I really want to start integrating this in my own application but I am weary because of the non-working samples. Granted, it may be my fault I just want to see it working first, Nah mean?
推荐答案
我想出来了。我从我的工作区中删除了所有的项目。
I figured it out. I removed all the projects from my workspace.
1)我选择导入? ANDroid从exis ...>将项目复制到工作区>完成
1) I selected Import? ANdroid from exis...> Copy Projects into workspace> Finish
此时我有一些奇怪的错误,见
At this point I got some weird errors see
2)项目> CLean all;
2) Project> CLean all;
3)项目>构建全部;
3) Project> Build All;
现在我有一大堆错误。 ![] tonoferrors
Now I got a ton of errors. ![]tonoferrors2
所以我浏览了一个错误,我试图通过选择Fix Project SEtup来解决
So I browsed to one of the errors and I tried to resolve by selecting Fix Project SEtup
**
**
我有两个选项。添加项目Facebook并添加存档facebook.jar。我第一次选择了第一个错误,项目处于我第一次发布的状态。你必须先打到第二个(添加facebook.jar)。然后再做一次,唯一的选择是添加存档脸书,做到这一点。错误仍然存在。
**I got two options. Add project facebook and add archive facebook.jar. The first time I selected the first one errors went away and projects were in the state descrived in my first post. You must hit the second one first (add facebook.jar). Then do it again and the only option will be add archive facebook, do it. The errors will still be there.
我做了一个最后的清洁,建立和hackbooked工作完美。每个项目每个功能。无签名无BS。
I did a final clean and build and hackbooked worked perfect. Every project Every feature. No signing No BS.
这篇关于Android示例错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!