Issue building Facebook SDK on Android (SOLVED)

I have added the Facebook SDK as per these instructions and Google Play Services as per these.

When building for Android I get this error:

Line 58: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').

What am I missing?

Update: I tried to change the “/builtins/manifests/android/AndroidManifest.xml” to the one in Facebook and GSM, which produced a sea of new aggressive errors.

Share your list of dependencies here and I’ll give it a try myself.

Those will be merged into your base AndroidManifest.xml that you specify in game.project.

1 Like
dependencies = https://github.com/britzl/defold-orthographic/archive/master.zip,https://github.com/britzl/monarch/archive/master.zip,https://github.com/selimanac/defold-random/archive/master.zip,https://github.com/britzl/defold-metrics/archive/master.zip,https://github.com/AGulev/DefVideoAds/archive/master.zip,https://github.com/defold/extension-iap/archive/master.zip,https://github.com/GameAnalytics/defold-openssl/archive/master.zip,https://github.com/GameAnalytics/GA-SDK-DEFOLD/archive/master.zip,https://github.com/britzl/gooey/archive/master.zip,https://github.com/defold/extension-facebook/archive/master.zip,https://github.com/defold/extension-gps/archive/master.zip

Oh, wait, hold on. The instructions for the Facebook extension are not correct (I should have noticed this when we discussed a clarification earlier today regarding https://defold.com/manuals/facebook/#installing-the-extension). Facebook no longer needs extension-gps. This is solved by Gradle. Remove extension-gps from your list of dependencies.

Also I strongly recommend that you do not depend on the master branch of any extension. Don’t depend on:

https://github.com/defold/extension-facebook/archive/master.zip

Instead always depend on a specific version:

https://github.com/defold/extension-facebook/archive/2.4.0.zip

(from https://github.com/defold/extension-facebook/releases)

1 Like

Updated now. Sorry about that.

Done, and it works! Thanks a lot for having a look.

I’ve been meaning to do just that, thanks for the kick up the backside. I was able to change all dependencies above using a specific release, apart from these (they didn’t seem to have any releases other than the dynamic link):

https://github.com/britzl/defold-metrics/archive/master.zip
https://github.com/GameAnalytics/defold-openssl/archive/master.zip

It’s a good habit to do it for all extensions that have released versions at least.

I have so many Defold related projects on GitHub that I completely forgot about this one! :slight_smile:

1 Like

Coming up to release, so I feel good for doing it now. Who knows what will happen between now and the next update.

You do have quite a few ones, so I’ll let you off. This time!

1 Like