CA Mobile API Gateway: Cordova Android build fails

Document ID : KB000099900
Last Modified Date : 24/07/2018
Show Technical Document Details
Issue:
The below error is received when building a Cordova app 


com\ca\mas\cordova\core\MASPluginMAS.java 
Error:(814, 29) error: method does not override or implement a method from a supertype 
Error:(816, 38) error: no suitable method found for onAuthCodeReceived(String,String) 
method AuthRenderer.onAuthCodeReceived(String) is not applicable 
(actual and formal argument lists differ in length) 
method PollingRenderer.onAuthCodeReceived(String) is not applicable 
(actual and formal argument lists differ in length) 
Error:Execution failed for task ':compileDebugJavaWithJavac'
Resolution:
This error is observed when using an unsupported version of Cordova. In particular it was found using a version of the SDK prior to 1.7 with Cordova 8.0.0.

As we did not officially support Cordova 8.x with SDK < 1.7 the below options are available to resolve this:

1) downgrade to 7.x 
2) Upgrade the SDK to a version that supports 8.x