fereops.blogg.se

Phonegap android studio gradle
Phonegap android studio gradle











phonegap android studio gradle

Most of the time, installing a Cordova plugin in Capacitor is as simple as running: npm install name-of-plugin This means that, in general, you won't need to give up access to the plugins you want to use if you move to Capacitor. It will take some time before Capacitor plugins are as prolific as their Cordova counterparts, which is why it is fortunate that we can still use Cordova plugins in Capacitor.

phonegap android studio gradle

Capacitor has its own method for allowing developers to create plugins, for themselves or for the community in general, but this ecosystem is still in its infancy as Capacitor is a relatively new project. As the gradle files are regenerated every time the project is built, we need to configure the dependencies in the project settings.Cordova has a huge ecosystem of existing plugins that have been created over the past decade. Since my mobile app uses the Google Play Service, I also need to the apply the similar change.

phonegap android studio gradle

releaseCompile(project(path: "CordovaLib", configuration: "release")) debugCompile(project(path: "CordovaLib", configuration: "debug")) compile fileTree(dir: 'libs', include: '*.jar') So I modified the new dependencies section as below, just for testing the build: ReleaseCompile(project(path: "CordovaLib", configuration: "release"))Ĭompile ":play-services-location:+"Ĭompile ":support-v4:+" In my adle, it still remains as:Ĭompile fileTree(dir: 'libs', include: '*.jar')ĭebugCompile(project(path: "CordovaLib", configuration: "debug")) After I upgraded my Android Studio to version 3 which also updates the Gradle build system to version 4, my Sencha mobile app (with Cordova) suddenly stops building with the following errors:ĭidn’t realise my Cordova/Android is using quite an old version of Gradle, so click the link to “Fix Gradle wrapper and re-import project” which prompts the following dialog:Ĭlick then ‘Update’ button and it builds the project with the new Gradle update but it comes back with errors from building the CordovaLib subproject.Īfter reading the migration guideline, it seems that the Android Studio has already performed all the necessary updates to the adle file except the “Migrate dependency configurations for local modules” section.













Phonegap android studio gradle