Comments (21)
I have just made it working with the latest library version.
Here are the changes you will need:
-
an upgrade version of the ti.playservices 16.1.3 module (I built it myself).
-
include the latest firebase libraries to both the firebase.core and firebase.analytics modules:
firebase.core:
firebase-common-16.1.0.aar
firebase-core-16.0.8.aar
firebase-iid-17.1.2.aar
firebase-iid-interop-16.0.1.aar
firebase-measurement-connector-17.0.1.aar
firebase.analytics:
firebase-analytics-16.4.0.aar
from titanium-firebase-analytics.
I'm also getting this error, I have gone back to the below to get it working again:
<module platform="android" version="11.0.40">ti.playservices</module>
<module version="3.0.0">firebase.core</module>
<module version="2.1.1">firebase.analytics</module>
from titanium-firebase-analytics.
@kitenium can you share the compile module please ? or create a pull request if you can ?
from titanium-firebase-analytics.
@SquirrelMobile Please make your own module. It's so much rewarding when you did it yourself.
All the library files can be found in the maven repo site: https://mvnrepository.com/
from titanium-firebase-analytics.
I too am getting this error. Seems like it's happening whenever an Analytics function is called, e.g. log, setScreenNameAndClass.
TiSDK 8.0.0, ti.playservices 16.1.2, firebase-core 4.0.0, firebase-analytics 3.0.0
from titanium-firebase-analytics.
Same here
from titanium-firebase-analytics.
Also getting the same error
from titanium-firebase-analytics.
I'm also getting this error, I have gone back to the below to get it working again:
<module platform="android" version="11.0.40">ti.playservices</module>
<module version="3.0.0">firebase.core</module>
<module version="2.1.1">firebase.analytics</module>
This should be not the solution. My complete error log:
[ERROR] : TiExceptionHandler: (main) [2459,2459] /app.js:1113 [ERROR] : TiExceptionHandler: global.firebaseAnalytics.log('login', { username: result.response.Email }); [ERROR] : TiExceptionHandler: ^ [ERROR] : TiExceptionHandler: Error: Failed resolution of: Lcom/google/android/gms/measurement/internal/zzbw; [ERROR] : TiExceptionHandler: at success (/app.js:1113:40) [ERROR] : TiExceptionHandler: at HTTPClient.xhr.onload (/lib/xhr.js:233:7) [ERROR] : TiExceptionHandler: [ERROR] : TiExceptionHandler: com.google.firebase.analytics.FirebaseAnalytics.getInstance(Unknown Source) [ERROR] : TiExceptionHandler: firebase.analytics.TitaniumFirebaseAnalyticsModule.analyticsInstance(TitaniumFirebaseAnalyticsModule.java:37) [ERROR] : TiExceptionHandler: firebase.analytics.TitaniumFirebaseAnalyticsModule.log(TitaniumFirebaseAnalyticsModule.java:46) [ERROR] : TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Object.nativeCallProperty(Native Method) [ERROR] : TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Object.callProperty(V8Object.java:75) [ERROR] : TiExceptionHandler: org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1225) [ERROR] : TiExceptionHandler: android.os.Handler.dispatchMessage(Handler.java:106) [ERROR] : TiExceptionHandler: android.os.Looper.loop(Looper.java:203) [ERROR] : TiExceptionHandler: android.app.ActivityThread.main(ActivityThread.java:6255) [ERROR] : TiExceptionHandler: java.lang.reflect.Method.invoke(Native Method) [ERROR] : V8Exception: Exception occurred at /app.js:1113: Uncaught Error: Failed resolution of: Lcom/google/android/gms/measurement/internal/zzbw;
Any help is appreciated
TiSDK 8.0.0, ti.playservices 16.1.2, firebase-core 5.0.0, firebase-analytics 3.0.0, firebase-cloudmessaging 2.0.1
from titanium-firebase-analytics.
Just saw an additional warning: [WARN] : FirebaseMessaging: Unable to log event: analytics library is missing
from titanium-firebase-analytics.
Same here, not working unless I go back to
<module platform="android" version="11.0.40">ti.playservices</module>
<module version="3.0.0">firebase.core</module>
<module version="2.1.1">firebase.analytics</module>
I have never been able to use the latest version of this module on Android, I always had issues, while on iOS it always worked like a charm
from titanium-firebase-analytics.
I have got this error on Android too using the latest firebase-core (5.0.0) and ti.playservices (16.1.2).
Could someone look into this please?
from titanium-firebase-analytics.
Me too
from titanium-firebase-analytics.
Having same problem as OP with the latest modules. Combination suggested by Westmartin didn't work for me, it produces this error:
[WARN] : W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.content.ContextWr
apper.getApplicationContext()' on a null object reference
[WARN] : W/System.err: at firebase.analytics.TitaniumFirebaseAnalyticsModule.analyticsInstance(TitaniumFirebaseAnalyticsModule.java:39)
[WARN] : W/System.err: at firebase.analytics.TitaniumFirebaseAnalyticsModule.log(TitaniumFirebaseAnalyticsModule.java:48)
[WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)
[WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:63)
[WARN] : W/System.err: at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:962)
[WARN] : W/System.err: at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1186)
[WARN] : W/System.err: at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:394)
[WARN] : W/System.err: at ti.modules.titanium.ui.ScrollableViewProxy.handleMessage(ScrollableViewProxy.java:159)
[WARN] : W/System.err: at android.os.Handler.dispatchMessage(Handler.java:98)
[WARN] : W/System.err: at android.os.Looper.loop(Looper.java:154)
[WARN] : W/System.err: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:117)
[INFO] : ERROR: Firebase event log failed: pageView; FirebaseAnalytics.log Exception: Attempt to invoke virtual method 'android.content.Co
ntext android.content.ContextWrapper.getApplicationContext()' on a null object reference
I had to go all the way back 11.0.40/2.0.0/2.0.1 built with sdk 7.0.1 for things to work again.
from titanium-firebase-analytics.
@kitenium would appreciate your module as I'm banging my head against the wall here!
from titanium-firebase-analytics.
i need help on this as well. please.
from titanium-firebase-analytics.
seems when i use
- ti.playservices 16.1.3
- firebase.core 5.0.0
- firebase.analytic 3.0.0
- firebase.cloudmessaging 2.0.1
it solve the issue, i guess because the cloud messaging is carrying the library mentioned by kitenium
from titanium-firebase-analytics.
@dyan02 Yes, that is exactly the reason. I thought the lib files should be better organised so that some people who do not use the cloud messaging won't suffer from this issue.
from titanium-firebase-analytics.
That seems to stop this error from occurring, thanks @dyan02 and @kitenium
I grabbed firebase-iid-17.1.2.aar firebase-iid-interop-16.0.1.aar firebase-measurement-connector-17.0.1.aar from the cloud messaging module and put it in a lib folder inside the analytics module and it now seems to be working. I'm not getting analytics data yet but I'm not getting the error!!
from titanium-firebase-analytics.
@hansemannn can you please add me as a contributor so i can push the required files into the repo?
from titanium-firebase-analytics.
@Wingee You can make a pull request that then can be reviewed by @m1ga or me. Thanks!
from titanium-firebase-analytics.
Created the PR
from titanium-firebase-analytics.
Related Issues (20)
- Enable Debug Logging HOT 1
- Firebase Module not receiving our uncaughtException HOT 1
- Failed resolution of: Lcom/google/android/gms/measurement/internal/zzbw HOT 12
- Is it a fabric crash?
- Bug on param "value" of event "ecommerce_purchase" in android HOT 1
- iOS build failed with no helpful error messages HOT 6
- Uncaught translation error: java.lang.IllegalArgumentException: already added: HOT 1
- Several "not set" values in Firebase Analytics Events HOT 2
- Phones without Google Play Services HOT 1
- lib folder with .aar files missing in Android 3.0.0 release HOT 1
- Error: Failed resolution of: Lcom/google/firebase/analytics/FirebaseAnalytics; Appc SDK 9 HOT 6
- package com.google.firebase.analytics does not exist
- Firebase core and analytics module is not working in
- Firebase core and analytics module is not working in android build HOT 1
- ERROR in setScreenNameAndScreenClass - FA: Name must consist of letters, digits or _ HOT 1
- How can we obtain the appInstanceID on android? HOT 6
- iOS Build Errors - Could not find or use auto-linked framework 'GoogleAppMeasurement' HOT 2
- Android - update guide: duplicated source HOT 1
- Build error with iOS 8.0.0 HOT 1
- Set up consent mode for apps HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from titanium-firebase-analytics.