Android studio rendering timeout

I have a problem with Android Studio. Since this morning, I can’t edit my layouts through the Design interface. It is stuck in "Initializing the rendering library" and the IDE freezes. Yesterday all my layouts worked well, and since then I have not changed anything.

I tried to invalidate the cache and restart, but without any results.

+4
source share
3 answers

Try the following:

1.Remove Android SDK and tools for Android developers.

2. If this does not help, reinstall Android Studio using the latest available version (do not forget to backup your data and projects).

3. If this does not help, install another IDE, for example Eclipse and import all your projects into it.

Good luck

+1
source

These steps helped me:

  • Delete the .gradle folder from the project folder, all * .iml files and .idea
  • Delete C: \ Users \ username.AndroidStudioPreview1.2
  • Launch Android Studio without importing settings. This will allow you to see a dialogue in which you can open your project from scratch. if you import, then Android Studio will open the previously opened * .xml files that caused the problem (the freeze of the “Rendering Library Initialization” hangs), and the situation will repeat again.
  • Run Gradle cleanup
  • Synchronization project
  • Invalid cache and restart
  • Create a project from the command line. If you use Build from AndroidStudio, I got the hanging "scan files for indexing ..."
+1
source
  • I reinstalled my android studio without success,

  • Then I downloaded sdk again and changed my old sdk path to a new one

  • After rebooting my studio, this works.

  • The most mysterious thing: I change my sdk path back to my old one, then everything is fine, I don’t know why, but he solved the problem

0
source

Source: https://habr.com/ru/post/1493379/


All Articles