Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Found item String/google_app_id #1660

Closed
Mystearica opened this issue Mar 31, 2017 · 16 comments
Closed

Found item String/google_app_id #1660

Mystearica opened this issue Mar 31, 2017 · 16 comments
Assignees
Labels
Milestone

Comments

@Mystearica
Copy link

Expected Behaviour

Should compile the app correctly

Actual Behaviour

The app is not compiling because of this error: Found item String/google_app_id more than one time

Cordova CLI version and cordova platform version

Ionic 2.2.1

Plugin version

1.10.0

Sample Code that illustrates the problem

In the strings.xml (Android platform) when I use ionic run android, it generates another string with the same id.

<string name="google_app_id">@string/google_app_id</string>
<string name="google_app_id" translatable="false">XXXXXXX</string>

I changed the numbers to XXXXXX

Logs taken while reproducing problem

Error: Found item String/google_app_id more than one time

@macdonst
Copy link
Member

macdonst commented Apr 3, 2017

@Mystearica where is the other google_app_id coming from?

@Mystearica
Copy link
Author

@macdonst its coming from firebase plugin. Im using ionic2.
I tried removing the addons and addinng them again in different order, but both add google_app_id.

@macdonst
Copy link
Member

macdonst commented Apr 3, 2017

@Mystearica why do you need to use the Firebase plugin?

@Mystearica
Copy link
Author

@macdonst well Ionic 2 documentation says that you need that plugin in order to use firebase in your proyect.

@macdonst
Copy link
Member

macdonst commented Apr 3, 2017

@Mystearica link to docs please?

@Mystearica
Copy link
Author

Mystearica commented Apr 3, 2017

@macdonst
Copy link
Member

macdonst commented Apr 3, 2017

@Mystearica right, well that is an incompatibility between the plugins. It will be solved in the 2.0.0 of this plugin but let me see if there is a way to work around it.

@Mystearica
Copy link
Author

@macdonst Thank you! I really need to solve this problem, I hope there is any work around.

@macdonst
Copy link
Member

macdonst commented Apr 3, 2017

Note for myself.

Use edit-config instead.

@macdonst macdonst self-assigned this Apr 3, 2017
@fredgalvao
Copy link
Collaborator

Related note: <resource-config> from 6.2.0 is also an interesting suggestion for users.

@macdonst macdonst added this to the Release 2.0.0 milestone Apr 8, 2017
@macdonst
Copy link
Member

macdonst commented Apr 8, 2017

Nope, if there is no google_app_id in the manifest then adding the plugin gives this error:

Error: Unable to graft xml at selector "/resources/string[@name='google_app_id']"

It'll have to wait for the 2.0 release.

@macdonst
Copy link
Member

In release 2.0.0 there will be no adding of 'google_app_id' in the strings.xml file. The inclusion of the Google Services file will be done with resource-file tag in config.xml.

@aswinramakrish
Copy link

@macdonst Any idea when this issue would be fixed / ETA on 2.0.0? This is a great plugin! I'd really love to use it with Firebase.

@palbaladejo
Copy link

@aswinramakrish
cordova plugin add [email protected]
Worked for me.

@macdonst macdonst removed the staging label Jun 4, 2017
@macdonst
Copy link
Member

macdonst commented Jun 4, 2017

Yeah, folks can start using the release candidates.

cordova plugin add [email protected]

is the latest.

@lock
Copy link

lock bot commented Jun 3, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

5 participants