Android studio的小问题

问题遇到的现象和发生背景

使用Android studio的时候出现这个错误
Design editor is unavailable until after a successful project sync

img

用代码块功能插入代码,请勿粘贴截图

目前没有代码 都爆红了

运行结果及报错内容
我的解答思路和尝试过的方法

百度了
https://blog.csdn.net/qq_42795723/article/details/106037924 这几个方法都用了
看过视屏解法
重装过等

我想要达到的结果

能正常调试运行就可以
可以向日葵远程解决 顺便教一下怎么解决的 灰常感谢

Gradle没同步成功,依赖的资源没有下载完成,会出现这个问题


buildscript {
    repositories {
        maven { url 'https://maven.aliyun.com/repository/public' }
        mavenCentral()
        google()
    }

allprojects {
    repositories {
        maven { url 'https://maven.aliyun.com/repository/public' }
        mavenCentral()
        google()
        maven {url "https://jitpack.io"}
    }
}

目前只能想到这些因素:

Design editor is unavailable until after a successful project sync
项目同步成功后,设计编辑器才可用

1、重启
2、File --> Sync Project with Gradle Files
3、Build -> Clean Project
Build -> Rebuild Project
**File -> Sync project with gradle files **
File -> Invalidate Caches / Restart .
3、版本问题:
Android studio需要的build tool和SDK中的版本不一致
【install Build Tools revision 28.0.2

需要我可以远程调试

远程调试

android studio开发的时候出现Design editor is unavailable until after a successful project sync问题的解决方法
https://www.likecs.com/show-204041291.html

重启电脑或者重启一下android studio,看能不能解决