-
Notifications
You must be signed in to change notification settings - Fork 2.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
R.xml.global_tracker : cannot resolve symbol 'xml'? #36
Comments
Looks like you are missing the configuration file, check step 2 here |
Closing this issue, no response. |
Added the configuration file. Then to having the same error. |
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? |
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! |
I just had this issue despite having the config file. The important step is to clean the project once the file is added |
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. |
I don't under stand these emails
|
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. |
Thanks @samtstern. Yes and there is a workaround in the end of the discussion. |
See #54 for an update. |
same issue |
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 :
restart Android Studio and rebuild gradle. |
Its 2019, I'm having this issue. When I create such xml file, it then becomes duplicate. Making it another error. |
make sure your tracker xml is placed in /res/xml not in /res/values |
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
The text was updated successfully, but these errors were encountered: