java 此版本的渲染库比您的 Android Studio 版本更新。请更新 Android Studio

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30590079/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-02 17:21:16  来源:igfitidea点击:

This version of the rendering library is more recent than your version of Android Studio. Please update Android Studio

javaandroidandroid-layoutandroid-studio

提问by Keval Patel

I have just created new project in android studio. I am new with this tool. The problem is, it is not displaying me my design, It giving me error that,

我刚刚在 android studio 中创建了新项目。我是这个工具的新手。问题是,它没有向我展示我的设计,它给了我一个错误,

This version of the rendering library is more recent than your version of Android Studio. Please update Android Studio

I research on it, and by reading this question I do the same Android Studio Rendering Library1

我研究它,通过阅读这个问题,我做了同样的Android Studio Rendering Library 1

But now, I am getting java compilation errors in MainActivity.java file.

但是现在,我在 MainActivity.java 文件中遇到了 java 编译错误。

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明

Do I need to import any library ?

我需要导入任何库吗?

回答by 5511002233

My problem was solved by changing my current android version to API 22 Android 5.1.1This video helped me get through the error https://www.youtube.com/watch?v=49CF6uU38Wo

通过将我当前的 android 版本更改为API 22 Android 5.1.1解决了我的问题 此视频帮助我解决了错误 https://www.youtube.com/watch?v=49CF6uU38Wo