Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install when using Phonegap Build #1

Open
aahedi opened this issue Mar 1, 2020 · 1 comment
Open

Failed to install when using Phonegap Build #1

aahedi opened this issue Mar 1, 2020 · 1 comment

Comments

@aahedi
Copy link

aahedi commented Mar 1, 2020

Halo, I'm using
PhoneGap (iOS / Android / Windows)
cli-9.0.0 (5.0.1 / 8.0.0 / 7.0.0)

this log from Phonegap Build

Subproject Path: CordovaLib
Subproject Path: app
Subproject Path: CordovaLib
Subproject Path: app
6b9d0a513a8af130c06f664c1ac5bcfb609e3188
"plugman-151 install --platform android --project /var/gimlet/tmp/47259896215940/3862570 --plugin https://github.com/TheJKM/cordova-plugin-simple-notification.git --nohooks=.": Fetching plugin "https://github.com/TheJKM/cordova-plugin-simple-notification.git" via git clone
Using shallow clone
Repository "https://github.com/TheJKM/cordova-plugin-simple-notification.git" checked out to git ref "master" at "6b9d0a5".
Installing "cordova-plugin-simple-notification" at "0.0.1" for android
Plugin dependency "[email protected]" already fetched, using that version.
Dependent plugin "cordova-plugin-device" already installed on android.
Failed to install 'cordova-plugin-simple-notification': CordovaError: Version of installed plugin: "[email protected]" does not satisfy dependency plugin requirement "cordova-support-google-services@~1.2.1". Try --force to use installed plugin as dependency.
    at /opt/npm-packages/lib/node_modules/pgb-plugman-151/node_modules/pgb-cordova-lib/src/plugman/install.js:557:37
    at _fulfilled (/opt/npm-packages/lib/node_modules/pgb-plugman-151/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/opt/npm-packages/lib/node_modules/pgb-plugman-151/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/opt/npm-packages/lib/node_modules/pgb-plugman-151/node_modules/q/q.js:749:13)
    at /opt/npm-packages/lib/node_modules/pgb-plugman-151/node_modules/q/q.js:509:49
    at flush (/opt/npm-packages/lib/node_modules/pgb-plugman-151/node_modules/q/q.js:108:17)
    at _combinedTickCallback (internal/process/next_tick.js:132:7)
    at process._tickCallback (internal/process/next_tick.js:181:9)
Version of installed plugin: "[email protected]" does not satisfy dependency plugin requirement "cordova-support-google-services@~1.2.1". Try --force to use installed plugin as dependency.
@TheJKM
Copy link
Owner

TheJKM commented Oct 8, 2020

Sorry for the late response. You have a dependency problem, as the plugin requires cordova-support-google-services 1.2.x, and you have 1.3.2.
I don't use Phonegap Build, but with Cordova CLI you can simply run cordova plugin install [email protected]. With Cordova Android 9, you can completely remove the dependency from plugin.xml and add the preference GradlePluginGoogleServicesEnabled to your Cordova-android project.

I'll have a look if I can remove the dependency from the plugin while requiring cordova-android 9 or later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants