Android的样本误差误差、样本、Android

2023-09-08 08:33:05 作者:咿呀咿呀哟

我克隆Git的枢纽回购和进口的文件夹到Eclipse中。我试图用CM10我的三星Galaxy扶摇直上运行所有的样品和所有的应用程序失败。然后我跑它放在一只股票的Galaxy S3与股票ICS和三星R720与股票姜饼,他们都失败了同样的方式。我终于跑了它在模拟器上进行相同的结果。

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;

点击登录返回Facebook的主题pagge一个错误,指出  发生。请稍后再试。

Clicking login returns a facebook themed pagge that says AN error occured. Please try again later.

测试界面可以让我正确地注册,如果将返回错误我输入  错误的传球但经过身份验证同样的错误出现。

Test Ui allows me to login correctly and will return error if I input wrong pass but after auth same error comes up

测试系统注销测试失败。

Test Logout Logout tests failed

流:我得到的欢迎屏幕和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

在控制台我不断看到[二零一二年十月十日十九点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

10-10 19:14:38.370:E / AndroidRuntime(9061):致命异常:主要  10-10 19:14:38.370:E / AndroidRuntime(9061):java.lang.NoClassDefFoundError的:com.facebook.android.Facebook  10-10 19:14:38.370:E / AndroidRuntime(9061):在com.facebook.stream.LoginHandler $ JsHandler $ 1.run(LoginHandler.java:71)  10-10 19:14:38.370:E / AndroidRuntime(9061):在android.os.Handler.handleCallback(Handler.java:615)  10-10 19:14:38.370:E / AndroidRuntime(9061):在android.os.Handler.dispatchMessage(Handler.java:92)  10-10 19:14:38.370:E / AndroidRuntime(9061):在android.os.Looper.loop(Looper.java:137)  10-10 19:14:38.370:E / AndroidRuntime(9061):在android.app.ActivityThread.main(ActivityThread.java:4930)  10-10 19:14:38.370:E / AndroidRuntime(9061):在java.lang.reflect.Method.invokeNative(本机方法)  10-10 19:14:38.370:E / AndroidRuntime(9061):在java.lang.reflect.Method.invoke(Method.java:511)  10-10 19:14:38.370:E / AndroidRuntime(9061):在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:791)  10-10 19:14:38.370:E / AndroidRuntime(9061):在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)  10-10 19:14:38.370:E / AndroidRuntime(9061):在dalvik.system.NativeStart.main(本机方法)

10-10 19:14:38.370: E/AndroidRuntime(9061): FATAL EXCEPTION: main 10-10 19:14:38.370: E/AndroidRuntime(9061): java.lang.NoClassDefFoundError: com.facebook.android.Facebook 10-10 19:14:38.370: E/AndroidRuntime(9061): at com.facebook.stream.LoginHandler$JsHandler$1.run(LoginHandler.java:71) 10-10 19:14:38.370: E/AndroidRuntime(9061): at android.os.Handler.handleCallback(Handler.java:615) 10-10 19:14:38.370: E/AndroidRuntime(9061): at android.os.Handler.dispatchMessage(Handler.java:92) 10-10 19:14:38.370: E/AndroidRuntime(9061): at android.os.Looper.loop(Looper.java:137) 10-10 19:14:38.370: E/AndroidRuntime(9061): at android.app.ActivityThread.main(ActivityThread.java:4930) 10-10 19:14:38.370: E/AndroidRuntime(9061): at java.lang.reflect.Method.invokeNative(Native Method) 10-10 19:14:38.370: E/AndroidRuntime(9061): at java.lang.reflect.Method.invoke(Method.java:511) 10-10 19:14:38.370: E/AndroidRuntime(9061): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791) 10-10 19:14:38.370: E/AndroidRuntime(9061): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558) 10-10 19:14:38.370: E/AndroidRuntime(9061): at dalvik.system.NativeStart.main(Native Method)

我不知道问题出在哪里。它似乎连接到库项目细。也许有一个名字 - 科里森因为为例,库都已经com.facebook.android?我真的要开始在自己的应用程序进行集成这一点,但我是因为非工作样本的疲惫。当然,也可能是我的错,我只是想看看它第一个工作日,罗是什么意思?

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)项目>清除所有;

2) Project> CLean all;

3)项目>全部构建;

3) Project> Build All;

现在我有一吨的错误。 ![] tonoferrors 2

Now I got a ton of errors. ![]tonoferrors2

于是我浏览到的错误之一,我试图通过选择修复项目设置来解决

So I browsed to one of the errors and I tried to resolve by selecting Fix Project SEtup

**

> - 重要!!!! 的 > - IMPORTANT!!!!

**我有两个选择。添加项目的Facebook,并添加归档facebook.jar。我第一次选择的第一个错误,走了,项目是在我的第一篇descrived的状态。你必须先打第二个(加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工作完美。每一个项目的所有功能。没有签订无学士学位。

I did a final clean and build and hackbooked worked perfect. Every project Every feature. No signing No BS.