Facebook的SDK团结5.0.2测试版不会对Android设备的工作 [英] Facebook SDK for Unity 5.0.2 Beta doesn't work on Android Device
问题描述
统一:4.3.1
设备:三星I9300
Facebook的SDK团结:5.0.2测试版
当我使用Facebook SDK团结4.3.6,这个效果很好。
当我使用5.0.2测试版,这是行不通的。当我在设备上运行 FB.Init
,它显示了
在Facebook的DLL:未加载
块引用>Facebook的设置是一样的4.3.6,但我改变了类的名称
com.facebook.unity.FBUnityPlayerActivity
到com.facebook .unity.FBUnityDeepLinkingActivity
在facebook.com。但是,这也不行。<?XML版本=1.0编码=UTF-8&GT?;
<清单的xmlns:机器人=http://schemas.android.com/apk/res/android包=com.unity3d.player安卓的installLocation =preferExternal机器人:主题=@安卓:风格/ Theme.NoTitleBar安卓版code =1机器人:=的versionName1.0>
<支持屏安卓smallScreens =真正的机器人:normalScreens =真正的机器人:largeScreens =真正的机器人:xlargeScreens =真正的机器人:anyDensity =真/>
<应用机器人:图标=@绘制/ app_icon机器人:标签=@字符串/ APP_NAME机器人:可调试=真正的>
<活动机器人:名字=com.unity3d.player.UnityPlayerNativeActivity机器人:launchMode =singleTask机器人:标签=@字符串/ APP_NAME android:configChanges=\"fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen\">
&所述;意图滤光器>
<作用机器人:名字=android.intent.action.MAIN/>
<类机器人:名字=android.intent.category.LAUNCHER/>
&所述; /意图滤光器>
<元数据机器人:名字=unityplayer.ForwardNativeEventsToDalvik机器人:值=FALSE/>
< /活性GT;
<活动机器人:名字=com.facebook.unity.FBUnityLoginActivity安卓主题=@安卓风格/ Theme.Translucent.NoTitleBar.Fullscreen>
< /活性GT;
<活动机器人:名字=com.facebook.LoginActivity机器人:screenOrientation =肖像机器人:configChanges =keyboardHidden |定位机器人:主题=@安卓风格/ Theme.Translucent.NoTitleBar.Fullscreen>
< /活性GT;
<活动机器人:名字=com.facebook.unity.FBUnityDeepLinkingActivity机器人:出口=真正的>
< /活性GT;
<元数据机器人:名字=com.facebook.sdk.ApplicationId机器人:值=\\ 487550674688377/>
< /用途>
< /清单>
解决方案资产/插件/ Android的/ Facebook的缺少此版本中的bin文件夹。我不认为有任何包含二进制的Android。可以尝试从源头code栋它在Eclipse。
Unity: 4.3.1 Device:Samsung I9300 Facebook SDK for Unity: 5.0.2 Beta
When I use Facebook SDK for Unity 4.3.6, this works well.
When I use 5.0.2 Beta, it does not work. When I run
FB.Init
on device, it showsThe Facebook Dll : not Loaded
Facebook settings are the same as in 4.3.6, but I changed the Class Name
com.facebook.unity.FBUnityPlayerActivity
tocom.facebook.unity.FBUnityDeepLinkingActivity
in the facebook.com. But this doesn't work either.<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" android:installLocation="preferExternal" android:theme="@android:style/Theme.NoTitleBar" android:versionCode="1" android:versionName="1.0"> <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" /> <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="true"> <activity android:name="com.unity3d.player.UnityPlayerNativeActivity" android:launchMode="singleTask" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" /> </activity> <activity android:name="com.facebook.unity.FBUnityLoginActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"> </activity> <activity android:name="com.facebook.LoginActivity" android:screenOrientation="portrait" android:configChanges="keyboardHidden|orientation" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"> </activity> <activity android:name="com.facebook.unity.FBUnityDeepLinkingActivity" android:exported="true"> </activity> <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="\ 487550674688377" /> </application> </manifest>
解决方案Assets/Plugins/Android/Facebook is missing the bin folder in this release. I don't think there is any Android binary included. Could try building it in Eclipse from the source code.
这篇关于Facebook的SDK团结5.0.2测试版不会对Android设备的工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!