Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

A plugin you are using requires a preference: FACEBOOK_ANDROID_SDK_VERSION #753

Closed
fgubert opened this issue Mar 8, 2019 · 5 comments
Closed

Comments

@fgubert
Copy link

fgubert commented Mar 8, 2019

Bug

[x] I'm reporting a reproducible issue with the code
[ ] I'm reporting a feature request

Describe the Bug of feature request

I was using version 1.7.4 in my app, but i had to upgrade because of the minSdkVersion on phonegap Build. When i try to install the last version, and then compile, i got this error:
Error - A plugin you are using requires a preference: FACEBOOK_ANDROID_SDK_VERSION

My app is build on Phonegap (last version), and compiled on https://build.phonegap.com

Full compile log from Phonegap Build:
https://pastebin.com/A93076R8

My Config file:

<preference name="ANDROID_SDK_VERSION" value="4.40.0" /> <preference name="FACEBOOK_ANDROID_SDK_VERSION" value="4.40.0" /> <plugin name="cordova-plugin-facebook4" spec="4.2.1"> <variable name="APP_ID" value="172419546878979" /> <variable name="APP_NAME" value="TopInvest - Integração APP" /> <variable name="FACEBOOK_HYBRID_APP_EVENTS" value="false" /> <variable name="FACEBOOK_ANDROID_SDK_VERSION" value="4.40.0" /> </plugin> <config-file parent="/resources" target="./res/values/strings.xml"> <string name="fb_app_id">172419546878979</string> <string name="fb_app_name">TopInvest - Integração APP</string> </config-file>

I even tried to create a new app from scratch and compile, and got the same error.

Full config file:
https://pastebin.com/WwSX2hVT

Expected Behavior

To compile without errors

Plugin version, OS, devices, etc

Plugin Version: 4.40.0
Platforms: Android / iOS / Browser

@peterpeterparker
Copy link
Collaborator

peterpeterparker commented Mar 8, 2019

Plz use other channels like Stackoverflow for support request

That being it's maybe because your cordova/phonegap version is "too old"?

You could have a look to:

https://github.com/jeduan/cordova-plugin-facebook4/tree/master/docs/android

and

#599

@vpc30
Copy link

vpc30 commented Apr 26, 2019

@fgubert Did you find a solution to this problem? I've also tried to build my application through build.phonegap.com, but I've encountered the same issue.

@fgubert
Copy link
Author

fgubert commented Apr 26, 2019

@vpc30 For what i see, is something related to another plugin that i use that cause some kind of conflict.
The only way that worked for me was trying older versions until i find one that worked.
I'm currently using the version 4.2.1

@mgh-html
Copy link

Was your problem solved?
If so, how was it resolved?

@fgubert
Copy link
Author

fgubert commented Aug 24, 2020

@mgh-html not using the plugin anymore. Too much problems.
And leaving cordova/phonegap as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants