Ti.GA
Ti.GA copied to clipboard
full upgrade to Ti SDK 7.0.1
Hi how can I download android dist version?
https://github.com/killroyboy/Ti.GA/blob/master/Android/dist/ti.ga-android-4.0.0.zip
Thank you very much @killroyboy
@killroyboy do you know how integrate ti.playservices? Using your version the build fails if in the project there are other android modules that use ti.playserveces, like ti.map or facebook
[ERROR] Failed to run dexer:
[ERROR]
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/CampaignTrackingReceiver;
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/CampaignTrackingService;
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/ExceptionParser;
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/ExceptionReporter;
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/GoogleAnalytics;
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/HitBuilders;
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/HitBuilders$AppViewBuilder;
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/HitBuilders$EventBuilder;
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/HitBuilders$ExceptionBuilder;
[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:615)
[ERROR] at com.android.dx.command.dexer.Main.runMultiDex(Main.java:368)
[ERROR] at com.android.dx.command.dexer.Main.runDx(Main.java:289)
[ERROR] at com.android.dx.command.dexer.Main.main(Main.java:247)
[ERROR] at com.android.dx.command.Main.main(Main.java:94)
[ERROR] Caused by: java.lang.InterruptedException: Too many errors
[ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:607)
[ERROR] ... 4 more
I do not know :) I am using 4 modules in my project. I found only 3 modules which were updated SDK 7.0. Because of that I have not upgraded my project to SDK 7 yet. My problem about this module https://github.com/arleyandrada/PushClient I am waiting its developer for upgrading. Can you give any suggestion about upgrading PushClient module to SDK 7?
@Astrovic You need to remove the dependency of ti.playservice (in timodules.xml) in the other modules and rebuild them. Ti SDK 7.x leverages Google Play Services differently and so all modules need to be rebuilt.
@kerbooo You can download the source (fork and clone the repo) for PushClient and then issue the command to rebuild it. Details: http://docs.appcelerator.com/platform/latest/#!/guide/Android_Module_Upgrade_Guide
Hi @killroyboy docs suggestion did not work for SDK 7.0 Do you have any suggestion for push client android and ios both plaform?
@kerbooo What do you mean that it didn't work? Did you get errors when you ran appc run p android --build-only
? Please provide as many details as possible.
@kerbooo Try this: https://github.com/killroyboy/PushClient/blob/master/dist/br.com.arlsoft.pushclient-android-2.0.0.zip
OK thank you very much @killroyboy. I will try it and write you result. I would like to ask something more, did you rebuild it or just change properties for SDK 7? If you can build modules I would like to change error time from java source from you. Because while waiting getting error codes app freeze when using this push module. Thank you in advance. I am newbie about compiling module.
@kerbooo I don't do Java Dev. I only know how to rebuild the modules because I read that link I posted above.
@killroyboy OK thank you very much for your helps.
@killroyboy I have tried module which you modified. It is working. Thank you very much again.
@killroyboy thank you, I had already rebuild other modules. The only one that uses ti.playservices is ti.cloudpush, but I don't know how rebuild it. Where I should find ti.cloudpush project?
@kerbooo Awesome!
@Astrovic I don't use ti.cloudpush, but from what I understand it is bundled with the SDK, so you just need to add it to your tiapp.xml and then require it in your code.
Thanks to @caffeinalab I create a new module version that uses ti.playservices: https://github.com/Astrovic/Ti.GA
I have the same issues that Astrovic commented on Jan 18, 2018.
I am trying to run the app with 7.5.0.GA.
Does anyone could fix this issue:
[ERROR] : Failed to run dexer:
[ERROR] :
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/CampaignTrackingReceiver;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/CampaignTrackingService;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/ExceptionParser;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/ExceptionReporter;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/GoogleAnalytics;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/HitBuilders;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/HitBuilders$AppViewBuilder;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/HitBuilders$EventBuilder;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/HitBuilders$ExceptionBuilder;
[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:615)
[ERROR] : at com.android.dx.command.dexer.Main.runMultiDex(Main.java:368)
[ERROR] : at com.android.dx.command.dexer.Main.runDx(Main.java:289)
[ERROR] : at com.android.dx.command.dexer.Main.main(Main.java:247)
[ERROR] : at com.android.dx.command.Main.main(Main.java:94)
[ERROR] : Caused by: java.lang.InterruptedException: Too many errors
[ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:607)
[ERROR] : ... 4 more
[ERROR] Application Installer abnormal process termination. Process exit value was 1
I use without problem 4.0.1 android version on TiSDK 7.5.0.G.A. Have you follow this indications? https://github.com/benbahrenburg/Ti.GA#how-to
Inviato da iPhone
Il giorno 14 gen 2019, alle ore 20:49, antonioduran [email protected] ha scritto:
I have the same issues that Astrovic commented on Jan 18, 2018.
I am trying to run the app with 7.5.0.GA.
Does anyone could fix this issue:
[ERROR] : Failed to run dexer: [ERROR] :
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/CampaignTrackingReceiver; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/CampaignTrackingService; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/ExceptionParser; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/ExceptionReporter; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/GoogleAnalytics; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/HitBuilders; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/HitBuilders$AppViewBuilder; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/HitBuilders$EventBuilder; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/HitBuilders$ExceptionBuilder; [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:615) [ERROR] : at com.android.dx.command.dexer.Main.runMultiDex(Main.java:368) [ERROR] : at com.android.dx.command.dexer.Main.runDx(Main.java:289) [ERROR] : at com.android.dx.command.dexer.Main.main(Main.java:247) [ERROR] : at com.android.dx.command.Main.main(Main.java:94) [ERROR] : Caused by: java.lang.InterruptedException: Too many errors [ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:607) [ERROR] : ... 4 more [ERROR] Application Installer abnormal process termination. Process exit value was 1— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Hello @Astrovic. Yep. I removed the /lib folder, and it worked, but there is a crash.. When I open the app, and I close the app using the back button, and I try to open the app again; the app stuck in the splash screen or some times it crashes.
Basically, I just created the alloy default application, I added the module 4.0.1, using 7.5.0.GA.
var ga = require('ti.ga');
Ti.API.info("module is => " + ga);
ga.setOptOut(false);
ga.setDebug(true);
var tracker = ga.createTracker({
trackingId:'UA-72793918-2',
useSecure:true,
debug:true
});
Ti.API.info("tracker is => " + JSON.stringify(tracker));
tracker.startSession();
tracker.addScreenView('my-cool-view');
function doClick(e) {
tracker.addScreenView('my-cool-view2');
tracker.addEvent({
category:"myCategory-Event",
label:"myLabel",
value:1
});
tracker.addTiming({
category:"myCategory-Timing",
label:"myLabel",
name:"myName",
time:1
});
}
$.index.addEventListener('close', function(){
tracker.endSession();
ga.dispatch();
});
$.index.open();
01-14 14:28:42.478 8355-8355/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.t0ny.t0ny, PID: 8355
java.lang.RuntimeException: Unable to instantiate service com.google.android.gms.analytics.AnalyticsService: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.analytics.AnalyticsService" on path: DexPathList[[zip file "/data/app/com.t0ny.t0ny-5mbdQ_6BCEDJob7mbtaLTw==/base.apk"],nativeLibraryDirectories=[/data/app/com.t0ny.t0ny-5mbdQ_6BCEDJob7mbtaLTw==/lib/arm64, /data/app/com.t0ny.t0ny-5mbdQ_6BCEDJob7mbtaLTw==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64, /product/lib64]]
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3839)
at android.app.ActivityThread.-wrap5(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1989)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7425)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.analytics.AnalyticsService" on path: DexPathList[[zip file "/data/app/com.t0ny.t0ny-5mbdQ_6BCEDJob7mbtaLTw==/base.apk"],nativeLibraryDirectories=[/data/app/com.t0ny.t0ny-5mbdQ_6BCEDJob7mbtaLTw==/lib/arm64, /data/app/com.t0ny.t0ny-5mbdQ_6BCEDJob7mbtaLTw==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64, /product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3836)
at android.app.ActivityThread.-wrap5(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1989)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7425)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Hello @Astrovic .
I was able to make it work, and remove the crash just leaving the manifest file as it showed below: Also, I had to remove everything from the module : android/ti.ga/4.0.1/lib/
<manifest android:versionCode="1" xmlns:android="http://schemas.android.com/apk/res/android">
<application>
<!-- Get permission for reliable local dispatching on non-Google Play devices. -->
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<service android:enabled="true" android:exported="false" android:name="com.google.android.gms.analytics.AnalyticsService"/>
</application>
</manifest>
Hello I am getting error as below on Android 9 (Pie) This issue is about Ti.GA?
02-12 12:54:37.901 13804 13804 E AndroidRuntime: FATAL EXCEPTION: main
02-12 12:54:37.901 13804 13804 E AndroidRuntime: Process: com.sizebiz.just.live.basketball, PID: 13804
02-12 12:54:37.901 13804 13804 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN8titanium13TypeConverter18javaLongToJsNumberEPN2v87IsolateEx" referenced by "/data/app/com.sizebiz.just.live.basketball-RC7RJeH7thll-qM3q0WuKQ==/lib/arm64/libti.ga.so"...
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at java.lang.Runtime.loadLibrary0(Runtime.java:1016)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at java.lang.System.loadLibrary(System.java:1669)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:139)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:113)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:207)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:113)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at org.appcelerator.kroll.KrollRuntime.init(KrollRuntime.java:135)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at com.sizebiz.just.live.basketball.JustLiveBasketballApplication.onCreate(JustLiveBasketballApplication.java:159)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1155)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5885)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at android.app.ActivityThread.access$1100(ActivityThread.java:200)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1651)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6692)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
02-12 12:54:37.901 13804 13804 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Maybe. If you use ti.playservices, you need to remove the /lib folder of ti.ga module (https://github.com/benbahrenburg/Ti.GA#how-to)
@antonioduran Thank you but. I have removed libs folder before. I think this issue about different things
You can try if disabling module the issue persists
@antonioduran When I disable to module everything is OK. App runs on Android 9 Pie. But I need to use this module.
Are you also using other modules? Eventually try to disable them one at a time, to understand if there is any conflict between modules
This issue occurs only some Android 9 Pie device for example Xaoimi
I have tested this module on Android 9, but only on the emulator, and it works correctly. Which version are you using?
I am using 4.0.1 and yes as you said it is working with emulator. But not working with Android 9 devices.
13 Şub 2019 Çar 22:35 tarihinde Vittorio Sorbera [email protected] şunu yazdı:
I have tested this module on Android 9, but only on the emulator, and it works correctly. Which version are you using?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/benbahrenburg/Ti.GA/pull/21#issuecomment-463336898, or mute the thread https://github.com/notifications/unsubscribe-auth/AK1n0PaMFR_AfHHEINQ0O2T6NCyiXqCcks5vNGkHgaJpZM4RgOxk .
You can try using https://github.com/Astrovic/Ti.GA/releases/tag/4.0.2