简体   繁体   中英

Android Studios build preview not working

I have started doing a tutorial for building android apps using Android Studios and Kotlin. So I am very new to Android Studios. I just tried to make a new application using a basic activity. The first time, the build didn't succeed so I re-opened the application and after some time, the build succeeded but the preview still didn't load saying the build didn't complete.

At first I thought maybe it just took some time so I waited 30 minutes and it still didnt work. 在此处输入图片说明

Some of the code is red so is there something I did wrong while setting it up? Thanks in advance!

You can try the following options one by one.

  1. restart android studio
  2. clean & rebuild project
  3. file -> Invalidate caches and restart

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM