Android studio 3.5 refactor issue

前端 未结 8 1763
陌清茗
陌清茗 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:30

    If you have a custom code style defined, you have to specify a type for each rule: tag or attribute.

    It seems like after the update, if you do not specify a type, the rules will be applied to both. Not sure if it is a bug, but that's how i fixed.

    This does not work on 3.5

    After adding the attribute type to each rule, it worked

    0 讨论(0)
  • 2020-11-22 04:31

    3.5.0 known issue

    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:

    • Open the Settings window by clicking File > Settings (on macOS, Android Studio > Preferences).
    • In the left panel, click Editor > Code Style > XML.
    • Near the top-right corner of the right panel, select Set from > Predefined Style > Android.
    • Click OK.
    0 讨论(0)
提交回复
热议问题