Git Product home page Git Product logo

Comments (8)

juanpestana96 avatar juanpestana96 commented on August 25, 2024 2

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.

hvallenilla avatar hvallenilla commented on August 25, 2024 2

This work for me

ionic cordova build android --release -- --minSdkVersion=15

from cordova-plugin-facebook4.

fredgalvao avatar fredgalvao commented on August 25, 2024

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.

ArtKuz avatar ArtKuz commented on August 25, 2024

Thank you. It's work!

from cordova-plugin-facebook4.

deliverymanager avatar deliverymanager commented on August 25, 2024

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.

hirbod avatar hirbod commented on August 25, 2024

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.

deliverymanager avatar deliverymanager commented on August 25, 2024

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.

hirbod avatar hirbod commented on August 25, 2024

Yes, you're welcome. 15+ can't be installed trough the crosswalk plugin, only 14+.

from cordova-plugin-facebook4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.