How can I fix “Design editor is unavailable until a successful build” error?

前端 未结 17 1399
刺人心
刺人心 2020-11-30 01:31

I started to learn Android Studio from yesterday. I try to echo out simple \"Hello World\":




        
相关标签:
17条回答
  • 2020-11-30 01:52

    If you are in corporate setting where there is a proxy server, double check your proxy settings.

    1. Go File -> Settings
    2. Search for Proxy.
    3. Fill out as appropreate.
    4. Test connection.

    If you think you fat-fingered the password, there is a Clear passwords button you can click to where you can re-enter your creds. HTH

    0 讨论(0)
  • 2020-11-30 01:54

    Go to File > Sync Project with Gradles Files.

    0 讨论(0)
  • 2020-11-30 01:55

    just click file in your android studio then click Sync Project with Gradle Files..

    if it won't work, click Build click Clean Project.

    it always work for me

    0 讨论(0)
  • 2020-11-30 01:57

    In my case, it was because it didn't like that I left the minSDK and targeSdk in the manifest. Go figure.

    0 讨论(0)
  • 2020-11-30 01:59

    Simply restart the Android Studio. In my case, I was offline before starting the Android Studio, but online when I did restart.

    0 讨论(0)
  • 2020-11-30 01:59

    Edit you xml file in Notepad++ and build it again. It's work for me

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