Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19314] Android Map doesn't compile with 4.1.0.GA

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-08-05T04:51:46.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 4.1.1
ComponentsAndroid
Labelsregression
ReporterHieu Pham
AssigneeHieu Pham
Created2015-08-04T22:04:38.000+0000
Updated2015-09-21T18:45:32.000+0000

Description

Building map module with 4.1.0.GA result in with this error: [javac] KrollDict d = ((TiViewProxy) obj).toImage(); [javac] ^ [javac] required: KrollDict [javac] found: TiBlob [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 1 error [javac] 10 warnings This is the result of a method signature change in: https://github.com/appcelerator/titanium_mobile/pull/6907 Reproducible steps: 1. Build the module with 4.1.0.GA and observe the logs.

Comments

  1. Hieu Pham 2015-08-04

    map PR: https://github.com/appcelerator-modules/ti.map/pull/113 master PR: https://github.com/appcelerator/titanium_mobile/pull/7006 4.1.X PR: https://github.com/appcelerator/titanium_mobile/pull/7007
  2. Ashraf Abu 2015-08-05

    Updating travis for TiMap https://github.com/appcelerator-modules/ti.map/pull/114
  3. Ashraf Abu 2015-08-05

    Merged.
  4. Wilson Luu 2015-08-06

    Closing ticket as fixed. Verified that I was able to reproduce the original fail case when I reverted https://github.com/appcelerator-modules/ti.map back to commit fbcc395fccd05e4f5a7ee110d6af817e24474330. And, I was able to verify the fix with latest commit on https://github.com/appcelerator-modules/ti.map with SDK 4.1.0.GA. Tested on: https://github.com/appcelerator-modules/ti.map/android Commit: a50dd6418241c10bb24e76e869d96e64fdd9bfb2 SDK: 4.1.0.GA OS: Yosemite (10.10.4)
  5. Hieu Pham 2015-08-19

    master PR: https://github.com/appcelerator/titanium_mobile/pull/7050
  6. Manuel Lehner 2015-09-03

    [~hpham] I'm trying to use ti.map v2.3.3 together with another module that uses the google-play-services library (https://github.com/Sitata/titanium_google_plus) but I cannot compile the app anymore. How do I fix that other module? This is the error:
       [ERROR] Failed to run dexer:
       [ERROR]
       [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION:
       [ERROR] java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/LifecycleDelegate;
       [ERROR]         at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
       [ERROR]         at com.android.dx.dex.file.DexFile.add(DexFile.java:161)
       [ERROR]         at com.android.dx.command.dexer.Main.processClass(Main.java:732)
       [ERROR]         at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)
       [ERROR]         at com.android.dx.command.dexer.Main.access$300(Main.java:83)
       [ERROR]         at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)
       [ERROR]         at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
       [ERROR]         at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
       [ERROR]         at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
       [ERROR]         at com.android.dx.command.dexer.Main.processOne(Main.java:632)
       [ERROR]         at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)
       [ERROR]         at com.android.dx.command.dexer.Main.runMonoDex(Main.java:280)
       [ERROR]         at com.android.dx.command.dexer.Main.run(Main.java:246)
       [ERROR]         at com.android.dx.command.dexer.Main.main(Main.java:215)
       [ERROR]         at com.android.dx.command.Main.main(Main.java:106)
       [ERROR]
       [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION:
       [ERROR] java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/maps/GoogleMap$13;
       [ERROR]         at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
       [ERROR]         at com.android.dx.dex.file.DexFile.add(DexFile.java:161)
       [ERROR]         at com.android.dx.command.dexer.Main.processClass(Main.java:732)
       [ERROR]         at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)
       [ERROR]         at com.android.dx.command.dexer.Main.access$300(Main.java:83)
       [ERROR]         at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)
       [ERROR]         at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
       [ERROR]         at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
       [ERROR]         at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
       [ERROR]         at com.android.dx.command.dexer.Main.processOne(Main.java:632)
       [ERROR]         at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)
       [ERROR]         at com.android.dx.command.dexer.Main.runMonoDex(Main.java:280)
       [ERROR]         at com.android.dx.command.dexer.Main.run(Main.java:246)
       [ERROR]         at com.android.dx.command.dexer.Main.main(Main.java:215)
       [ERROR]         at com.android.dx.command.Main.main(Main.java:106)
       [ERROR] 2 errors; aborting
       

JSON Source