Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26134] Android: Crashes when importing Ti.CloudPush in 7.2.0 SDK

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2018-07-05T15:40:22.000+0000
Affected Version/sRelease 7.2.0
Fix Version/sRelease 7.3.0
ComponentsAndroid
Labelsandroid, cloudpush, google-play-services
ReporterVittorio Sorbera
AssigneeGary Mathews
Created2018-06-15T14:56:34.000+0000
Updated2018-07-05T18:08:40.000+0000

Description

Importing this modules on tiapp.xml manifest
<module platform="android" version="5.1.0">ti.cloudpush</module>    
<module platform="android" version="11.0.40">ti.playservices</module>
the build fails during running dexer, with this error:
[ERROR] Failed to run dexer:
[ERROR]   
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/appcelerator/aps/BuildConfig;
[ERROR] 1 error; aborting
The problem does not seem to occur using the previous version of ti.cloudpush (5.0.2)

Attachments

FileDateSize
ti.cloudpush-android-5.1.2.zip2018-06-18T11:20:34.000+0000184914

Comments

  1. Carlos Luis Seva 2018-06-17

    I've the same bug. Also, I've done a clean installation and I only have 7.2.0.GA now. Where can I download the previous version 5.0.2 of ti.cloudpush? Thanks
  2. Vittorio Sorbera 2018-06-18

    You have to download a previous SDK, for example 7.1.1 http://builds.appcelerator.com.s3.amazonaws.com/index.html#7_1_X
  3. Hans Knöchel 2018-06-18

    Might be related to MOD-2432, can you try the attached module?
  4. Vittorio Sorbera 2018-06-18

    I can't access to the repo https://github.com/appcelerator-modules/cloudpush, maybe I need permission?
  5. Hans Knöchel 2018-06-18

    Thats why I had attached it to this ticket.
  6. Gary Mathews 2018-06-18

    ti.cloudpush: https://github.com/appcelerator-modules/cloudpush/releases/tag/android-5.1.2
  7. Vittorio Sorbera 2018-06-18

    Sorry, I had not noticed the attachment. OK, with this version 5.1.2 it seems to work :)
  8. Gary Mathews 2018-06-18

    titanium_mobile: https://github.com/appcelerator/titanium_mobile/pull/10118 titanium_mobile-7_3_X: https://github.com/appcelerator/titanium_mobile/pull/10119
  9. Josh Longton 2018-07-05

    *Closing ticket.* The fix is present in SDK: {noformat} 7.3.0.v20180703051211 {noformat} and ti.cloudpush 5.1.2
  10. patilamrut 2018-07-05

    This doesnt work on vpc env at all.

JSON Source