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

Error while building #631

Open
mashrurbd opened this issue Feb 3, 2020 · 2 comments
Open

Error while building #631

mashrurbd opened this issue Feb 3, 2020 · 2 comments

Comments

@mashrurbd
Copy link

This error occurred while building:
Error - Some official plugins have to be updated if using PhoneGap >= 4.0.0. Please upgrade the version of any plugins that may include the following file: MyFirebaseInstanceIDService.java - You can fix this here

My config.xml is as below:

`

npio

npio


NPIO

<gap:plugin name="cordova-plugin-customurlscheme" source="npm">

<preference name="fullscreen" value="false"/>
<preference name="StatusBarBackgroundColor" value="#c2c0bf" />
<content src="index.html" />
<icon src="icon.png" />
<plugin name="cordova.plugins.diagnostic" spec="~3.6.8" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<plugin name="cordova-plugin-geolocation" spec="~2.4.3" />
<plugin name="cordova-plugin-camera" spec="~2.4.1" />
<plugin name="cordova-plugin-file" spec="~6.0.0" />
<plugin name="cordova-plugin-statusbar" spec="~2.2.3" />

<plugin name="cordova-plugin-network-information" spec="~1.3.3" />
<plugin name="cordova-plugin-vibration" spec="~3.1.0" />
<plugin name="cordova-plugin-contacts" spec="~3.0.1" />
<plugin name="cordova-plugin-media-capture" spec="~3.0.2" />
<plugin name="phonegap-plugin-barcodescanner" />

<platform name="android">
	<resource-file src="google-services.json" target="/app/google-services.json" />
</platform>
<plugin name="cordova-plugin-fcm" source="npm" />

`

@bendspoons
Copy link

bendspoons commented Feb 13, 2020

IM not 100% sure, but i think ive encountered the same error in Android Studio:

error: cannot find symbol class FirebaseInstanceIdService error: cannot find symbol class FirebaseInstanceIdService error: method does not override or implement a method from a supertype

this is because of some "wrong" settings in build.gradle (app level). Simply replace

compile "com.google.firebase:firebase-core:+" compile "com.google.firebase:firebase-messaging:+"

in the dependencies setion with

implementation 'com.google.firebase:firebase-core:16.0.8' implementation 'com.google.firebase:firebase-messaging:17.6.0'

@mashrurbd
Copy link
Author

mashrurbd commented Feb 13, 2020 via email

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