简体   繁体   English

为什么Unity3d Facebook SDK无法识别Android SDK?

[英]Why The Unity3d Facebook SDK Does Not Recognize Android SDK?

The Facebook settings tab in Unity (after installing the facebook sdk) says the Android SDK is not setup. Unity 中的 Facebook 设置选项卡(安装 facebook sdk 后)表示未设置 Android SDK。 However, prior to installing the Facebook SDK I had no issues with this and have built numerous APKs for testing purposes.但是,在安装 Facebook SDK 之前,我对此没有任何问题,并且已经构建了许多用于测试目的的 APK。 The Android SDK paths are still there in my external tools section. Android SDK 路径仍然存在于我的外部工具部分。

I was hoping someone who has experienced this before could point me in the right direction.我希望以前经历过这种情况的人可以为我指明正确的方向。 I'm not sure if it's a version conflict, or if it's just one of Unity's many shenanigans.我不确定这是版本冲突,还是 Unity 的众多恶作剧之一。 I've attached a screenshot of the error message and the SDK paths below.我在下面附上了错误消息和 SDK 路径的屏幕截图。

SDK Error And Locations Screenshot SDK 错误和位置截图

这是 Facebook SDK 的一些错误,只需取消选中 Android SDK 的“Installed with Unity”并再次检查,警告就会消失,但我仍然认为它不会导致任何错误

I have encountered the very same thing;我也遇到过同样的事情; apparently, it is about the way Facebook API is looking for your android SDK, but I don't have much more detail.显然,这是关于 Facebook API 寻找您的 android SDK 的方式,但我没有更多细节。 I found some help here: https://forum.unity.com/threads/you-dont-have-android-sdk-setup-facebbok-sdk.835435/我在这里找到了一些帮助: https : //forum.unity.com/threads/you-dont-have-android-sdk-setup-facebbok-sdk.835435/

Deselect the default build-in Android SDK and replace it with another one.取消选择默认的内置 Android SDK 并将其替换为另一个。 Sorry for not being more helpful, in my case Unity detected another SDK right after unchecking the default SDK Tool and it is working now.很抱歉没有提供更多帮助,在我的情况下,Unity 在取消选中默认 SDK 工具后立即检测到另一个 SDK,它现在正在工作。

Please note that Unity will be fine with the built-in SDK;请注意,Unity 可以使用内置 SDK; it's just a Facebook issue and it exists as of the time of posting this answer.这只是一个 Facebook 问题,并且在发布此答案时存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM