Hi,
keep on getting this error. Does it sound familiar?
Error: /Users/user/Sites/app/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/Users/user/Sites/app/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:129: error: constructor Builder in class Builder cannot be applied to given types;
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, channelId);
^
required: Context
found: FirebasePluginMessagingService,String
reason: actual and formal argument lists differ in length
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
FAILURE: Build failed with an exception.
cordova CLI: v7.1.0
cordova-android: v6.4.0
OS: macOS v10.13.4
I'm trying to make use of this plugin along with the following:
"cordova-android-firebase-gradle-release": {
"FIREBASE_VERSION": "12.+"
},
"cordova-android-play-services-gradle-release": {
"PLAY_SERVICES_VERSION": "12.+"
},
This is what I'm targeting in the config.xml:
<preference name="android-minSdkVersion" value="17" />
<preference name="android-targetSdkVersion" value="23" />
I am having the same issue
I have the same issue too, please help
@asifmehmood91 @zahersi I sorted this out doing the following:
<plugin name="cordova-android-firebase-gradle-release" spec="^1.0.2">
<variable name="FIREBASE_VERSION" value="11.0.+" />
</plugin>
<plugin name="cordova-android-play-services-gradle-release" spec="^1.4.3">
<variable name="PLAY_SERVICES_VERSION" value="11.0.+" />
</plugin>
android-minSdkVersion up, from 17 to 18cordova-android 7.0.0 whereas before, I was using 6.4.0.p.s. Make sure to delete the generated iOS and android folders within the platforms directory and build everything from scratch with cordova prepare or cordova platform add ...
Hope this helps.
thanks @fabrz but unfortunately I'm still getting the same error message when trying to build or run on android.
my installed plugins are:
`
`
my config.xml contains:
<plugin name="cordova-android-firebase-gradle-release" spec="^1.0.2">
<variable name="FIREBASE_VERSION" value="11.0.+" />
</plugin>
<plugin name="cordova-android-play-services-gradle-release" spec="^1.4.3">
<variable name="PLAY_SERVICES_VERSION" value="11.0.+" />
</plugin>
<plugin name="cordova-plugin-firebase" spec="cordova-plugin-firebase">
<variable name="ANDROID_SUPPORT_VERSION" value="26.+" />
</plugin>
<engine name="android" spec="^7.0.0" />
can you help please
thanks @fabrz it worked using cordova-android-support-gradle-release
I upgraded my cordova-android-support-gradle-release's ANDROID_SUPPORT_VERSION variable from 25.+ to 26.+ and it worked
original issue link:
https://github.com/arnesson/cordova-plugin-firebase/issues/676
I have this error when using with facebook ads plugins from https://github.com/floatinghotpot/cordova-plugin-facebookads
(Actually it's this one:
cordova plugin add https://github.com/ElieSauveterre/cordova-plugin-facebookads#d540140816f93ee37ebef8cf5b05e438db17588a
)
When I remove the FB ads plugin it works good.
Does anyone using both of these plugins together, successfully?
Thanks.
closing as resolved since the original creator has found a fix
@soumak77 it would be great if you posted what the fix is .... I looked at the change log and didnt find anything that mentioned this error.
Most helpful comment
@soumak77 it would be great if you posted what the fix is .... I looked at the change log and didnt find anything that mentioned this error.