Android Studio 3.5重构问题 [英] Android studio 3.5 refactor issue

查看:120
本文介绍了Android Studio 3.5重构问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚用android studio 3.5更新了我的工作室,现在当我尝试重构AndroidManifest.xml文件时,它会将我的所有应用程序权限重构到文件的底部.

I just updated my studio with android studio 3.5 and now when I am trying to refactor AndroidManifest.xml file and it is refactoring my all app permission to the bottom of my file.

有人遇到这个问题吗?这个重构问题有解决方案吗?

Have any one faced this issue? Is there any solution for this refactoring issue?

重构之前:

重构后:

它适用于我的所有项目文件.

It is applicable to my all project files.

推荐答案

您只需要从设置中为Android应用程序设置xml布局.

You just need to set xml layout for Android applications from the settings.

请按照以下步骤操作:

1..转到 Android Studio > 首选项.对于Windows,请转到文件> 设置.

1. Go to Android Studio > Preferences. For Windows, go to File > Settings.

2..在搜索栏中搜索 xml .

3..在代码样式部分下,选择 xml 标签.

3. Under code style section, select xml tab.

4..在右上角,单击设置自... ,然后在预定义样式下,选择 Android

4. In the top right corner, click on set from... and under predefined style, select Android

5..单击应用"并尝试进行重构.

5. Click on Apply and try to refactor.

这篇关于Android Studio 3.5重构问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆