Unity:4.3.1 设备:三星I9300 适用于Unity的Facebook SDK:5.0.2 Beta
当我使用适用于Unity 4.3.6的Facebook SDK时,效果很好。
当我使用5.0.2 Beta时,它不起作用。当我在设备上运行FB.Init
时,会显示
Facebook Dll:未加载
Facebook设置与4.3.6相同,但我在facebook.com中将类名com.facebook.unity.FBUnityPlayerActivity
更改为com.facebook.unity.FBUnityDeepLinkingActivity
。但这也不起作用。
<?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>
答案 0 :(得分:3)
资产/插件/ Android / Facebook缺少此版本中的bin文件夹。我认为不包含任何Android二进制文件。可以尝试从源代码在Eclipse中构建它。