Facebook的Andr​​oid SDK中4.2.4广东话登录和isLogged使用Unity 4.3返回false广东话、SDK、oid、Andr

2023-09-04 10:29:31 作者:初心易得

我现在面临的问题与Facebook的SDK V4.2.4与unity4.3。 我开发这个Android中。

I am facing an issue with the facebook sdk v4.2.4 with unity4.3. I am developing this in Android.

我所做:我跟着那个被告知,在教程中的步骤。 该应用程序键添加正确的keyhash也正确地从CMD控制台产生的。

What I did : I followed the steps that were told in the tutorial. The app key was added correctly and the keyhash was also correctly generated from the cmd console.

当我点击登录时,一个空白的屏幕出现,请求的权限,我轻触是,然后返回到主菜单(交互式控制台场景)。我看到的是,提起isLoggedIn为FALSE。我做了很多次,发现UNITY4.3相同的结果。

When I tap log in, A blank screen comes, asks for permissions, I tap on yes and then returns back to the main menu (Interactive console scene). What I see is that the filed isLoggedIn is FALSE. I did it many times and found the same result on UNITY4.3.

在经历我发现有一个问题Unity4.3论坛,所以我将其评级下调至Unity4.2和测试同一个包(4.2.4)和它的工作我没问题,我可以登录, isLoggedIn返回true。 (团结4.2.x版)

On going through the forums I found that there is an issue with Unity4.3, so I downgraded it to Unity4.2 and tested the SAME PACKAGE (4.2.4) and it worked fine with me as i can log in and isLoggedIn returns true. (Unity 4.2.x)

结果得到这个插件工作时,我不得不为降级从4.3.0(请注意,我在unity4.3.0进行了测试,.1,.2,.3和还是一样的结果)4.2.2获得Facebook的SDK工作。

As a result to get this PLUGIN WORKING, I had to downgrade it from 4.3.0 (please note that i had tested it in unity4.3.0,.1,.2,.3 and still the same result) to 4.2.2 to get the Facebook sdk working.

真正的问题? 我希望插件正常工作的unity4.3.x和不可以在unity4.2.x。有趣的是,有没有错误日志或警告日志上unity4.3.x尝试这个当正在生成。

The real problem ? I WANT THE PLUGIN to work correctly in unity4.3.x and not in unity4.2.x. The funny part is that there are no error logs or warning logs being generated when trying this on unity4.3.x.

最重要的:在我的第一次尝试,我下载了Facebook的SDK v4.3.6,并试图使构建但我得到了一个

Most Important : During my first attempt, I downloaded the Facebook SDK v4.3.6 and tried making a build BUT I got an

Win32异常这对准器javac.exe

Win32 Exception which pointed at javac.exe

。因此,我不得不去与V4.2.4,因为我发现这是稳定的(不是升级的一个人好和坏的unity4.3.x)。

. So I had to go with v4.2.4 as i found this one stable (better than the upgraded one and bad for unity4.3.x).

所以,如果任何你们(所面临的/都面临着)这个问题,大家帮我出,并让我知道你们解决它Unity4.3(安卓)与最新的SDK。任何帮助将非常是AP preciated。

So If any of you guys (are facing/have faced) this issue, help me out of it and let me know how you guys resolved it for Unity4.3 (Android) with the latest sdk. Any help would highly be appreciated.

要具体我使用jdk1.7和Android工具版本R22。请不要劝我降级其中任何一个。

To be specific I'm using jdk1.7 and android tools revision r22. Please don't advise me to downgrade any of them.

在此先感谢。

推荐答案

那么这似乎很奇怪奇怪的是,我要回答我的问题,但我别无选择。

Well It seems oddly strange that I'm about to answer my own question but I have no choice.

不管怎么说,问题是我的JDK 1.6,我已经先安装2年前,我删除了它(与出卸载)。在这之后,我已经安装JDK7。奇怪,不是吗?

Anyways, The problem was with my jdk 1.6 that I had first installed 2 years ago, which i deleted it(with out uninstalling). And after that i had installed jdk7. Strange, right?

根据新的SDK,如果是的Java6安装在我的机器上,因为它已经存储在其中的条目,但文件已丢失,因此生成错误的机器人它似乎如此。 [请注意previous FD SDK版本4.2.x版及以下,并没有遵守这个规则,或什么的。]

So according to the new sdk it was seeming as if java6 was installed on my machine as it had the entry stored in it but the files were missing, and Hence the build error for android. [Please note that the previous fd sdk versions 4.2.x and below, were not following this rule or whatever.]

所以我就缺少DLL的为JDK6(相关,并基本安装进入更新的所有条目)和块数据是从我的系统中删除。

So I got the missing dll's for jdk6(All entries of the updates related to it and base installation entry) and the chunk data was removed from my system.

所以这里的链接我紧随其后。

之后,我综合了最新的SDK与unity4.3.3和一切细微的工作(虽然我有一些问题与keyhash一代的编辑器,从而导致进我编辑的CS脚本位)。

After that I integrated the newest sdk with with unity4.3.3 and everything worked fine(Though i had some issues with the keyhash generation on the editor, which resulted into me to edit the cs script a bit).

所有的一切,它工作得很好。我已经固定的套餐五4.3.6的错误。所以,如果您有任何疑问,或如果你想要的包,你可以找我帮忙的随时

All in all, it works well. I've fixed a bug with the package v 4.3.6. So if you have any queries or if you want the package, You can ask me for the help anytime.