Comments (8)
I've update the Android Support Library and install the Android Support Repository and the project just build without troubles.
Another tip is that facebook-android-sdk from this repo cannot run android sdk min version 14, it has to be from 15+.
from cordova-plugin-facebook4.
This work for me
ionic cordova build android --release -- --minSdkVersion=15
from cordova-plugin-facebook4.
This project requires facebook-android-sdk
which requires an android-support local library of at least version 22
, preferably 23
(source here). It is obtained and updated through the android sdk manager.
If you have the android sdk folders in your $PATH
, you should be able to run android
on a command line and let it update everything for you.
The fact that your project is not compiling means that you have an older version of android-support installed. Once you update your android sdk tools everything should work just fine.
This is the same issue as phonegap/phonegap-plugin-push#141, btw, so you might be able to use one of the specific solutions mentioned there.
from cordova-plugin-facebook4.
Thank you. It's work!
from cordova-plugin-facebook4.
I have the same problem and the following can reproduce it.
ionic start testwithcrosswalk
cd testwithcrosswalk
cordova platform add android
cordova plugin add cordova-plugin-facebook4 --save --variable APP_ID="123456789" --variable APP_NAME="myApplication"
cordova build android /with success/
ionic browser add crosswalk
cordova build android /will pop an error about version 15. So then I change in config.xml the xwalkVersion to 15+. The android-minSdkVersion was set from ionic to 16.
Then I build again/
cordova build android /*Now a new error Could not find any version that matches org.xwalk:xwalk_core_library:15+.
Even though I have every android library there is installed
*/
What am I missing? This issue just has to do with the facebook4 plugin. It is not a conflict of sdk libraries, multiple dex files etc.
Hope someone can reproduce it and help me!
from cordova-plugin-facebook4.
As already posted more then 10 times, it's a crosswalk bug (somethin gets overwritten). You need to build it with a workaround.
cordova run android -- --minSdkVersion=15
Did you see the double -- ? This is important.
For release
cordova build android --release -- --minSdkVersion=15
from cordova-plugin-facebook4.
Thank you for your answer.
The reason that
cordova run android -- --minSdkVersion=15
did not work for me was the fact that I went in the config.xml and changed the xwalkVersion to 15+ instead of 14+.
This change was suggested in another post, but it was the actual problem.
So the only thing that is needed as you have already posted elsewhere is to build with
cordova run android -- --minSdkVersion=15
Thank you!
from cordova-plugin-facebook4.
Yes, you're welcome. 15+ can't be installed trough the crosswalk plugin, only 14+.
from cordova-plugin-facebook4.
Related Issues (20)
- Plugin does not work on browser platform with Cordova 9 HOT 1
- get acces_token for send in my personnal login HOT 1
- cordova-plugin-facebook4 issue with UIWebView HOT 29
- Unable to start the app and initializing the SDK. HOT 2
- IOS ITMS-90683: Missing Purpose String in Info.plist - NSLocationWhenInUseUsageDescription HOT 1
- Compatibility Facebook SDK v7 HOT 10
- Cordova app closes after displaying Facebook login screen HOT 1
- App/Plugins/cordova-plugin-facebook4/FacebookConnectPlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler HOT 1
- On FB Dialog Login Screen HOT 2
- How i can get deep link?
- Error: Unable to merge dex HOT 1
- While using latest version of google plugin with cordova-plugin-facebook4 app is crashing HOT 1
- IONIC 5 - delay transition pages after login HOT 1
- Got error on facebook/index.js file on login HOT 1
- Facebook Login Suddenly Fails on Oct 1st - Permission Error HOT 4
- Facebook login is not redirecting back to app when you facebook app installed HOT 5
- Facebook api calling a users picture (no redirect) HOT 1
- unable to upgrade to FB SDK (iOS) 8.1.0 HOT 21
- IOS facebook sdk 5.15.0 is deprecated HOT 2
- Failed to install 'cordova-plugin-facebook4': Error: pod: Command failed with exit code 1 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-facebook4.