转到文件菜单->使缓存/重新启动无效->使并重新启动
The Gradle Project Sync failed because Gradle wasn't installed properly and Android Studio wouldn't install or complete the incomplete installation. So I manually reinstalled Gradle and followed the steps given on this link and the preview came back. Thanks for for helping anyways. Cheers! Install Gradle
go to build.gradle(Module:app) file check your minSdkVersion make it 17 and above and sync your gradle. in my case it solve.
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.