I am working on an example app in Android Studio and I somehow accidentally added Google Play Services to one of my Activities. I'm not even sure how I did it, but it added several auto generated methods, variables and imports. I removed all of these and continued to work on the app. Now, a few days later, I found
compile 'com.google.android.gms:play-services-appindexing:8.1.0'
in my app/build.gradle
script and an auto-generated chunk in my manifest file:
<!--
ATTENTION: This was auto-generated to add Google Play services to your project for
App Indexing. See https://g.co/AppIndexing/AndroidStudio for more information.
-->
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
under the <application>
tag. When I remove them and build the project, the <meta-data>
tag is regenerated in the manifest, which causes the build to fail since I removed the dependency in build.gradle.
How do I completely remove Google Play Services from the app and build system to stop this? What have I missed?