Android studio design editor is unavailable until after a successful project sync

前端 未结 7 2147
南笙
南笙 2020-12-18 04:19

what is the actual root cause of this issue? I already sync with gradle files but eventually failed.

\"image

7条回答
  •  鱼传尺愫
    2020-12-18 05:00

    Issue happened to me when I changed the res>values>styles.xml

    What I change was
    "Theme.AppCompat.Light.DarkActionBar" --->>> "Base.Theme.AppCompat.Light.DarkActionBar"

    Solutions I tried.

    1. Build -> Rebuild Project (Not worked)
    2. Close all files and Open again. Then Build -> Clean Project (Not worked) File -> Sync project with gradle files (Not worked)
    3. Close the Android Studio while project still opened. Opened it again. - It Worked.

提交回复
热议问题