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.
For me I had this problem with one file, so I simply created a new one with the same code.