简体   繁体   中英

Intellij IDEA Ultimate android layout preview not working waiting for build finish

IntelliJ IDEA 2018.2.5 (Ultimate Edition) Build #IU-182.4892.20, built on October 16, 2018 Licensed to IntelliJ IDEA Evaluator Expiration date: November 27, 2018 JRE: 1.8.0_152-release-1248-b19 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains sro macOS 10.13.6

I tried several ways.

  • Refresh all gradle projects (in the right and top pannel)
  • clean and rebuild
  • invalidate and restart the IDEA

But it does not work.

And I noticed that:

  • Android Studio alone: work
  • IDEA alone: work
  • Android Studio and IDEA both running: none of them work

I could build and run the project successfully but how to fix this?

等待构建完成

I simply solved it by choosing Sync Project with Gradle Files. This will trigger a Gradle re-import and a build.

One can find it using Find Action shortcut Ctrl + Shift + A and choose "Sync project With Gradle Files"

如何找到动作 结果

Try to change the options from Nexus 4/version/Theme in the intellij.

在此处输入图片说明

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