I want to integrate this plugin : https://github.com/salesforce-marketingcloud/MC-Cordova-Plugin into an already existing app that run Cordova 5.4.1.
I can install the plugin but when I try to build the app (for android) I get this mistake :
* What went wrong:
A problem occurred configuring root project 'android'.
Could not resolve all dependencies for configuration ':_debugCompile'. Could not find com.android.support:support-v4:26.0.0. Searched in the following locations: https://repo1.maven.org/maven2/com/android/support/support-v4/26.0.0/support-v4-26.0.0.pom https://repo1.maven.org/maven2/com/android/support/support-v4/26.0.0/support-v4-26.0.0.jar http://salesforce-marketingcloud.github.io/JB4A-SDK-Android/repository/com/android/support/support-v4/26.0.0/support-v4-26.0.0.pom http://salesforce-marketingcloud.github.io/JB4A-SDK-Android/repository/com/android/support/support-v4/26.0.0/support-v4-26.0.0.jar file:/C:/tools/android-sdk-windows/extras/android/m2repository/com/android/support/support-v4/26.0.0/support-v4-26.0.0.pom file:/C:/tools/android-sdk-windows/extras/android/m2repository/com/android/support/support-v4/26.0.0/support-v4-26.0.0.jar file:/C:/tools/android-sdk-windows/extras/google/m2repository/com/android/support/support-v4/26.0.0/support-v4-26.0.0.pom file:/C:/tools/android-sdk-windows/extras/google/m2repository/com/android/support/support-v4/26.0.0/support-v4-26.0.0.jar Required by: :android:unspecified > com.salesforce.marketingcloud:marketingcloudsdk:5.2.0 Could not find com.android.support:support-annotations:26.0.0. Searched in the following locations: https://repo1.maven.org/maven2/com/android/support/support-annotations/26.0.0/support-annotations-26.0.0.pom file:/C:/tools/android-sdk-windows/extras/android/m2repository/com/android/support/support-annotations/26.0.0/support-annotations-26.0.0.pom file:/C:/tools/android-sdk-windows/extras/android/m2repository/com/android/support/support-annotations/26.0.0/support-annotations-26.0.0.jar file:/C:/tools/android-sdk-windows/extras/google/m2repository/com/android/support/support-annotations/26.0.0/support-annotations-26.0.0.pom file:/C:/tools/android-sdk-windows/extras/google/m2repository/com/android/support/support-annotations/26.0.0/support-annotations-26.0.0.jar Required by: :android:unspecified > com.salesforce.marketingcloud:marketingcloudsdk:5.2.0 Could not find com.android.support:support-v4:26.0.0. Searched in the following locations: https://repo1.maven.org/maven2/com/android/support/support-v4/26.0.0/support-v4-26.0.0.pom file:/C:/tools/android-sdk-windows/extras/android/m2repository/com/android/support/support-v4/26.0.0/support-v4-26.0.0.pom file:/C:/tools/android-sdk-windows/extras/android/m2repository/com/android/support/support-v4/26.0.0/support-v4-26.0.0.jar file:/C:/tools/android-sdk-windows/extras/google/m2repository/com/android/support/support-v4/26.0.0/support-v4-26.0.0.pom file:/C:/tools/android-sdk-windows/extras/google/m2repository/com/android/support/support-v4/26.0.0/support-v4-26.0.0.jar Required by: :android:unspecified > com.salesforce.marketingcloud:marketingcloudsdk:5.2.0 > com.google.android.gms:play-services-gcm:11.0.1 > com.google.android.gms:play-services-basement:11.0.1
I can make it work with a recent version of Cordova, but only after adding a line of code in the source code of the plugin itself.
As I understand, the app doesn't access the good repository and can't download the support library it needs.
Does anyone have already used this plugin ? Does it word with older version of cordova ?