Welcome to the Treehouse Community
Looking to learn something new?
Problem with Preview Representative Sample
When I try to Preview Representative Sample I get a message that an internal error has occurred.
An internal error has occurred. After scene creation, #init() must be called
Anyone know how to fix this?
That happened to me also, The API 19 was selected by default (seems broken).
Solved it Clicking the dropdown above which has the Android icon with a number (19) and chose another API. I chose 17 (as I have API 17 installed, and probably you too), and then it worked well.
Ryan Bend5,951 Points
Had a similar problem, for some reason eclipse is having trouble with the latest SDK.
I'm just copying the reply I gave in another thread, but the principal is the same, it lets you change the rendering engine:
Load up the Android SDK Manager, it should be under the 'Window' menu in your menu bar at the top of Eclipse.(If not make sure you're using the "Java" perspective) if you're using a mac, I have no idea.
From there scroll down until you see Android 4.3, you want to install the SDK Platform and the ARM EABI v7a System Image, at least those are the ones I used.
Once that's done you might have to restart eclipse.
Now when you're in the graphical editor tab of the activity_main.xml look for a little Android alien with the number 19 beside him. It should be at the top of the main window with your app preview.
Click the down arrow beside it and change the number to API 18: Android 4.3.
No idea why this works as it's supposed to only change the way that it renders the layout but it worked for me. Let me know if you need any clarification or if it still won't work.
Moved this to a comment below the answer Ryan posted. There doesn't seem to be an option to delete this one though.
Hello I am in loop. I can't find the API 17 . And I don't know how to add other API with the Android SDK Manager. Could you help me? Tnks.