Hi everyone, i made a game with unity which includes in facebook sdk.I can log in facebook on editor with sdk but on android i can not launch the app.When i try to launch app, it gives crash before splash screen but if i delete facebook sdk things on android manifest i can launch the app without problem.I understood there is a problem with facebook settings on android manifest.Can you help me ,what is the problem is there
Here it is my android manifest
https://pasteboard.co/IFay7U8.png
Thank for help.
↧
Facebook android sdk crash on launch
↧
Facebook Instant Game Console error
Hi,
I'm trying to test my facebook instant game and I'm getting an error in the browser console.
Below is the code that I execute with the "Login" button click.
var permissions = new List {"public_profile", "email"};
FB.LogInWithReadPermissions(permissions, AuthCallback);
After I clicked the "Login" button, the console show the below error and the game is stuck.
> Blocked opening> 'https://www.facebook.com/v2.6/dialog/oauth?app_id=3271731873434719&auth_type=rerequest&...&version=v2.6'> in a new window because the request> was made in a sandboxed frame whose> 'allow-popups' permission is not set.
![alt text][1]
I appreciate any help to resolve this issue.
[1]: /storage/temp/148635-screen-shot-2019-11-13-at-91023-am.png
↧
↧
Unity apk crach on launch (even before the splash screen), this start after import facebook sdk ,Unity apk crash before launch, after i import facebook sdk.
**Please someone needs help me with this, i tried a lot of things in other foruns asks like change the menifest, search for duplicate libraries and build with proguard after adding some lines, like in this link: " https://www.gitmemory.com/issue/facebook/facebook-sdk-for-unity/294/522680232 ". I anyone could give i new ideia to try, i would be grateful.**
Here is the logcat of the error:
----------
11-18 06:52:04.200 2758 6733 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.Studio.Game/com.unity3d.player.UnityPlayerActivity bnds=[640,628][839,894]} from uid 10050 11-18 06:52:04.224 2758 6939 I ActivityManager: Start proc 15445:com.Studio.Game/u0a415 for activity com.Studio.Game/com.unity3d.player.UnityPlayerActivity 11-18 06:52:04.271 15445 15445 D AndroidRuntime: Shutting down VM 11-18 06:52:04.272 15445 15445 E AndroidRuntime: FATAL EXCEPTION: main 11-18 06:52:04.272 15445 15445 E AndroidRuntime: Process: com.Studio.Game, PID: 15445 11-18 06:52:04.272 15445 15445 E AndroidRuntime: java.lang.RuntimeException: Unable to get provider com.facebook.FacebookContentProvider: java.lang.ClassNotFoundException: Didn't find class "com.facebook.FacebookContentProvider" on path: DexPathList[[zip file "/data/app/com.Studio.Game-gc6she2kVMFFVIMwBL2tYw==/base.apk"],nativeLibraryDirectories=[/data/app/com.Studio.Game-gc6she2kVMFFVIMwBL2tYw==/lib/arm, /data/app/com.Studio.Game-gc6she2kVMFFVIMwBL2tYw==/base.apk!/lib/armeabi-v7a, /system/lib, /system/vendor/lib]] 11-18 06:52:04.272 15445 15445 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:6356) 11-18 06:52:04.272 15445 15445 E AndroidRuntime: at android.app.ActivityThread.installContentProviders(ActivityThread.java:5919) 11-18 06:52:04.272 15445 15445 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5836) 11-18 06:52:04.272 15445 15445 E AndroidRuntime: at android.app.ActivityThread.-wrap1(Unknown Source:0) 11-18 06:52:04.272 15445 15445 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1697) 11-18 06:52:04.272 15445 15445 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106) 11-18 06:52:04.272 15445 15445 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164) 11-18 06:52:04.272 15445 15445 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6626) 11-18 06:52:04.272 15445 15445 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 11-18 06:52:04.272 15445 15445 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 11-18 06:52:04.272 15445 15445 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811) 11-18 06:52:04.272 15445 15445 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.facebook.FacebookContentProvider" on path: DexPathList[[zip file "/data/app/com.Studio.Game-gc6she2kVMFFVIMwBL2tYw==/base.apk"],nativeLibraryDirectories=[/data/app/com.Studio.Game-gc6she2kVMFFVIMwBL2tYw==/lib/arm, /data/app/com.Studio.Game-gc6she2kVMFFVIMwBL2tYw==/base.apk!/lib/armeabi-v7a, /system/lib, /system/vendor/lib]] 11-18 06:52:04.272 15445 15445 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125) 11-18 06:52:04.272 15445 15445 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:379) 11-18 06:52:04.272 15445 15445 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:312) 11-18 06:52:04.272 15445 15445 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:6341) 11-18 06:52:04.272 15445 15445 E AndroidRuntime: ... 10 more 11-18 06:52:04.276 2758 4026 W ActivityManager: Force finishing activity com.Studio.Game/com.unity3d.player.UnityPlayerActivity 11-18 06:52:04.279 2758 2781 I ActivityManager: Showing crash dialog for package com.Studio.Game u0 11-18 06:52:04.778 2758 2779 W ActivityManager: Activity pause timeout for ActivityRecord{6c79e9d u0 com.Studio.Game/com.unity3d.player.UnityPlayerActivity t568 f} 11-18 06:52:04.783 2758 2779 I ActivityManager: moveHomeStack, setupComplete:true 11-18 06:52:05.065 2758 2779 I ActivityManager: Killing 14417:com.android.providers.calendar/u0a17 (adj 906): empty #17 11-18 06:52:08.002 2758 4026 W ActivityManager: Force finishing activity com.Studio.Game/com.unity3d.player.UnityPlayerActivity 11-18 06:52:08.004 2758 4026 I ActivityManager: Killing 15445:com.Studio.Game/u0a415 (adj 900): crash 11-18 06:52:11.117 2758 6939 I ActivityManager: Start proc 15509:com.snapchat.android/u0a333 for service com.snapchat.android/com.firebase.jobdispatcher.GooglePlayReceiver
↧
Use of “@import” when C++ modules are disabled @import FBSDKCoreKit error
I exported a project from Unity, which included the Facebook SDK. Build gives an
Use of "@import" when C++ modules are disabled
error in the files of Facebook SDK.
I have: **Xcode v11.1; Unity 2019.2.6f; Facebook SDK for Unity v7.18.0;**
I tried to build a project with these parameters, errors remain
![alt text][1]
![alt text][2]
I will be grateful for your help!
[1]: https://i.stack.imgur.com/D8G1e.png
[2]: https://i.stack.imgur.com/Hlkt2.png
↧
I am using these Plugins --> Unity Admob Mediation (Applovin, Unity Ads, Facebook Ads, Inmobi) + Unity IAP + Facebook Analytics + GPGS
CommandInvokationFailure: Gradle build failed.
C:/Program Files/Unity/2019.2.6f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\OpenJDK\Windows\bin\java.exe -classpath "C:\Program Files\Unity\2019.2.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
stderr[
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':checkReleaseDuplicateClasses'.
> 1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class android.support.customtabs.ICustomTabsCallback found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class android.support.customtabs.ICustomTabsCallback$Stub found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class android.support.customtabs.ICustomTabsCallback$Stub$Proxy found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class android.support.customtabs.ICustomTabsService found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class android.support.customtabs.ICustomTabsService$Stub found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class android.support.customtabs.ICustomTabsService$Stub$Proxy found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class android.support.customtabs.IPostMessageService found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class android.support.customtabs.IPostMessageService$Stub found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class android.support.customtabs.IPostMessageService$Stub$Proxy found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class android.support.v4.app.INotificationSideChannel found in modules classes.jar (:androidx.core.core-1.0.0:) and classes.jar (:com.android.support.support-compat-27.1.0:)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules classes.jar (:androidx.core.core-1.0.0:) and classes.jar (:com.android.support.support-compat-27.1.0:)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules classes.jar (:androidx.core.core-1.0.0:) and classes.jar (:com.android.support.support-compat-27.1.0:)
Duplicate class android.support.v4.os.IResultReceiver found in modules classes.jar (:androidx.core.core-1.0.0:) and classes.jar (:com.android.support.support-compat-27.1.0:)
Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules classes.jar (:androidx.core.core-1.0.0:) and classes.jar (:com.android.support.support-compat-27.1.0:)
Duplicate class android.support.v4.os.IResultReceiver$Stub$Proxy found in modules classes.jar (:androidx.core.core-1.0.0:) and classes.jar (:com.android.support.support-compat-27.1.0:)
Duplicate class android.support.v4.os.ResultReceiver found in modules classes.jar (:androidx.core.core-1.0.0:) and classes.jar (:com.android.support.support-compat-27.1.0:)
Duplicate class android.support.v4.os.ResultReceiver$1 found in modules classes.jar (:androidx.core.core-1.0.0:) and classes.jar (:com.android.support.support-compat-27.1.0:)
Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules classes.jar (:androidx.core.core-1.0.0:) and classes.jar (:com.android.support.support-compat-27.1.0:)
Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules classes.jar (:androidx.core.core-1.0.0:) and classes.jar (:com.android.support.support-compat-27.1.0:)
Duplicate class androidx.browser.browseractions.BrowserActionItem found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class androidx.browser.browseractions.BrowserActionsFallbackMenuAdapter found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class androidx.browser.browseractions.BrowserActionsFallbackMenuAdapter$ViewHolderItem found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class androidx.browser.browseractions.BrowserActionsFallbackMenuDialog found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class androidx.browser.browseractions.BrowserActionsFallbackMenuDialog$1 found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class androidx.browser.browseractions.BrowserActionsFallbackMenuUi found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class androidx.browser.browseractions.BrowserActionsFallbackMenuUi$1 found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class androidx.browser.browseractions.BrowserActionsFallbackMenuUi$2 found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class androidx.browser.browseractions.BrowserActionsFallbackMenuUi$BrowserActionsFallMenuUiListener found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class androidx.browser.browseractions.BrowserActionsFallbackMenuView found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class androidx.browser.browseractions.BrowserActionsIntent found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class androidx.browser.browseractions.BrowserActionsIntent$BrowserActionsFallDialogListener found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class androidx.browser.browseractions.BrowserActionsIntent$BrowserActionsItemId found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class androidx.browser.browseractions.BrowserActionsIntent$BrowserActionsUrlType found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Duplicate class androidx.browser.browseractions.BrowserActionsIntent$Builder found in modules classes.jar (:androidx.browser.browser-1.0.0:) and classes.jar (:com.android.support.customtabs-27.1.0:)
Go to the documentation to learn how to Fix dependency resolution errors.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 22s
]
stdout[
> Configure project :
Exception while marshalling C:\Program Files\Unity\2019.2.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\28.0.3\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\2019.2.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\2019.2.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-28\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\2019.2.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\2019.2.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\28.0.3\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\2019.2.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\2019.2.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-28\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\2019.2.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only> Task :preBuild UP-TO-DATE> Task :GoogleMobileAdsAppLovinMediation:preBuild UP-TO-DATE> Task :GoogleMobileAdsAppLovinMediation:preReleaseBuild UP-TO-DATE> Task :GoogleMobileAdsAppLovinMediation:checkReleaseManifest> Task :GoogleMobileAdsAppLovinMediation:processReleaseManifest> Task :GoogleMobileAdsInMobiMediation:preBuild UP-TO-DATE> Task :GoogleMobileAdsInMobiMediation:preReleaseBuild UP-TO-DATE> Task :GoogleMobileAdsInMobiMediation:checkReleaseManifest> Task :GoogleMobileAdsInMobiMediation:processReleaseManifest> Task :GoogleMobileAdsPlugin:preBuild UP-TO-DATE> Task :GoogleMobileAdsPlugin:preReleaseBuild UP-TO-DATE> Task :GoogleMobileAdsPlugin:checkReleaseManifest> Task :GoogleMobileAdsPlugin:processReleaseManifest> Task :GooglePlayGamesManifest.plugin:preBuild UP-TO-DATE> Task :GooglePlayGamesManifest.plugin:preReleaseBuild UP-TO-DATE> Task :GooglePlayGamesManifest.plugin:checkReleaseManifest> Task :GooglePlayGamesManifest.plugin:processReleaseManifest> Task :preReleaseBuild> Task :GoogleMobileAdsAppLovinMediation:compileReleaseAidl NO-SOURCE> Task :GoogleMobileAdsInMobiMediation:compileReleaseAidl NO-SOURCE> Task :GoogleMobileAdsPlugin:compileReleaseAidl NO-SOURCE> Task :GooglePlayGamesManifest.plugin:compileReleaseAidl NO-SOURCE> Task :compileReleaseAidl NO-SOURCE> Task :GoogleMobileAdsAppLovinMediation:packageReleaseRenderscript NO-SOURCE> Task :GoogleMobileAdsInMobiMediation:packageReleaseRenderscript NO-SOURCE> Task :GoogleMobileAdsPlugin:packageReleaseRenderscript NO-SOURCE> Task :GooglePlayGamesManifest.plugin:packageReleaseRenderscript NO-SOURCE> Task :compileReleaseRenderscript NO-SOURCE> Task :checkReleaseManifest UP-TO-DATE> Task :generateReleaseBuildConfig UP-TO-DATE> Task :prepareLintJar UP-TO-DATE> Task :generateReleaseSources UP-TO-DATE> Task :GoogleMobileAdsAppLovinMediation:compileReleaseRenderscript NO-SOURCE> Task :GoogleMobileAdsAppLovinMediation:generateReleaseBuildConfig> Task :GoogleMobileAdsAppLovinMediation:generateReleaseResValues> Task :GoogleMobileAdsAppLovinMediation:generateReleaseResources> Task :GoogleMobileAdsAppLovinMediation:packageReleaseResources> Task :GoogleMobileAdsAppLovinMediation:generateReleaseRFile> Task :GoogleMobileAdsAppLovinMediation:prepareLintJar UP-TO-DATE> Task :GoogleMobileAdsAppLovinMediation:generateReleaseSources> Task :GoogleMobileAdsAppLovinMediation:javaPreCompileRelease> Task :GoogleMobileAdsAppLovinMediation:compileReleaseJavaWithJavac> Task :GoogleMobileAdsAppLovinMediation:bundleLibCompileRelease> Task :GoogleMobileAdsInMobiMediation:compileReleaseRenderscript NO-SOURCE> Task :GoogleMobileAdsInMobiMediation:generateReleaseBuildConfig> Task :GoogleMobileAdsInMobiMediation:generateReleaseResValues> Task :GoogleMobileAdsInMobiMediation:generateReleaseResources> Task :GoogleMobileAdsInMobiMediation:packageReleaseResources> Task :GoogleMobileAdsInMobiMediation:generateReleaseRFile> Task :GoogleMobileAdsInMobiMediation:prepareLintJar UP-TO-DATE> Task :GoogleMobileAdsInMobiMediation:generateReleaseSources> Task :GoogleMobileAdsInMobiMediation:javaPreCompileRelease> Task :GoogleMobileAdsInMobiMediation:compileReleaseJavaWithJavac> Task :GoogleMobileAdsInMobiMediation:bundleLibCompileRelease> Task :GoogleMobileAdsPlugin:compileReleaseRenderscript NO-SOURCE> Task :GoogleMobileAdsPlugin:generateReleaseBuildConfig> Task :GoogleMobileAdsPlugin:generateReleaseResValues> Task :GoogleMobileAdsPlugin:generateReleaseResources> Task :GoogleMobileAdsPlugin:packageReleaseResources> Task :GoogleMobileAdsPlugin:generateReleaseRFile> Task :GoogleMobileAdsPlugin:prepareLintJar UP-TO-DATE> Task :GoogleMobileAdsPlugin:generateReleaseSources> Task :GoogleMobileAdsPlugin:javaPreCompileRelease> Task :GoogleMobileAdsPlugin:compileReleaseJavaWithJavac> Task :GoogleMobileAdsPlugin:bundleLibCompileRelease> Task :GooglePlayGamesManifest.plugin:compileReleaseRenderscript NO-SOURCE> Task :GooglePlayGamesManifest.plugin:generateReleaseBuildConfig> Task :GooglePlayGamesManifest.plugin:generateReleaseResValues> Task :GooglePlayGamesManifest.plugin:generateReleaseResources> Task :GooglePlayGamesManifest.plugin:packageReleaseResources> Task :GooglePlayGamesManifest.plugin:generateReleaseRFile> Task :GooglePlayGamesManifest.plugin:prepareLintJar UP-TO-DATE> Task :GooglePlayGamesManifest.plugin:generateReleaseSources> Task :GooglePlayGamesManifest.plugin:javaPreCompileRelease> Task :GooglePlayGamesManifest.plugin:compileReleaseJavaWithJavac> Task :GooglePlayGamesManifest.plugin:bundleLibCompileRelease> Task :javaPreCompileRelease> Task :mainApkListPersistenceRelease UP-TO-DATE> Task :generateReleaseResValues UP-TO-DATE> Task :generateReleaseResources UP-TO-DATE> Task :mergeReleaseResources> Task :createReleaseCompatibleScreenManifests UP-TO-DATE> Task :processReleaseManifest> Task :processReleaseResources> Task :compileReleaseJavaWithJavac> Task :compileReleaseSources> Task :GoogleMobileAdsAppLovinMediation:prepareLintJarForPublish> Task :GoogleMobileAdsInMobiMediation:prepareLintJarForPublish> Task :GoogleMobileAdsPlugin:prepareLintJarForPublish> Task :GooglePlayGamesManifest.plugin:prepareLintJarForPublish UP-TO-DATE> Task :lintVitalRelease> Task :mergeReleaseShaders UP-TO-DATE> Task :compileReleaseShaders UP-TO-DATE> Task :generateReleaseAssets UP-TO-DATE> Task :GoogleMobileAdsAppLovinMediation:mergeReleaseShaders> Task :GoogleMobileAdsAppLovinMediation:compileReleaseShaders> Task :GoogleMobileAdsAppLovinMediation:generateReleaseAssets> Task :GoogleMobileAdsAppLovinMediation:packageReleaseAssets> Task :GoogleMobileAdsInMobiMediation:mergeReleaseShaders> Task :GoogleMobileAdsInMobiMediation:compileReleaseShaders> Task :GoogleMobileAdsInMobiMediation:generateReleaseAssets> Task :GoogleMobileAdsInMobiMediation:packageReleaseAssets> Task :GoogleMobileAdsPlugin:mergeReleaseShaders> Task :GoogleMobileAdsPlugin:compileReleaseShaders> Task :GoogleMobileAdsPlugin:generateReleaseAssets> Task :GoogleMobileAdsPlugin:packageReleaseAssets> Task :GooglePlayGamesManifest.plugin:mergeReleaseShaders> Task :GooglePlayGamesManifest.plugin:compileReleaseShaders> Task :GooglePlayGamesManifest.plugin:generateReleaseAssets> Task :GooglePlayGamesManifest.plugin:packageReleaseAssets> Task :mergeReleaseAssets> Task :validateSigningRelease UP-TO-DATE> Task :signingConfigWriterRelease UP-TO-DATE> Task :checkReleaseDuplicateClasses FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
75 actionable tasks: 60 executed, 15 up-to-date
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit,
↧
↧
Unity 2018 and Facebook SDK return cancelled = true Android 9 and 19
My Project use Unity3D 2018.4.14f1 and Facebook SDK for Unity version 7.18 Api version 5.0
Android SDK Target 28, minimum 19 and Public status is LIVE
I have permission Defalult and email .
I use FB.LogInWithReadPermissions(new List() { "public_profile", "email","user_friends"}, this.HandleResult); it's work on Android 8 below, can login with no warning or error.
On Android 9 and above it's return Cancelled when I build with Split application binary (apk + bob).
When I try build full apk( no split application binary) it's return query with no permission. When I use FB.LogInWithReadPermissions(new List() { "public_profile", "email"}, this.HandleResult); it's return error invalid query.
When I try again with Split Application Binary (apk + obb) it's always return result
{"callback_id":"2","key_hash":"My Android Release KeyStore Hash\n","cancelled":true}
Problem Occurred only on Android 9 and 10, iOS and Android lower version is working well.
Anyone have solutions ?
FB Login
↧
How can I make proper Facebook Payment via Unity WebGL?
Hi,
I am trying to make unity webgl game. I'm currently working with my own python django server. But there's few problems I am confronting right now.
First, when client completes the payment behavior, it repeatedly shows javascript error. Here's the error code:
Invoking error handler due to
Uncaught abort(219) at Error
at jsStackTrace (lottery.wasm.framework.unityweb:8:22313)
at stackTrace [Object.stackTrace] (lottery.wasm.framework.unityweb:8:22484)
at Object.onAbort (https://lottery-server.ntucorp.com/static/game/Build/UnityLoader.js:4:11047)
at abort (lottery.wasm.framework.unityweb:8:521824)
at wasm-function[62206]:0x1143303
at wasm-function[25973]:0x9c45e6
at wasm-function[61403]:0x111d42f
at wasm-function[27992]:0xa2a9df
at wasm-function[50781]:0xeabcd7
at wasm-function[35699]:0xba8a56
at wasm-function[35698]:0xba8997
at wasm-function[35744]:0xbaa780
at wasm-function[26171]:0x9c9232
at wasm-function[35758]:0xbab0e3
at wasm-function[26171]:0x9c9232
at wasm-function[35768]:0xbab37e
at wasm-function[23663]:0x9815d2
at wasm-function[61943]:0x11424be
at dynCall_iiiii [Object.dynCall_iiiii] (lottery.wasm.framework.unityweb:8:494571)
at invoke_iiiii (lottery.wasm.framework.unityweb:8:362010)
at wasm-function[59810]:0x10db82f
at wasm-function[59101]:0x10b9e40
at wasm-function[4047]:0x197f91
at wasm-function[4046]:0x197ebf
at wasm-function[7537]:0x2c346b
at wasm-function[7534]:0x2c283b
at wasm-function[11356]:0x483dc2
at wasm-function[9973]:0x3cab31
at blob:https://lottery-server.ntucorp.com/d6308b13-98d3-4a85-abfd-0c7db365fcfd:8:438788
at ccall [Object.ccall] (lottery.wasm.framework.unityweb:8:16382)
at SendMessage (lottery.wasm.framework.unityweb:8:9099)
at sendMessage [Object.sendMessage] (lottery.wasm.framework.unityweb:8:48724)
at uiCallback (lottery.wasm.framework.unityweb:8:50342)
at a.__wrapper.a.__wrapper (https://connect.facebook.net/en_US/sdk.js?hash=11641b2e4a5fab828e74fff5f206cf37&ua=modern_es6:93:765)
at Object.cb (https://connect.facebook.net/en_US/sdk.js?hash=11641b2e4a5fab828e74fff5f206cf37&ua=modern_es6:145:4420)
at c (https://connect.facebook.net/en_US/sdk.js?hash=11641b2e4a5fab828e74fff5f206cf37&ua=modern_es6:145:10332)
at a.c.read (https://connect.facebook.net/en_US/sdk.js?hash=11641b2e4a5fab828e74fff5f206cf37&ua=modern_es6:125:737)
at a._processor (https://connect.facebook.net/en_US/sdk.js?hash=11641b2e4a5fab828e74fff5f206cf37&ua=modern_es6:127:283)
at a.b.enqueue (https://connect.facebook.net/en_US/sdk.js?hash=11641b2e4a5fab828e74fff5f206cf37&ua=modern_es6:126:711)
at Object.u [as onMessage] (https://connect.facebook.net/en_US/sdk.js?hash=11641b2e4a5fab828e74fff5f206cf37&ua=modern_es6:143:2477)
at https://connect.facebook.net/en_US/sdk.js?hash=11641b2e4a5fab828e74fff5f206cf37&ua=modern_es6:136:2925
at https://connect.facebook.net/en_US/sdk.js?hash=11641b2e4a5fab828e74fff5f206cf37&ua=modern_es6:50:208
I'm using Unity Facebook SDK, so in unity c# script I call this function.
FB.Canvas.Pay(
product_url,
quantity:1,
callback:ProductCallback
);
And, anyway it gives callback function back, and the response of this callback is this.
PayResponse:{"callback_id":"4","response":{"payment_id":1794879660642720,"amount":"2.99","currency":"USD","quantity":"1","request_id":"","status":"initiated","signed_request":"r4_00GLFbodYSMVeVGfFcfuzIr1HQKd9EYiO_OM0eXM.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImFtb3VudCI6IjIuOTkiLCJjdXJyZW5jeSI6IlVTRCIsImlzc3VlZF9hdCI6MTU3ODA0MzI2OCwicGF5bWVudF9pZCI6MTc5NDg3OTY2MDY0MjcyMCwicXVhbnRpdHkiOiIxIiwicmVxdWVzdF9pZCI6IiIsInN0YXR1cyI6ImluaXRpYXRlZCJ9"}}
And secondly I cannot make Facebook Unity SDK workable, which is FB.Canvas.PayWithProductID. It just don't work, It just omits javascript error (UnityLoader.js error which is similar to one which I already mentioned), and also it do not give callback.
Also In document, https://developers.facebook.com/docs/games_payments/payments_lite?locale=ko_KR In here it says proper code would be FB.PayWithProductID, but Facebook SDK does not have any FB.PayWithProductID. All it have is FB**.Canvas.**PayWithProductID.
How can I get proper callback from facebook? I cannot get any kind of callback parameters. All I recieve is that the fact facebook called my callback url, not containing any GET parameters. I just return request.GET.get('hub.challenge'), but anyway it is still None.
Why does it happen? please help.
↧
invalid key hash
when i logged in from android device it gives me invalid keyhash error. when i entered that keyhash in my developer console it works fine but only for this device. other devices give same errors.
why not a common keyhash for all android devices?
↧
[URGENT HELP] unity build for andorid Fails everytime, EVERYTIME
Hi, i'll probably kill myself if i dont solve this problem in the next hour. I cant get this simplest thing DONE.
Whats wrong with facebook sdk and android Build.
PATHETIC
hi, so i keep getting the error when i try to build. When i build using internal i get cant repackage error. and when i use gradle i get this.
"CommandInvokationFailure: Gradle build failed.
C:/Program Files/Java/jdk1.8.0_181\bin\java.exe -classpath "C:\Program Files\Unity5.6\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-2.14.jar" org.gradle.launcher.GradleMain "assembleRelease"
stderr[
C:\Users\HP\Documents\unity5Projects\one\Temp\gradleOut\build\intermediates\res\merged\release\values\values.xml:126: AAPT: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.NoActionBar'.
C:\Users\HP\Documents\unity5Projects\one\Temp\gradleOut\build\intermediates\res\merged\release\values\values.xml:131: AAPT: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Dialog'.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\HP\AppData\Local\Android\Android-sdk\build-tools\28.0.3\aapt.exe'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
]"
FOR THE LOVE OF GOD PLEASE PLEASE PLEASE HELP ME FIGURE THIS OUT.
↧
↧
Facebook instant games with Unity without tiny mode
I trying to make a messenger instant game, but which way should I take,
I mean I learned Javascript but still don't know what to do and can't wait for unity tiny release and it aslo will take sometime for polishing,
so what should I learn to be able to create a game that uses the instant games sdk (javascript) with unity how can I make them communicate after build?!
and do I have to use this sdk or facebook sdk is enough?
suggest anyway for the game it doesn't have to be as I mentioned I don't have enough knowledge.
↧
Facebook sdk get friend only return null
I'm try to build two test user already be the friend and login App.
----------
My login function
FB.LogInWithReadPermissions(new List() { "public_profile", "email", "user_friends" }, this.EventHandleLogin);
----------
my get friend funcion
FB.API("/me/friends", HttpMethod.GET, FriendCallBack);
`public void FriendCallBack(IGraphResult result)
{
IDictionary data = result.ResultDictionary;
List
↧
Facebook Banner Ad Issue in Unity
I am using the facebook audience network in Unity for advertisement. I am currently facing an issue while showing facebook banner ads in unity. Just when i call banner ad show call. Exception triggers:
java.lang.illegalargumentexception: adsize at com.facebook.ads.redexgen.x.8h.(:18251)
Anybody knows how can I resolve this issue? Thanks in advance
↧
After adding Facebook SDK Unity hangs on "Getting Installed Android SDK packages"
Steps:
1. Installed latest version of Unity (2019.2.18f1)
2. Created a new 2D project
3. Imported custom package for Facebook SDK (downloaded from https://developers.facebook.com/docs/unity).
Once this is done, Unity3d brings up a dialog that states: "Getting Installed Android SDK packages"
If I try to run the empty project, Unity hangs.
Note that I have checked in Preferences->Unity Tools to use the Android JDK, SDK and NDK installed with Unity.
Does anyone know how to fix this?
↧
↧
How to reduce loading time of facebook instant game in "mobiles"?
HI.
My facebook instant game is taking 15 sec to Load.But it has to load within 5 seconds.In desktop it is loading quickly.
game.data.unityweb size is 1.5 mb And
game.wasm.code.unityweb size is 4.8 mb.
upto 90% it is loading quickly but it is taking time for the remainig 10%
is there any way to reduce the loading time in mobile ?
Thank you
↧
Post score to Facebook
Ok, I give in. I have tried and tried but it seems either I am doing something wrong or it just can't be done.
Basically, as the title suggests, I want to be able to post a score to my Facebook profile so that my friends can see. I would also like to be able to invite friends to play, as in "look what I am playing, give it a go". Not wanting to be able to buy lives or play multiplayer though.
So I have the Facebook API. Followed the example scene to be able to init and log in. I can even us FB.ShareLink to post to my timeline a link to my games Facebook page. That seems to work ok.
Using FB.FeedShare creates a very simple post with only the name of the game included. No little image of the game, no score or text.
All I am wanting to do is have either the icon of the game (from the url) and a little text saying "Hey, I just scored 1234! Try and beat it" or something similar.
I have searched the internet and there doesn't seem to be anything from the lat year that works. Some of the comments I have read seem to imply the FB api has changed and what I am wanting to do is no longer possible! Is this something that can only be gone using FB Graph? Or am I just missing something really obvious.
This is the last feature I am needing to implement in order to get my game to beta test stage so any help is greatly (very greatly) appreciated.
↧
Facebook sharing
Has anybody been able to integrate the new Facebook Sharing SDK into Unity? I have the latest Facebook for Unity SDK v 7.18.1. According to files on Github it includes the Facebook sharing files and the function I am wanting to utilise, ShareLinkContent, but I cannot find it in any of the FB namespaces.
According to Facebook, they want us to use Facebook Sharing SDK after they depreciated the old FeedShare functions.
Trying to fand any info on this is just impossible, but all I want to do is open a share dialog from Unity and share a score. Am I asking the impossible? Surely someone must have done this since they depreciated the FeedShare functions?
Thanks in advance.
↧
How to make Facebook Deep Linking Through Facebook SDK
I want to send a notification from facebook developer portal via Deep link option and now i am able to send the notification from portal to facebook able on which my application installed and the linked facebook ID is logged In.
But my problem is when i just clicked the notification, app open but i am not able to go on pacifistic path or not able to do specific move from deeplinking in my unity application.
if anybody know how to do with Manifest or Facebook coding something.
please Help
↧
↧
Why does facebook SDK only work in the editor?
I am making a game for android using the Facebook SDK and the Login and sharing method only works in the editor and does not work on Android mobile.
public void FacebookLogin()
{
var permissions = new List() { "public_profile", "email", "user_friends" };
FB.LogInWithReadPermissions(permissions);
loginCanvas.SetActive(false);
}
↧
how to fixe ios probleme in instant game Webgel ?
hello guyss !!
i have the game unity version 2018.2.6f1 , is working without problem but , when i want build webgl for facebook instant game , i have the problem with ios , the game is work in desktop and in android but the ios is crashed any solution for that please !
![alt text][1]
![alt text][2]
thanks
[1]: /storage/temp/153454-88101148-651930522049847-1198535173981863936-n.jpg
[2]: /storage/temp/153455-ssd.png
↧
Facebook SDK Unity : Facebook file is missing in Assets/Plugins/iOS
I have successfully implemented the facebooksdk for android and am now trying to build my project for iOS using xcode but there was an error. The error was that I was missing a FBSDKShareKit file. I searched in the Unity Editor and i actually was missing the file. I googled it up and its suppose to be in Assets/Plugins/iOS/Facebook but I am missing that particular Facebook folder. Any advice on this? I've followed instructions on here : https://developers.facebook.com/docs/unity/getting-started/ios
i even reimported the facebook sdk unity package. there is no such file in Assets/Plugins/iOS.
error:
![error message][1]
[1]: /storage/temp/154624-screenshot-2020-03-20-at-45547-pm.png
↧