IBM Support

PH08680: CORDOVA ANDROID BUILD COMMAND IN RELEASE MODE FAILS WITH PUSH PLUGIN

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

  • Product components impacted: Push Plug-in
    Affected mobile development environments: Cordova Android
    Mobile Devices Operating Systems impacted: Android
    User roles impacted: Developer
    Distribution: Fix Central
    Versions affected: 8.0
    With proguard enabled Cordova command to to build android
    platform in release mode fails with build error.
    
    Error:
    /Users/Prem/Documents/testing/MFPclientUpgrade/MobileV2/MobileV2
    /platforms/android/gradlew: Command failed with exit code 1
    Error output:
    Note: there were 7 duplicate class definitions.
    (http://proguard.sourceforge.net/manual/troubleshooting.html#dup
    licateclass)
    Warning:
    com.ibm.mobilefirstplatform.clientsdk.android.push.api.MFPPushIn
    stanceIDListenerService: can't find superclass or interface
    com.google.android.gms.iid.InstanceIDListenerService
    Warning:
    com.ibm.mobilefirstplatform.clientsdk.android.push.api.MFPPushIn
    stanceIDListenerService: can't find referenced class
    com.google.android.gms.iid.InstanceIDListenerService
    Warning:
    com.ibm.mobilefirstplatform.clientsdk.android.push.api.MFPPushIn
    stanceIDListenerService: can't find referenced class
    com.google.android.gms.iid.InstanceIDListenerService
    FAILURE: Build failed with an exception.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Hybrid Push notification users.                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * CORDOVA ANDROID BUILD COMMAND IN RELEASE MODE FAILS WITH     *
    * PUSH PLUGIN                                                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    With Proguard enabled, cordova build command was failing with
    error.
    

Problem conclusion

  • Updated the min SDK version in push plugin to 26.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH08680

  • Reported component name

    MOBILE1ST PF EN

  • Reported component ID

    5725I4300

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-02-18

  • Closed date

    2019-02-26

  • Last modified date

    2019-02-26

  • 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 PF EN

  • Fixed component ID

    5725I4300

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:
26 February 2019