简体   繁体   中英

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. However, prior to installing the Facebook SDK I had no issues with this and have built numerous APKs for testing purposes. The Android SDK paths are still there in my external tools section.

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. I've attached a screenshot of the error message and the SDK paths below.

SDK Error And Locations Screenshot

这是 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. I found some help here: 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. 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.

Please note that Unity will be fine with the built-in SDK; it's just a Facebook issue and it exists as of the time of posting this answer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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