Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error Android #4

Closed
LilianAlvarez opened this issue Nov 11, 2017 · 12 comments
Closed

build error Android #4

LilianAlvarez opened this issue Nov 11, 2017 · 12 comments

Comments

@LilianAlvarez
Copy link

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
Copy link
Collaborator

m1ga commented Nov 15, 2017

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

@m1ga
Copy link
Collaborator

m1ga commented Nov 15, 2017

Which modules are you using in your app?

<modules>
    <module>ti.playservices</module>
    <module>firebase.core</module>
    <module>firebase.analytics</module>
  </modules>

@LilianAlvarez
Copy link
Author

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
Copy link
Owner

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
Copy link

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

@yahya-uddin
Copy link

I just reported this issue:
hansemannn/titanium-firebase-core#7

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

Any solution to this problem?

@hansemannn
Copy link
Owner

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
Copy link

abitul commented Feb 27, 2018

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
Copy link
Collaborator

m1ga commented Feb 27, 2018

@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
Copy link
Owner

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

@abitul
Copy link

abitul commented Feb 27, 2018 via email

@hansemannn
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants