-
-
Notifications
You must be signed in to change notification settings - Fork 62
how to use #29
Comments
@wearta but which errors you have?) |
i am using phonegap build |
You have not posted enough information here to diagnose the cause of your build failure. You'd need to post the build log which contains the error message from the Android Gradle build process. Also note that this plugin relies on Cordova build cycle hooks to run a script to apply the Gradle changes in order to specify a non-default version of the Android Support Library.Phonegap Build does not support Cordova hooks and therefore the script will not work in the Phonegap Build environment, meaning you will always be using the default version as specified in this plugin's Gradle file (currently v27.+ )regardless of any other value you specify in the Despite not having the actual Android build error message to look at, I can hazard a guess: |
Build Date: 2018-07-31 13:22:30 +0000PLUGIN OUTPUTFetching plugin "cordova-plugin-statusbar" via npm
Fetching plugin "cordova-plugin-image-picker" via npm The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml. If this is a new application no changes are required. If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
to config.xml in order for the application to find previously stored files.
|
From the build log, we can now see that actual cause of the build failure:
If you Google this, you will find StackOverflow questions like this one. As suspected, the cause is multiple versions of the Android Support Library being included into your build. However, the SO answers involve editing the Gradle config in the native Android project. In your case, because you are using Phonegap Build, the native Android project is volatile and generated dynamically on every new build. If you were building your Phonegap project locally, you would also be able to view the main Gradle config file ( Therefore this plugin is of little help to you, since even if you could identify which versions of the library are being included, you can't override them using this plugin to a specified version. I would therefore recommend you remove this plugin from your project. You only option is to fork the facebook plugins you are using so you can edit their Gradle config to change the specified Support Library versions and then include these forked plugins into your PGB project. Due to the limitations of Phonegap Build, I think that it's suitable for only the simplest of projects. If you are doing anything more complex, the only real solution is to move to a local build environment where the native platform projects are directly under your control. Closing this issue because this is not a problem with this plugin, but with Phonegap Build |
@dpa99c so how can i use cordova-plugin-facebookads |
I think that's a question to raise in an issue against |
i have two plugins conflict with each other when i build the app in phonegap build
cordova-plugin-facebook5
cordova-plugin-facebookads
please help
The text was updated successfully, but these errors were encountered: