How change Google Analytics account in Android Studio

ぐ巨炮叔叔 提交于 2019-12-07 23:46:31

问题


As you can see on the screenshot below, I already tested the Google Analytics with my private Google Analytics account for my private apps.

File --> Project Structure .. -> Developer Service --> Analytics

Now, I would like to go play around with my business apps as well and would like to enter my corporate email Google Analytics account, which is combined to that other app. How can I switch or logout here?


回答1:


  1. Remove the Analytics library dependency compile 'com.google.android.gms:play-services-analytics:8.4.0' from your build.gradle. (manually, not from module settings)
  2. To avoid errors comment out Analytics related code.
  3. Do a gradle sync.
  4. Clean and build your project. [4.1. Just to be safe Do an invalidate cache and restart from file menu.]
  5. Go back to module settings and enable Analytics. (It should now ask for a login again.)
  6. Login with your new user
  7. Uncomment the code that you commented earlier.


来源:https://stackoverflow.com/questions/34858805/how-change-google-analytics-account-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!