Title: cannot find symbol class GoogleAnalytics v4
Tags: android;google-analytics
Question: I am trying to implement Google Analytics v4 in my app but after i imported it with gradle using:
compile 'com.google.android.gms:play-services:7.5.0'
i still get the error
cannot find symbol class GoogleAnalytics


Here is another answer: Not necessarily in the main app module; you need to add to build.gradle file of any module in which you access GoogleAnalytics SDK.

Here is another answer: Actually in my project i am missing the Module:app's build.gradle file. In order to make the Analytics v4 api work you need to put the compile 'com.google.android.gms:play-services:7.5.0' line in the main app module.

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2015:00:06/08/15', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<android><google-analytics>', 'Title': 'cannot find symbol class GoogleAnalytics v4', 'ViewCount': 354, 'id': 30714586, 'user_AboutMe': '<p>We are a young company formed by developers, We mainly focus on mobile technologies.</p>\n', 'user_AccountId': 2193136.0, 'user_DisplayName': 'MineConsulting SRL', 'user_Reputation': 2320.0, 'user_Views': 316.0, 'user_id': 1939607.0}}