简体   繁体   English

为什么我在 android studio 中的代码会自动更改?

[英]Why my code in android studio is auto changed?

My code in android studio is auto changed, I don't know which is reason?我在 android studio 中的代码是自动更改的,不知道是什么原因?

I don't know what all the NULL characters at the bottom means, maybe you opened the file using an editor that didn't understand those characters and you saved it improperly?我不知道底部所有的NULL字符是什么意思,也许您使用不理解这些字符的编辑器打开文件并且保存不正确? You could just delete them.你可以直接删除它们。

This looks like an res xml and you have two different kinds of comments .这看起来像 res xml并且您有两种不同的comments /* */ AND <!-- --> . /* */ AND <!-- -->

If this is supposed to be an xml document remove the /* */ comment characters and replace them with <!-- --> comment characters.如果这应该是 xml 文档,请删除/* */注释字符并将它们替换为<!-- -->注释字符。

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

相关问题 Android Studio 中的自动代码格式化 - Auto code formatting in Android Studio 为什么PROVIDER_CHANGED无法在android studio中工作? - why PROVIDER_CHANGED not working in android studio? Android xml和gradle代码突然更改,并显示自动生成的代码 - Android xml and gradle code changed suddenly and shows Auto generated code 为什么我在android studio中的代码中出现错误? - Why am i getting errors in my code in android studio? 为什么Android Studio会丢弃我的代码样式设置? - Why does Android Studio throw away my Code Style settings? Android Studio 不会自动生成代码 - Android Studio doesn't auto generate code 可以在Android Studio中自动填充代码语句 - Possible to auto fill code statements in android studio 选择要在Android Studio中自动缩进忽略的代码 - Select code to be ignored by auto indent in Android Studio 为什么android studio 没有为我的flutter 代码显示虚拟android 模拟器,而为java android 代码显示它? - Why is android studio not showing virtual android emulator for my flutter code, whereas its showing for java android code? 为什么在构建项目时Android Studio会自动下载Gradle? - Why does Android Studio auto-download Gradle when I build my project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM