hansemannn / titanium-firebase-analytics

Use the Firebase Analytics SDK in Axway Titanium 🚀
Other
35 stars 18 forks source link

build error Android #4

Closed LilianAlvarez closed 7 years ago

LilianAlvarez commented 7 years ago

Hello,

So the module is working fine on iOS but i am having some issue with Android. When i build the project i get this error : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/zza;

Didn't find any solution on google.

capture d ecran 2017-11-11 a 13 03 12

m1ga commented 7 years ago

I have a similar error already with the core package. Is that working for you without the analytics module?

m1ga commented 7 years ago

Which modules are you using in your app?

<modules>
    <module>ti.playservices</module>
    <module>firebase.core</module>
    <module>firebase.analytics</module>
  </modules>
LilianAlvarez commented 7 years ago

Hello m1ga,

Thanks for reaching out, so yes i have the issue on the firebase core module (even when i remove the analytics module) I have seen you comment on firebase core issue, i tried to implement the fix by adding the ti.playservices module but i get a "Could not find all required Titanium Modules: [ERROR] id: ti.playservices". I am using the sdk 6.3.0 GA

hansemannn commented 7 years ago

Ti.Playservices is made for 7.0.0 by defaut. You can change the minimum version or just recompile it for your needs. I'll try to work on an official guide soon.

quentinkb commented 7 years ago

Same problem on my project, when i add both ti.map and firebase.core modules

yahya-uddin commented 7 years ago

I just reported this issue: https://github.com/hansemannn/titanium-firebase-core/issues/7

Only affects ti.map v3.3.1 & v3.3.0

Any solution to this problem?

hansemannn commented 7 years ago

Please see my comment:

When being used together with Ti.Map or other modules that use google-play-services, it requires SDK 7.0.0 and the dedicated versions that use the new ti.playservices dependency. If running on 7 Beta, use Ti.Map 4.0.0.

abitul commented 6 years ago

can u help me ? when i use ti sdk v 7.0.2.GA and i use firebase core 2.0.0 and firebase analytics 2.0.1 i get this error when build in android

issue android

m1ga commented 6 years ago

@abitul the error message says that it is in a different module. See this ticket: https://jira.appcelerator.org/browse/AC-1621 the module is Studio only

hansemannn commented 6 years ago

Your https module is not ready for SDK 7.0.0+. Use https 3.0.0+ instead (downloadable via dashboard)

abitul commented 6 years ago

I can’t find new module https 3 , because i use free account. Can u help me ?

On Tue, 27 Feb 2018 at 16.26 Hans Knöchel notifications@github.com wrote:

Your https module is not ready for SDK 7.0.0+. Use https 3.0.0+ instead (downloadable via dashboard)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hansemannn/titanium-firebase-analytics/issues/4#issuecomment-368805569, or mute the thread https://github.com/notifications/unsubscribe-auth/Afk9HkyRvUD6h7dD0kJYGyULKjubh3wvks5tY8pZgaJpZM4QaeAO .

hansemannn commented 6 years ago

Well, then you should never had gotten the module. Its pro and enterprise only. Maybe someone shared it via Github in the past, but the platform validates premium modules as well.