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

R.xml.global_tracker : cannot resolve symbol 'xml'? #36

Closed
JackJin2014 opened this issue Jul 28, 2015 · 16 comments
Closed

R.xml.global_tracker : cannot resolve symbol 'xml'? #36

JackJin2014 opened this issue Jul 28, 2015 · 16 comments

Comments

@JackJin2014
Copy link

hi:
i clone this demo : google-services/android/analytics/ and when i build this demo , in AnalyticsApplication.java @ line 40 show: "R.xml.global_tracker : cannot resolve symbol 'xml'?"
how to fix it? thx

@kroikie
Copy link
Contributor

kroikie commented Jul 29, 2015

Looks like you are missing the configuration file, check step 2 here

@kroikie
Copy link
Contributor

kroikie commented Aug 9, 2015

Closing this issue, no response.

@kroikie kroikie closed this as completed Aug 9, 2015
@mishrabhilash
Copy link

Added the configuration file. Then to having the same error.

@silvolu silvolu reopened this Sep 1, 2015
@silvolu
Copy link
Contributor

silvolu commented Sep 1, 2015

Does the package name that you have provided to get the configuration file match the package name that you are using when building your app?

@brendler
Copy link

brendler commented Sep 1, 2015

I found this page while also having the same problem. The reply by @silvolu helped me fix the issue. I had renamed the app package and had to recreate a new configuration file for analytics. Thanks!

@silvolu silvolu closed this as completed Sep 19, 2015
@LeoSnek
Copy link

LeoSnek commented Nov 20, 2015

I just had this issue despite having the config file. The important step is to clean the project once the file is added

@leocadiotine
Copy link

Is it possible to use muiltiple application IDs (e.g. using applicationIdSuffix) with Google Analytics? When I set an applicationIdSuffix to a build variant, this error happens, and I can't put multiple versions of the config file.

@bigD666
Copy link

bigD666 commented Nov 27, 2015

I don't under stand these emails
On 27 Nov 2015 10:14, "leocadiotine" notifications@github.com wrote:

Is it possible to use muiltiple application IDs (e.g. using
applicationIdSuffix) with Google Analytics? When I set an
applicationIdSuffix to a build variant, this error happens, and I can't put
multiple versions of the config file.


Reply to this email directly or view it on GitHub
#36 (comment)
.

@johanvs
Copy link

johanvs commented Dec 15, 2015

The problem is that when we use applicationIdSuffix, the package name of the app change, and then Google Analytics doesn't work with the "google-services.json" config file.
I have the same problem.

@samtstern
Copy link
Contributor

@johanvs this is essentially the same issue as #54, please see that discussion for some possible fixes.

@johanvs
Copy link

johanvs commented Dec 15, 2015

Thanks @samtstern. Yes and there is a workaround in the end of the discussion.

@samtstern
Copy link
Contributor

See #54 for an update.

@squm
Copy link

squm commented Jun 15, 2016

same issue

@oguzhangedik
Copy link

I had that issue. In my case, i had configured google-services.json badly. Because before, i added google-services.json file for google cloud messaging service and then i had to modified google-services.json file for google analytics service.. So you should be careful about these parameters :

  • You should be sure about "tracking_id"
  • Set "status" : 2 which is in "analytics_service".
  • Set "status" : 1 which is in "appinvite_service".
  • Set "status" : 1 which is in "ads_service".

restart Android Studio and rebuild gradle.

@abelcallejo
Copy link

Its 2019, I'm having this issue. When I create such xml file, it then becomes duplicate. Making it another error.

@ghost
Copy link

ghost commented Nov 19, 2019

make sure your tracker xml is placed in /res/xml not in /res/values

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