rendering problems android studio что делать
Rendering problems for Android Studio
Since yesterday I have start to working with Android studio. My problem is when I make my layout. I’ve next error (watch the screenshot for more information):
Rendering Problem: This version of the rendering library is more recent than your version of Android Studio. Please update Android Studio
If I check for updates he say that I already have the latest version of Android studio and so I can’t update.
I have also install some things in the SDK manager, see screenshot below.
Can anyone help me to fix this problem?
Thanks.
2 Answers 2
I had the same problem, current update, but rendering failed because I need to update.
Try changing the update version you are on. The default is Stable, but there are 3 more options, Canary being the newest and potentially least stable. I chose to check for updates from the Dev Channel, which is a little more stable than Canary build. It fixed the problem and seems to work fine.
To change the version, Check for Updates, then click the Updates link on the popup that says you already have the latest version.
Tek Eye
This article covers several fixes that have solved the Android Studio rendering problems error message that occassionally occurs. Android Studio is Google’s development IDE for Android Apps. Studio is in constant development and as an Android developer you will get used to updating Studio often. Unfortunately the updates will sometimes break existing projects. One of the common errors after an update is an App’s screen failing to display when the layout file is opened in the editor’s Design tab. Instead of the correct screen being shown it is greyed out and overlaid with a Rendering Problems message. Even though the screen displayed correctly before the Studio update. For example the following rendering problems message is saying that there are Missing styles:
Other rendering problem bugs can appear, e.g. Rendering failed with a known bug or The following classes could not be instantiated. Changes in the Android Software Development Kit (SDK) can sometimes affect previously working projects. The project files may need some minor changes to update them to the new SDK.
The Rendering Problems Quick Fix
Sometimes just changing the rendering version (above the Design window) will fix the Rendering Problems error (see the item in the list of fixes). Also opening the the AppTheme dialog, using the AppTheme button (again at the top of the Design window), and clicking OK will fix the rendering problem. If that does not work try reselecting All then AppTheme in the Select Theme dialog. Another quick fix to try is to compile against a previous Android library version. Nearly every SDK update changes the Android libraries and can add beta versions of forthcoming Android releases. Reverting a probject from a beta library to a previous release can sometimes solve a rendering problem, as described in the Different Libraries solution in the following fixes. If these two fixes don’t work try the other fixes below as a solution to any rendering problems message.
List of Possible Fixes for Android Studio Rendering Problems
Here are some solutions to rendering problems in Android Studio. They may not solve you particular issue but have worked in the past, depending upon what has been updated in Studio. These fixes are for when a project was previously compiling and displaying OK in Studio, but after an update the App screens no longer display correctly. These fixes are not guaranteed to work, especially if the code was NOT previously compiling. For previously working code these fixes, or a combination of these solutions, have solved past rendering problems issues.
Change Android Version for Rendering Layouts
Changing the version of Android for rendering layouts can resolve the rendering problems error, especially is beta versions of new Android releases are installed. Use the dropdown above the design area for the opened layout to change the Android version for rendering:
Clean the Project to Fix Rendering Problems
Use the Clean Project menu option under the Build menu in Studio. This occasionally fixes rendering problems.
Update the Studio Cache to Fix Rendering Problems
Rebuilding Studio’s cache can sometimes fix the rendering problems. Close all but one Android project. Use the File menu to select Invalidate Caches/Restart. Confirm the action when the Invalidate Caches message box appears by clicking the Invalidate and Restart button.
Sync Gradle to Fix Rendering Problems
Try resyncing Gradle with the Android project. Use the Sync Project with Gradle Files button on the toolbar. Alternative use the Tools then Android menu option and select Sync Project with Gradle Files.
Update the Project Files to Use Different Library Versions
Check to see if the correct libraries for the project are still installed. For example the v7 appcompat library and associated v4 Support library. First check the SDK directory to see the versions of the libraries available:
Then check the version in the App’s Gradle file (the build.gradle file in the app directory):
Change the version if required, you may be prompted to synch Gradle.
Change an Apps Theme to Fix Rendering Problems
All of the above solutions to layout rendering problems do not change any of the code files for an App. If all the above has been tried and the problems persist further investigation of the error may be needed. Ultimately this could include recreating the App in a new project (copying all the code over) and comparing the new project with the old to determine the issue. (For large projects that may not be a trivial task). Alternatively changing the Apps theme has fixed rendering problems. Use the AppTheme button when viewing a screen in the Design tab to access the available theme definitions. Choose a new theme for an App, e.g. Holo.
See Also
Author: Daniel S. Fowler Published: 2016-05-22 Updated: 2016-06-26
Do you have a question or comment about this article?
(Alternatively, use the email address at the bottom of the web page.)
Free Android Projects and Samples:
Ошибка рендеринга в Android Studio 3.0 Layout Editor
Я только начал изучать Kotlin для разработки под Android, запустил пустой проект и добавил активность. Я добавил необходимые зависимости gradle, как сказано в документации Kotlin. По умолчанию XML-файл MainActivity содержит только TextView. Но когда я пытаюсь просмотреть XML в Layout Editor, он показывает «Ошибка рендеринга»
Также я получаю это
Я попытался восстановить проект и обновить макет вручную. Но, похоже, ничего не работает.
Так что мне делать? Я использую Android Studio 3.0 Canary 2 с Kotlin
Я добился определенного прогресса. Я обнаружил, что ни одна из моих тем AppCompat не работает.
11 ответов
Хорошо, проверьте ваш gradle, вы добавили поддержку: зависимость appcompat в файле app / build.gradle? также appcompat: зависимость дизайна
Я столкнулся с той же проблемой, когда я пытался автозаполнения. но это будет работать для меня. Убедитесь, что вы добавили эти зависимости:
Если ничего из вышеперечисленного не работает, попробуйте это:
Этот ответ, скорее всего, решит проблему проблема.
Я решил проблему, обновив версию подключаемого модуля gradle до 3.0.0-alpha2 и используя упаковщик gradle gradle-4.0-milestone-1-all.zip.
Это решение может помочь вам. Изменить style.xml из:
Не удалось выполнить рендеринг в Android Studio android.support.v7.widget.AppCompatImageView
Среда, в которой я работал:
Android Studio 3.0.1
Причина найдена в файле app/build.gradle :
Я изменил некоторые из соответствующих строк следующим образом:
Я добавил «База». в родительском, чтобы он работал правильно!
Я решил эту проблему, изменив версию дизайна поддержки на ту же версию приложения. Это мой пример зависимости
Ранее я использовал
Есть проблема с версией 25.4.0 поддерживаемых мной библиотек. Я вернулся к версии 25.3.1 и рендер макета работает.
Rendering problems in Android Studio v 1.1 / 1.2
When I add android.support.v7.widget.Toolbar or another android.support.v7.widget.* there are rendering problems.
But Support Library is up to date. And I complied in dependecies properly. I can import them in MainActivity.java
What is the problem?
11 Answers 11
UPDATE: Apparently they have fixed this bug in the final Android Studio 1.3 release (according to users reporting this issue solved in the issue tracker: https://issuetracker.google.com/issues/37043358).
This is a known bug since Android Studio build 1.1, which still exists in AS versions 1.2 and 1.3 beta. Switching the preview’s API level from 22 to 21 fixes the for most people. While waiting for a fix you could try it as well.
I don’t know if this will help or not, but I was creating a test project (direct from the wizard, no custom code) and getting this error. Trying to modify the project structure and find the missing class didn’t help.
The build failed with the following error:
The following classes could not be found android.support.v7.internal.widget.ActionBarOverlayLayout***
Obviously it’s not the final solution, but changing the Theme in design view from the base «project theme» to anything else allows it to build.
Android Studio: Rendering Problems with CoordinatorLayout
When I set a CoordinatorLayout as my root element I get the following error when Android Studio is rendering a preview.
My layout file looks like this
Here is my build.gradle
Does anyone have an idea what might be wrong here?
Edit As @deniz already mentioned in an answer the preview works with the newest update of the Android Studio
7 Answers 7
This is a known issue in the Android Open Source Project Issue Tracker:
The unfortunate workaround described by the Android project member is:
Workarounds: Try rendering with M preview using AS v1.3 preview OR use FrameLayout for designing and change to android.support.design.widget.CoordinatorLayout while debugging.
If you are not able to find the beta update change android studio settings(Updates), then update that patch and render with M preview
Try Renderring your preview using Android M preview.
I solved the similar error of android. coordinatorlayout that appear instead of the preview of android app by:
1- Close the project
2- Restart the android studio
3- Build the project
May be it will help someone.
I faced this issue after updating to Android Studio 4.0.1 and solved it by disabling Experimental Layout Rendering Engine and restarting Android Studio. do as this to solve: go to File->Settings->Experimental->Editor-> and uncheck the Use new Layout Rendering Engine then hit OK and restart Android Studio. you should find it working seamlessly hope this solution helps someone.
Wait! Do not switch to beta channel.
As of July 29, Android Studio 1.3 has been released on stable channel. I checked, and can confirm that the new version of the IDE completely addresses your issue in question with CoordinatorLayout rendering.
Android Studio 1.3 is not yet published on the Android website, nonetheless, you can upgrade your Android Studio from 1.2 to 1.3 by downloading the update patch through the IDE menu. Simply click on:



























