but when i remove the push notification plugin its working fine
Error
:compileDebugRenderscript
UP-TO-DATE
:generateDebugBuildConfig
:generateDebugResValues UP-TO-DATE
:processDebugGoogleServices
Parsing json file: E:\IONIC_2\Securityagc\platforms\android\google-services.json
:generateDebugResources
:mergeDebugResources
:processDebugManifest
:processDebugResources
:generateDebugSources
:incrementalDebugJavaCompilationSafeguard
:compileDebugJavaWithJavac
:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no p
revious execution, etc.).
E:\IONIC_2\Securityagc\platforms\android\src\com\adobe\phonegap\push\FCMService.
java:393: error: constructor Builder in class Builder cannot be applied to given
types;
mBuilder = new NotificationCompat.Builder(context, channelID);
^
required: Context
found: Context,String
reason: actual and formal argument lists differ in length
E:\IONIC_2\Securityagc\platforms\android\src\com\adobe\phonegap\push\FCMService.
java:403: error: constructor Builder in class Builder cannot be applied to given
types;
mBuilder = new NotificationCompat.Builder(context, channelID);
^
required: Context
found: Context,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.
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
:compileDebugJavaWithJavac FAILED
BUILD FAILED
Total time: 27.477 secs
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
Error: cmd: 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.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
E:\IONIC_2\Securityagc\platforms\android\src\com\adobe\phonegap\push\FCMService.
java:393: error: constructor Builder in class Builder cannot be applied to given
types;
mBuilder = new NotificationCompat.Builder(context, channelID);
^
required: Context
found: Context,String
reason: actual and formal argument lists differ in length
E:\IONIC_2\Securityagc\platforms\android\src\com\adobe\phonegap\push\FCMService.
java:403: error: constructor Builder in class Builder cannot be applied to given
types;
mBuilder = new NotificationCompat.Builder(context, channelID);
^
required: Context
found: Context,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.
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
[ERROR] An error occurred while running cordova build android (exit code 1).
ionic info
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.8
Cordova Platforms : none
Ionic Framework : ionic-angular 3.9.2
System:
Node : v8.9.4
npm : 5.6.0
OS : Windows 7
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro
please help me out anyone
Thanks