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

前端 未结 7 2052
南笙
南笙 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 04:39

    Just sync your project with gradles. File --> Sync Project with Gradle Files

    0 讨论(0)
  • 2020-12-18 04:45

    If nothing of the above steps work, Then simply undo the changes that you have recently made, and then build gradle. In my case, I have added one dependencies and this problem raised, so I removed that dependencies build the gradle and then again add it. Problem Solved..!!

    0 讨论(0)
  • 2020-12-18 04:46

    I had this problem and it was because I didn't have the right API level installed (and I was also getting an error to that effect). I went into Tools --> SDK Manager and installed the API the system was telling me I needed (in my case, 30). I did that and restarted Android Studio and was able to get into XML files.

    0 讨论(0)
  • 2020-12-18 04:55

    Just you have to do >> open File --> Sync Project with Gradle Files and then after >> open File --> invalidate Android Studio caches / restart so done this problem.:)

    0 讨论(0)
  • 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.
    0 讨论(0)
  • 2020-12-18 05:01
    1. Build -> Clean Project

    2. Build -> Rebuild Project

    3. File -> Sync project with gradle files . If not worked then try

      File -> Invalidate Caches / Restart .

    It's work for me !!!

    0 讨论(0)
提交回复
热议问题