IBM Support

PH16097: CANNOT BUILD ANDROID APP WITH PUSH PLUGIN ADDED.

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Cannot build Android app with push plugin added.
    Configure project :app
    Project evaluation failed including an error in afterEvaluate
    {}. Run with --stacktrace for details of the afterEvaluate {}
    error.
    
    FAILURE: Build failed with an exception.
    
    * Where:
    Script
    '/Users/srihari/tmp/superhero/ionic/platforms/android/cordova-pl
    ugin-mfp-push/superhero-build-extras.gradle' line: 2
    
    * What went wrong:
    A problem occurred evaluating script.
    > java.lang.Integer cannot be cast to java.lang.String
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Android users using MFP cordova applications                 *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * With latest gradle, build fails to recognize minSDK version  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Expected value is String instead of integer. We changed
    minSDKversion as string. Issue was seen only with latest gradle.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH16097

  • Reported component name

    MOBILE1ST PLATF

  • Reported component ID

    5725I4301

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-08-27

  • Closed date

    2019-09-17

  • Last modified date

    2019-09-17

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    MOBILE1ST PLATF

  • Fixed component ID

    5725I4301

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"800","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 September 2019