9

I have a project started from scratch on Android Studio. The layout editor was working fine. After adding the Google Play Services library, now when I open my layout XML file I get the following error in the Design tab: "Rendering Problems: Failed to load platform rendering library"

In the Text tab, all the attributes for my TextView components have a warning "Unknown attribute android:[...]" where [...] is the attribute being declared.

Anybody know how to fix this issue?

Wild Pete
  • 158
  • 1
  • 1
  • 6
  • try this issue in new version Android Studio 0.1.6 may be it was fixed – Borys Jun 21 '13 at 12:02
  • Thanks, I tried updating to 0.1.6 but it didn't fix it. I had to keep working so I saved my source files elsewhere, uninstalled and reinstalled, and it now works. Sorry I don't know what caused it. – Wild Pete Jun 21 '13 at 12:04

5 Answers5

49

Just want to add an answer that worked for me: Changed the version of the preview from N to 23, like so:

enter image description here

Javier C.
  • 7,859
  • 5
  • 41
  • 53
Dima Sv
  • 606
  • 6
  • 5
0

Have a look to this Android Studio rendering problems. It solved the problem for me changing from version L to 19.

Community
  • 1
  • 1
Pascal Chardon
  • 186
  • 1
  • 4
  • 1
    please provide a full answer, not just a link – slfan Sep 30 '14 at 20:28
  • This issue is specific to the error which says that the Android SDK version is being different from what the project needs. The other type of "Rendering problems" error is "Failed to load platform rendering library" which the OP (and I) are facing. – asgs Mar 06 '15 at 18:20
0

Android Studio Failed to load platform rendering library

What i have done in my situation, i have downloaded the latest version of "Android SDK Build Tool" and my problem is solved. I believe that will solve your problem too. Well as our other friends refer to change the version of "Android API Target (Like; 24,23 and so on)" that will also solve your problem but not the exact solution, that's my opinion.

Pranob
  • 641
  • 6
  • 11
0

Studio version needs to be updated. Studio 2.1 supports till API 23 for rendering. However for debugging it allows SDK version upto 26+.

For rendering you will have to use higher version Android Studio.

Sumukh Bhandarkar
  • 386
  • 1
  • 5
  • 14
0

Try install other android SDK platform on SDK manager.

Mjs
  • 1
  • 1