Layer7 API Management

 View Only

MAS Cordova on IOS compiled for Android

  • 1.  MAS Cordova on IOS compiled for Android

    Broadcom Employee
    Posted May 09, 2019 05:53 PM

    Trying to use the MAS foundations, 


    The Cordova Code is being written on an mac osx 

    But being compiled for Android (possibly IOS as well but the focus has been Android).

    Failure occurring.

    Getting following error,
    { "errorCode":-1, "errorMessage":"java.lang.reflect.InvocationTargetException","errorInfo":" java.lang.reflect.InvocationTargetException\n\tat\n\tat\n\tat<init>(\n\tat\n\tat\n\tat\n\tat
    MASPluginUser.execute(\n\tat org.apache.cordova.CordovaPlugin.execute(\n\tat org.apache.cordova.
    PluginManager.exec(\n\tat org.apache.cordova.CordovaBridge.jsExec(\n\tat org.apache.cordova.engine.
    newInstance(\n\tat\n\t... 14 more\nCaused 
    by: java.lang.IllegalArgumentException: Account type cannot be null.\n\tat<init>
    17 more\n"}


    The above Account type cannot be null seems to indicate to me that the steps below Need to be followed. 


    Problem is that the steps referenced are for Android (like android studio) being written on Windows. 
    And they require steps through Cordova tool either specific steps within Cordova on Mac or from the Cordova command line post compile. 
    Since it stated any of the changes like updating the android manifest referenced seem to be written by the compile option for Android within Cordova. When it builds out the android app.