Giter VIP home page Giter VIP logo

Comments (15)

Luca4k4 avatar Luca4k4 commented on July 20, 2024 3

Removing global installation of TiMap I SOLVED THE PROBLEM! Now compile!!!

from ti.goosh.

progress44 avatar progress44 commented on July 20, 2024

Hi Luca,
Check out this related issues #14, #15 which have already been resolved.

from ti.goosh.

Luca4k4 avatar Luca4k4 commented on July 20, 2024

Hey,
sorry if i open again but before to publish my error i've read all other questions about same issue. I followed the procedure that worked for #15 but i still have the problem.
I installed your last version of ti.goosh (very thank for this! it will be very usefull for me!) and version 3.0 of ti.map, together installed by " gittio install .... ", then i replaced all GPS jars in lib, overwritten the version of version.xml files and added the string <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/> to tiapp.xml

If it's interesting, i'm using Titanium (sdk v.5.4.0.GA) with TiShadow. I'm using as other module "TiParseJs" and i have the others basic modules (created by TiShadow, but without the 'lib' directory, so i suppose they don't use GPS).

Could you help me? I need a solution for my universitary project..

Regards, Luca

from ti.goosh.

progress44 avatar progress44 commented on July 20, 2024

Hi @Luca4k4,
delete all the google play services libraries (from ti.map module and Ti.Goosh). Get the GPS jar that suits you the best from this repository, you can find it under gps/jars. It seems like you'd need GCM + Maps
Copy this jar library inside the ti.goosh module folder under lib.
TiParseJS is a commonJS module so it doesn't cause any problems. Make sure you're using the latest version of Ti.Goosh (1.5.0)

from ti.goosh.

Luca4k4 avatar Luca4k4 commented on July 20, 2024

Thank you for quickly reply. I replaced your "GCM + Maps" file with "Google-play-services-tigoosh" (under tigoosh/1.5.0/lib) and with "Google-play-services-map" and "Google-play-services-base" (under timap/3.0/lib) but anyway the error occured. There is a specific name that should the new jars file have?

from ti.goosh.

progress44 avatar progress44 commented on July 20, 2024

No they're included automatically but you have to delete the google-play-services-map under ti.map/3.0/lib. Delete all the files inside ti.map/3.0/lib

from ti.goosh.

Luca4k4 avatar Luca4k4 commented on July 20, 2024

i removed google-play-services-map and google-play-services-base from lib in timap

from ti.goosh.

progress44 avatar progress44 commented on July 20, 2024

can you paste the error log?

from ti.goosh.

Luca4k4 avatar Luca4k4 commented on July 20, 2024

i'm trying with version 2.3.10 of ti.map but the error still occure.. This is my console:

[ERROR] Failed to run dexer:
[ERROR]   
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/AccountPicker;
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/ConnectionResult;
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/ErrorDialogFragment;
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/GoogleApiAvailability;
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException;
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/GooglePlayServicesRepairableException;
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/GooglePlayServicesUtil;
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/GooglePlayServicesUtil$zza;
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/Scopes;
[ERROR]   
[ERROR] UNEXPECTED TOP-LEVEL EXCEPTION:
[ERROR] java.lang.RuntimeException: Translation has been interrupted
[ERROR]         at com.android.dx.command.dexer.Main.processAllFiles(Main.java:608)
[ERROR]         at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
[ERROR]         at com.android.dx.command.dexer.Main.run(Main.java:277)
[ERROR]         at com.android.dx.command.dexer.Main.main(Main.java:245)
[ERROR]         at com.android.dx.command.Main.main(Main.java:106)
[ERROR] Caused by: java.lang.InterruptedException: Too many errors
[ERROR]         at com.android.dx.command.dexer.Main.processAllFiles(Main.java:600)
[ERROR]         ... 4 more

from ti.goosh.

progress44 avatar progress44 commented on July 20, 2024

Are you sure you're not using any other modules?

from ti.goosh.

Luca4k4 avatar Luca4k4 commented on July 20, 2024

This is all my modules: http://s13.postimg.org/yv8zkdzgn/Schermata_del_2016_09_24_01_24_13.png

from ti.goosh.

progress44 avatar progress44 commented on July 20, 2024

Try removing all of them except Ti.map and ti.goosh and see if the problem persists then add them one by one

from ti.goosh.

Luca4k4 avatar Luca4k4 commented on July 20, 2024

i still have the problem with only the two modules.. i found a previously global installation of ti.map, i'm trying to remove it but i think that local > global, or not?
Anyway, have i to remove the gson.jar file under /ti.goosh/lib too ?

from ti.goosh.

progress44 avatar progress44 commented on July 20, 2024

Local modules have priority against global modules. What files do you have under ti.goosh/lib?

from ti.goosh.

Luca4k4 avatar Luca4k4 commented on July 20, 2024

Thank you @progress44 for the time you dedicated to my problem!

from ti.goosh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.