[AC-1012] Android build with ti.cloudpush fails on SDK 4.1.1
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2015-10-28T01:15:20.000+0000 |
Affected Version/s | Appcelerator Studio 4.3.1 |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Conny Brunnkvist |
Assignee | Radamantis Torres-Lechuga |
Created | 2015-10-22T13:10:52.000+0000 |
Updated | 2016-03-08T07:37:20.000+0000 |
Description
Steps to Reproduce
Failed to run dexer - impossible to build using 5.0.3 CLIActual Result
UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/LifecycleDelegate;Expected Result
A successful Android build with ti.cloudpush module available.Attachments
File | Date | Size |
---|---|---|
.log | 2015-10-22T13:11:03.000+0000 | 636581 |
diagnostic7779652863286003910.log | 2015-10-22T13:11:33.000+0000 | 162999 |
Hi , I have tested this issue. I can't reproduce it . I tested this using the ti.cloudpush 3.4.0 Environment :
Thanks
Thank you so much for your feedback. I think I just solved it myself: taking a closer look at the dexer command line parameters, it turned out to, of course, be a case of two Titanium Android-native modules containing the same google-services .jar file which caused it to fail. I see that it is quite a common snafu for devs, and I would hope MOD-1985 at some point gets resolved to provide a general solution to these issues. The conflicting modules in my case were
ti.admob
andti.cloudpush
, both containinglib/google-play-services.jar
. I was able to work around it by making a project-local copy of an older version of the module asmodules/android/ti.cloudpush/3.3.8-jarfix1
, pinning that version in mytiapp.xml
, and finally deleting the jar file in the project localmodules/android/ti.admob/2.1.5/lib/
.