简体   繁体   English

如何在Android Studio中关闭新生成代码的自动更新:“这是自动生成的,用于实现App Indexing API。”?

[英]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. 当我将Android Studio 1.5.1升级到Play Services Rev. 29时,我现有项目中的主要活动(以及Android Manifest)已自动更新,以包含App Indexing样板代码。 The unaltered boilerplate code then caused an exception in onStart of the activity (which is when I realized it had been added). 然后,未经改动的样板代码在活动的onStart中引起异常(这是我意识到它已被添加的时候)。 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.”? 这个问题类似于以下问题:什么是新生成的代码“这是自动生成的,用于实现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. 但是,我现在并不关心“它是什么” - 我希望下次升级Android Studio时不要让我的门变黑。

Thanks! 谢谢!

Today I recognized the same issue. 今天我认识到同样的问题。 Maybe it is up to the plugin called "Google App Indexing". 也许这取决于名为“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" 文件 - >设置 - >插件 - >取消选中“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: 对于App Indexing,您可以查看此页面:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 什么是新生成的代码“这是自动生成的,用于实现App Indexing API。”? - What is the new generated code “This was auto-generated to implement the App Indexing API.”? 自动更新Android商家应用的方法? - Methods of auto-updating an Android business app? 如何处理构建过程中自动生成的源代码文件 - How to deal with source code file auto-generated in the build process Android R文件不是自动生成的 - Android R file is not auto-generated 更新Gradle后自动生成文件错误 - Auto-generated file errors after updating Gradle 在来自 Android Studio 的自动生成的 map 活动中添加浮动按钮 - Add Floating button in auto-generated map activity from Android Studio 创建新的Android项目时,是否可以指定自动生成哪些/ res文件夹? - Is there a way to specify which /res folders are auto-generated when creating a new Android project? 在Android中自动更新日期对象? - Auto-updating date object in Android? Android R文件常量不会自动更新 - Android R file constants not auto-updating 如何检索在Google App Engine端点中创建的自动生成的实体密钥? - How to retrive an auto-generated entity key created into google app engine endpoint?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM