When I open layout file in my new Android-Studio file and press preview tab it\'ll show a message Waiting for build to finish... for infinite time.
<After upgrading to Android Studio version 3.1, in the Project Structure dialog the build tools version was empty. Selecting a build tools version solved the problem for me.
Hope it helps for someone facing the same issue.
After a lot searching and I tried all solution which people give here, but any of them didn't solve my problem, I guess this problem is from studio's developers, and they may fix it in next patch. so I simply re-installed my android studio and it's solved.