57

After installing the new ADT (22.3.0.v201310242005-887826) which supports Android 4.4 (KitKat), I keep getting the error as shown here:

Enter image description here

An internal error has occurred

In the list of errors, I see multiple items of "RenderPreview", and when I click on any of them, I see:

An internal error has occurred. After scene creation, #init() must be called

When testing the new ADT on another computer, I can't see this error appearing there. This is very weird.

Why do I get those errors, and what can I do to fix it?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
android developer
  • 114,585
  • 152
  • 739
  • 1,270
  • I have the same problems. – DixieFlatline Nov 03 '13 at 11:46
  • @DixieFlatline that's good. it means I didn't do anything wrong (this time :) ) – android developer Nov 03 '13 at 12:44
  • Exactly the same problem, I just also opened a [question](http://stackoverflow.com/questions/19757912/eclipse-error-renderpreview) myself. Didn't see your question before. – Guy Nov 03 '13 at 20:53
  • I also using Scene class in my project(for starting transtion) but min API version 19 but I want to support under 19 how can I change this ? – Zafer Celaloglu Nov 20 '14 at 06:57
  • @ZaferCelaloglu I don't know about Scene class, but in order to support lower APIs, you need to set "minSdkVersion" in the manifest. the "targetSdkVersion" should be set to the max available (which is 21 currently) . I suggest reading the documentation: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html – android developer Nov 20 '14 at 07:54
  • yeah I know this but function doesnt working under 19 API. – Zafer Celaloglu Nov 20 '14 at 10:48
  • @ZaferCelaloglu Which function is it that you are trying to use? there are many classes/functions that can overcome this inside the support library and third party libraries. If there isn't, you can always perform a check: "if(VERSION.SDK_INT>=VERSION_CODES.KITKAT)..." . – android developer Nov 20 '14 at 15:31

6 Answers6

47

I've created a bug report. Until it gets fixed, set the API version in the UI preview to something lower than 19. The error only shows up for version 19.

SimonSays
  • 10,867
  • 7
  • 44
  • 59
8

I have the same experience, but one downgrade to Android 4.3 (Jelly Bean) is for me now only the successful temporary solution.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
gku
  • 81
  • 2
  • Sadly, the same computer also has another issue (with custom views) on the UI designer, no matter which ADT it has. I've reported about it here: http://stackoverflow.com/questions/18119907/no-preview-of-custom-views-on-ui-designer-in-eclipse – android developer Nov 04 '13 at 06:28
6

Just scroll down from API 19 to API 18, The Android Image in the Graphical Layout.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
rishiPlus
  • 77
  • 8
2

Temporary solution until Google fixes it:

Workaround: Switch to Android-18 in Graphical Layout (green Android top-right).

Reference: Stack Overflow question How to fix Eclipse ADT Plugin 22.3 / SDK Tools 22.3 with broken properties window?

Community
  • 1
  • 1
Rana.S
  • 2,265
  • 3
  • 20
  • 19
1

After installing the new ADT (22.3.0.v201310242005-887826) which supports Android 4.4 (kitkat), I got the same error.

Then set the API version in the UI preview to something lower than 19. The error only shows up for version 19.

Enter image description here

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Ann
  • 727
  • 1
  • 7
  • 19
0

In my view, it is a new bug. May be we need to wait for Google to update it.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
leo_lv
  • 1
  • 1