How to disable automatic updating of new generated code in Android Studio: "It was automatically created to implement the application indexing API"?

When I upgraded version of Android Studio 1.5.1 for Play Services 29, the main action (as well as the Android manifest) in my existing project was automatically updated to include the application indexing template code. The immutable template code then threw an exception in the onStart activity (when I realized that it was added). I am developing development code and do not want to redirect.

How to prevent this automatic generation in the future?

This question is similar to the question: What is the new generated code "It was automatically generated to implement the application indexing API."?

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

Thanks!

+4
source share
1 answer

Today I found out the same problem. Perhaps this depends on a plugin called Google Application Indexing. I have disabled this plugin right now and hope it never changes my code myself.

File -> Preferences -> Plugins -> uncheck "Google app indexing"

I'm not right now if the plugin is the real reason, but I think it's worth a try. Why is it indexing applications, you can take a look at this page:

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

+4

Source: https://habr.com/ru/post/1622222/


All Articles