我得到了同样的错误你描述,但在 OS X 上。我知道这可能不会解决你的问题(因为我不知道相当于 Windows) ,但因为这不是操作系统特有的,我离开的解决方案,任何 OS X 的家伙在那里。
编辑文件 /Applications/Android\ Studio.app/Contents/Info.plist,并删除1.6版本(在我的例子中) ,您可以放置1.6 + 、1.7 + 或1.8,无论您喜欢哪个版本。我的结局就是这样
I'm using Ubuntu 14.04 and I was facing a similar error, with the difference I don't have NDK. My solution was, after setting up Java 8 in project definition, reboot Android Studio, no more.
我的解决办法是去..
Preferences/Appearances and Behavior/System Settings/Android SDK and check the Status. If it's "partially installed" then you have to uninstall then reinstall. (Uncheck the checkbox and hit apply; it will uninstall; then you can check the box and install it again) Worked for me. If you go to lower version(like 23) then you have to change the buildToolsVersion variable to "23.0.0" in the build.gradle.
I had faced the same problem. Please make sure that you are rendering the XML layout for the compiled SDK version (Must not be greater) . Means you will face this if you are compiling the code using Targeted SDK version 23 and your trying to render the XML in SDK version 24.