Facebook-sdk-for-unity: Recognize Unity's built-in Android SDK

Created on 13 May 2020  路  9Comments  路  Source: facebook/facebook-sdk-for-unity

Checklist

Environment

  • Unity Editor Version: 2019.3.3f1
  • Unity SDK Version: I don't know what it means, never heard of 'Unity SDK', It's just Unity.
  • Installation Platform & Verison: [Android] version Q - API 21
  • Facebook SDK Version: 7.19.2

Goals

Simply build the project without any troubleshoot

Expected Results

It should recognize Unity's built-in SDK path if it is correct. Which is like: C:/Program Files/Unity/Hub/Editor/2019.3.3f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK

Eventually, project should be successfully compiled.

Actual Results

Image:
Annotation 2020-05-13 215346

Steps to Reproduce

  1. Create a new Unity 2019.3 project
  2. Import the latest Facebook SDK 7.19.2
  3. Use Unity's default External Tools
  4. Switch to Android
  5. Build the project

Refs

Ref: https://forum.unity.com/threads/fixed-ucb-team-android-builds-with-the-facebook-sdk-are-failing-17th-march.461561/

Ref: https://forum.unity.com/threads/you-dont-have-android-sdk-setup-facebbok-sdk.835435/

Thanks!

bug

Most helpful comment

this is still a thing till today OMG! facebook just update already!

All 9 comments

I have the same problem each time I update Unity.
You can uncheck the "xxx installed with unity" checkbox, correct the url (for me the unity version) of the jdk, sdk ... and then recheck the check box.

Getting the same issue with Unity 2020.1

It looks like they've fixed this in 7ad0cb94585c84fa53c565d53f03981cc056970d

It looks like they've fixed this in 7ad0cb9

@Andreyul
you are wrong - fix works only when you include plugin as sources - because there's no UNITY_2019_1_OR_NEWER during .dll build which is provided in .unitypackage

PS
And I tell you more - there at least two other bugs with #if )) (maybe I'll contribute fixes later)

this is still a thing till today OMG! facebook just update already!

this is still a thing till today OMG! facebook just update already!

May 2021, i'm coming from the future to tell You. This is still a thing i can't work around it, since i'm not familiar to those Android Dev Ops. Tried every Unity Version i have to avoid messsing around with JDKs......and folders.

this is still a thing till today OMG! facebook just update already!

May 2021, i'm coming from the future to tell You. This is still a thing i can't work around it, since i'm not familiar to those Android Dev Ops. Tried every Unity Version i have to avoid messsing around with JDKs......and folders.

Is this still happening in latest version of Unity and Plugin?

cc: @KylinChang

this is still a thing till today OMG! facebook just update already!

May 2021, i'm coming from the future to tell You. This is still a thing i can't work around it, since i'm not familiar to those Android Dev Ops. Tried every Unity Version i have to avoid messsing around with JDKs......and folders.

Is this still happening in latest version of Unity and Plugin?

cc: @KylinChang

It happened with the latest version of unity 2021 and SDK 9.1 or 9.25, not completely sure since 9.2 released same day i tried to solve this.

I found a away, unchecking the boxes and pasting the same value it has, solved the problem to me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MorganMoon picture MorganMoon  路  7Comments

manofspirit picture manofspirit  路  6Comments

JuGGerNaunT picture JuGGerNaunT  路  3Comments

laijingfeng picture laijingfeng  路  6Comments

Duke74 picture Duke74  路  4Comments