-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Error: Found item String/google_app_id more than one time #407
Comments
you probably have another plugin that is also adding google_app_id and google_api_key |
I faced same problem too in 0.1.24. |
To reproduce the issue:
The problem is, that if the ios platform added, then the after_prepare file runs again.
So the copyKey(PLATFORM.ANDROID, updateStringsXml) runs, |
Anyone found the solution of this problem. I tried removing few lines from plugin.xml after which build was successful but i saw below error in logs: |
hi, i also have this issue, the version 0.1.22 is the last working for me |
@zerdos confirmed, good analysis. I was doing cordova platform add android before cordova platform add ios ... now it works. |
I get this problem every time I do |
@inidona downgrading to 0.1.22 also worked for me. |
I get the same problem. However, I notice that the content of actual after_prepare is newer than the version of the npm package, though the script was merged in the same date of version ? |
|
The problem I believe is this in the config:-
Not sure what that is attempting to achieve but I changed mine to
and I install the plugin by adding
and it works fine now. |
I made a change to the
|
Same issue! Any solution? @rabinski99 this a very good suggestion! |
Remove this in strings.xml
Work for me |
@stephdgenius Excellent! that is the correct solution, delete and nothing else. It worked for me. Thank you very much! Your API ID |
@stephdgenius @pamelita04 |
Updating strings.xml or any file created during the build is not a solution it is a workaround of an issue. We need reliable repeatable builds without manually having to update files. |
Is reliable, and repeatable and doesn't require manually updating files. |
I removed and re-added android platform, the error( Found item String/google_app_id more than one time) disappeared.
|
I think I have found the cause of the issue, please see this issue phonegap/phonegap-plugin-push#1660. Essentially it happens if you are using version < 2.0 of the phonegap-plugin-push cordova plugin, so obviously there is going to be a conflict whatever version of this plugin is used (I tried with 0.1.22, but even that did not work). |
closing for now, reopen if still an issue with the latest version of the plugin |
hi there,
|
@OverRide
erro the resultTextView here i don't no reson why? |
Breaking change in the new tag: "cordova-plugin-firebase": "^0.1.24",
FAILURE: Build failed with an exception.
Execution failed for task ':mergeReleaseResources'.
The content of strings.xml:
The text was updated successfully, but these errors were encountered: