Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn off auto-updating of the new generated code in Android Studio: “This was auto-generated to implement the App Indexing API.”?

When I upgraded Android Studio 1.5.1 to Play Services Rev. 29, the main activity (as well as the Android Manifest) in my existing project was auto-updated to include the App Indexing boilerplate code. The unaltered boilerplate code then caused an exception in onStart of the activity (which is when I realized it had been added). I'm in the middle of production code development & am unwilling to divert.

How do I prevent this auto-generation in the future?

This question is similar to the question: What is the new generated code “This was auto-generated to implement the App Indexing API.”?

However, I don't care "what it is" right now - I want it not to darken my door next time I upgrade Android Studio.

Thanks!

like image 358
ahandyapp Avatar asked Oct 18 '22 19:10

ahandyapp


1 Answers

Today I recognized the same issue. Maybe it is up to the plugin called "Google App Indexing". I deactivated this plugin right now and hope that will never modify my code on his own.

File -> Settings -> Plugins -> uncheck "Google App Indexing"

I do not now if the plugin is the real reason but I think it is worth a try. For what that App Indexing is you could take a look to this page:

https://developers.google.com/app-indexing/android/publish

like image 188
Michael S. Avatar answered Oct 21 '22 16:10

Michael S.