将资源文件迁移到 Androidx [英] Migrate resource files to Androidx
本文介绍了将资源文件迁移到 Androidx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在重构 --> 在 Android Studio 项目中迁移到 Androidx.我注意到只迁移了 java 文件,而没有迁移 xml 资源.
I am doing refactoring --> migrate to Androidx in an Android Studio project. I am noticing that only java files are been migrated, but not the xml resources.
是否也有一种方法可以自动迁移它们?
It exists one method to automatically migrate them too?
推荐答案
没有,但是可以在res
目录上右击,然后搜索"->在路径中替换"
No, but one can right-click res
directory, then "search" -> "replace in path"
为了替换所有打开/关闭标签,根据迁移指南.
in order to replace all the open/close tags, according to the migration guide.
这篇关于将资源文件迁移到 Androidx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文