Closed ghost closed 6 years ago
Use this core version: https://github.com/hansemannn/titanium-firebase-core/releases/tag/android-2.0.1 the newer version uses 15, this version uses 11.0.4
https://github.com/hansemannn/titanium-firebase-cloud-messaging/releases/tag/android-1.0.2
We are currently blocked by Ti.PlayServices not using 15.0.0. Until that is done, I added a Gradle file that only uses 11.0.4 for Cloud Messaging.
Still unable to build with:
<module platform="android" version="1.0.2">firebase.cloudmessaging</module>
<module platform="android" version="2.1.0">firebase.core</module>
[ERROR] Failed to run dexer:
[ERROR]
[ERROR] Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/zzb;
[ERROR] 1 error; aborting
I have an app with core 2.0.1 and messaging 2.0.0 which works fine. Please try that combination
typo? latest is 1.0.2 for firebase.cloudmessaging
oh sorry. I had a custom build where I raised the number to 2.0.0! I just looked at my modules folder.
It's https://github.com/hansemannn/titanium-firebase-cloud-messaging/releases/tag/android-1.0.1 with some test code in it :smiley:
what Ti SDK are you using? If you redownload both
https://github.com/hansemannn/titanium-firebase-cloud-messaging/releases/tag/android-1.0.1 https://github.com/hansemannn/titanium-firebase-core/releases/tag/android-2.0.1
you will get issues. At least thats what I get
nvm i had 2.1.0 wrongly selected, it appears to build correctly now with the spec above
Message: Uncaught No static method zzcL(Ljava/lang/String;)Z in class Lcom/google/android/gms/common/util/zzt; or its super classes (declaration of 'com.google.android.gms.common.util.zzt'...
cant utilize this combination without runtime errors
<modules>
<module platform="android">ti.playservices</module>
<module>firebase.core</module>
<module>firebase.analytics</module>
<module>firebase.cloudmessaging</module>
</modules>
analytics 2.0.1 fcm 1.0.1 core 2.0.1
no error, compiling and working fine :)
@Cratyz using any other module that uses playservices that is NOT using ti.playservices? Like ti.ga, old maps version or so?
@m1ga With FCM 1.0.2 as well? https://github.com/hansemannn/titanium-firebase-cloud-messaging/releases/tag/android-1.0.2
@hansemannn
checked analytics: 2.0.1 fcm: 1.0.2 core: 2.0.1
:heavy_check_mark: no compiling error :heavy_check_mark: sending a notification to the token works fine
BTW: latest analytics 2.1.0 [filename is actually 2.0.2, tag-version is different] crashed the app! But will check that separately
Im using Titanium SDK @
7.1.0.GA
. Configuration looks like:Results in error message:
Then, after removing
firebase-iid-11.0.4.aar
, it comes further in the build process but eventually throws: