Android studio 3.5 refactor issue

前端 未结 8 1772
陌清茗
陌清茗 2020-11-22 03:33

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 th

8条回答
  •  难免孤独
    2020-11-22 04:11

    Just adding more details .

    This is a known issue with android studio from Android Studio 3.5 Canary 8 . It should get fixed in next version as this turned out to affect large number of developers .

    You can see status of the bug here

    Also the solution is

    Broken XML code style

    When editing XML code, the IDE might apply an incorrect code style when you select Code > Reformat Code from the menu bar. To fix this issue, reset the appropriate Android code style as follows:

    1. Open the Settings window by clicking File > Settings (on macOS, Android Studio > Preferences).
    2. In the left panel, click Editor > Code Style > XML.
    3. Near the top-right corner of the right panel, select Set from > Predefined Style > Android
    4. Click OK.

    Which is found here -> Known issues with Android Studio and Android Gradle Plugin

    Edit: This is now fixed in Android studio version 3.5.2

提交回复
热议问题