1. NBAndroid
  2. Untitled project
  3. nbandroid
  4. Issues
Issue #3 new

Cannot render - missing rendering data

Neil Cadman
created an issue

Hi, i have just installed the key and created a new project in netbeans. When i try to preview the view the layout manager gives me the "cannot render - missing rendering data". Do i need to setup anything, may be I missed somthing which needs to be done?

Comments (25)

  1. Radim Kubacki

    you need to select a few things like target platform and theme from pop-ups above the rendering area. also the project usually needs to be built ( to resolve symbols from R class). if this does not help we can track it down. note that my response time can be slow these days and I'm limited at the moment as I am on vacation.

  2. Tilman Hausherr

    I have the same problem. And I did select a target platform. However I notice that some dropdown elements are empty. The layout displays fine in the "official" google IDE, which I don't like.

    screenshot

    If you need some files, tell me :)

  3. Ronald Pieterse

    Is there a solution for this problem? I rnu into the exact same problem with NetBeans 8, with the exception that it doesn't say <no layout selected> but it shows the name of the layout file.

    What can I do?

  4. Tilman Hausherr

    The link does not explain how to attach a file so I have to insert it here. It is a message.log file, but filtered so that only the lines with "android" are there. I doubt it will help you. The message "Cannot render - missing rendering data." isn't helpful because you're not telling what information was really missing. The combo boxes "Configuration", "Time" and "Rendering Theme" are blank this time. While I don't know what is meant with "Configuration" and "Time", I know that the theme is set in the manifest file.

    org.netbeans.modules.cordova.platforms.android [1.20.2 201311191022]
    org.netbeans.modules.android.xml [1.226]
    com.android.common [22.5.0]
    com.android.layoutlib_api [22.5.0]
    org.netbeans.modules.android.sdklib [22.5.0]
    com.android.ddmlib [22.5.0]
    com.android.ide_common [22.5.0]
    org.netbeans.modules.android.core/2 [1.226]
    org.netbeans.modules.android.project [1.226]
    org.netbeans.modules.android.testrunner [1.226]
    org.netbeans.modules.android.maven [1.226]
    org.netbeans.modules.android.logcat [1.226]
    org.netbeans.modules.android.lint [1.226]
    org.netbeans.modules.android.grammars [1.226]
    com.android.tools [22.5.0]
    org.netbeans.modules.android.kit [1.226]
    org.nbandroid.netbeans.ext [1.226]
    org.nbandroid.netbeans.kit [1.226]
    

    CONFIG [org.netbeans.modules.android.core.sdk.DalvikPlatformManager]: DalvikPlatformManager initialized with location c:\Android\android-sdk FINE [org.netbeans.modules.android.core.sdk.StatsCollector]: enabled = false CONFIG [org.netbeans.modules.android.core.sdk.DalvikPlatformImpl]: DalvikPlatform created: install folder = C:\Android\android-sdk\platforms\android-16@5383680:3cec8d6b, installTarget = PlatformTarget API 16 rev 4, null = null CONFIG [org.netbeans.modules.android.core.sdk.DalvikPlatformImpl]: DalvikPlatform created: install folder = C:\Android\android-sdk\add-ons\addon-google_apis-google-16@f66112c9:6230e8f2, installTarget = AddonTarget API 16 rev 3 (based on PlatformTarget API 16 rev 4), null = null FINE [org.netbeans.modules.android.project.AndroidProjectInfo]: updated needsRefresh to false -Dorg.netbeans.modules.android.level=FINE -Dorg.nbandroid.netbeans.level=FINE FINE [org.netbeans.modules.android.project.queries.ClassPathProviderImpl]: source roots: [file:/XXXXX/AndroidApplication1/src/, file:/XXXX/AndroidApplication1/gen/] FINE [org.netbeans.modules.android.project.AndroidProjectInfo]: updated needsRefresh to false FINE [org.netbeans.modules.android.project.queries.ClassPathProviderImpl]: library roots: [jar:file:/xxxxx/AndroidApplication1/libs/activation.jar!/, jar:file:/xxxxx/AndroidApplication1/libs/additionnal.jar!/, jar:file:/xxxxxx/AndroidApplication1/libs/android-support-v4.jar!/, jar:file:/xxxxxx/AndroidApplication1/libs/mail.jar!/] FINE [org.netbeans.modules.android.project.queries.ClassPathProviderImpl]: compile CP roots: [] FINE [org.netbeans.modules.android.core.sdk.DalvikPlatformImpl]: Found sources c:\Android\android-sdk\sources\android-16 for target PlatformTarget API 16 rev 4 FINE [org.netbeans.modules.android.core.sdk.DalvikPlatformImpl]: Found alternative source folder c:\Android\android-sdk\sources\android-16 for target PlatformTarget API 16 rev 4 FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxxx/AndroidApplication1/libs/activation.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxx/AndroidApplication1/libs/additionnal.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxx/AndroidApplication1/libs/android-support-v4.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/mail.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/activation.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/additionnal.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/android-support-v4.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/mail.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/activation.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/additionnal.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/android-support-v4.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/mail.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/activation.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/additionnal.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/android-support-v4.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/mail.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/activation.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/additionnal.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/android-support-v4.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/mail.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/activation.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/additionnal.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/android-support-v4.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/mail.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/activation.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/additionnal.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/android-support-v4.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/mail.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/activation.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/additionnal.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/android-support-v4.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/mail.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/activation.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/additionnal.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/android-support-v4.jar!/ FINE [org.netbeans.modules.android.project.queries.CompiledSourceForBinaryQuery]: source roots for binary root jar:file:/xxxxx/AndroidApplication1/libs/mail.jar!/ FINE [org.netbeans.modules.android.project.queries.ClassPathProviderImpl]: source roots: [file:/xxxxx/LocationMapper/src/, file:/xxxxx/LocationMapper/gen/] FINE [org.netbeans.modules.android.project.queries.ClassPathProviderImpl]: library roots: [] FINE [org.netbeans.modules.android.project.queries.ClassPathProviderImpl]: compile CP roots: [] INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: XXXX\AndroidApplication1\src took: 63 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 2 ms] INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: XXXXX\AndroidApplication1\gen took: 43 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 1 ms] FINE [org.netbeans.modules.android.project.ui.layout.PreviewController]: repaint requested INFO [org.netbeans.modules.android.project.ui.layout.PreviewController]: Cannot render - missing rendering data.

  5. Ronald Pieterse

    Hi Radim,

    I just updated but I still get the same results. The project is built and the manifest file is in the project root. The logs I see that might have to do with it are below. Not sure what the 'No projects found for []' means...

    INFO [org.netbeans.modules.android.project.ui.layout.PreviewController]: Cannot render - missing rendering data. INFO [org.netbeans.modules.android.project.ui.layout.PreviewController]: Cannot render - missing rendering data. INFO [org.netbeans.modules.android.project.ui.layout.PreviewController]: Cannot render - missing rendering data. INFO [org.netbeans.modules.android.project.ui.layout.PreviewController]: Cannot render - missing rendering data. INFO [org.netbeans.modules.android.project.ui.layout.PreviewController]: Cannot render - missing rendering data. INFO [org.netbeans.modules.android.project.ui.layout.PreviewController]: Cannot render - missing rendering data. INFO [org.netbeans.modules.android.project.ui.layout.PreviewController]: Cannot render - missing rendering data. INFO [org.netbeans.modules.android.project.ui.layout.PreviewController]: Cannot render - missing rendering data. WARNING [org.openide.util.Utilities]: findContextMenuImpl, getPopupPresenter returning null for org.vaadin.netbeans.refactoring.CustomRefactoringAction@3841ce1d getActions false INFO [org.netbeans.modules.android.lint]: No projects found for [] INFO [org.netbeans.modules.android.lint]: No projects found for [] INFO [org.netbeans.modules.android.lint]: No projects found for [] INFO [org.netbeans.modules.android.lint]: No projects found for [] INFO [org.netbeans.modules.android.project.ui.layout.PreviewController]: Cannot render - missing rendering data. INFO [org.netbeans.modules.android.project.ui.layout.PreviewController]: Cannot render - missing rendering data. WARNING [org.openide.util.Utilities]: findContextMenuImpl, getPopupPresenter returning null for org.vaadin.netbeans.refactoring.CustomRefactoringAction@1efff751 getActions false INFO [org.netbeans.modules.android.project.ui.layout.PreviewController]: Cannot render - missing rendering data. INFO [org.netbeans.modules.android.project.ui.layout.PreviewController]: Cannot render - missing rendering data. WARNING [org.openide.util.Utilities]: findContextMenuImpl, getPopupPresenter returning null for org.vaadin.netbeans.refactoring.CustomRefactoringAction@1efff751 getActions false

  6. Radim Kubacki

    1.234 has further improvements to error messaging and with logging enabled it will be possible what input was used to request rendering.

    Also there is a change that allows to load themes like Holo that did not work before.

    And application label is now parsed from manifest.

  7. Luís Soares

    same happening here. only the "Time" dropdown is empty though. where do I get the log to send? I'm on NetBeans 8, JDK 1.7.0 45, Android 4.4.2, Windows 7, NBAndroid Ext. 1.226, Mobile Designer 1.16

    screenshot.3.jpg

    thx

  8. Luís Soares

    Here you go. I deleted the log file before; I opened IDE; the layout file opened automatically and I had two empty dropdowns); I clicked inside the file content and I still get one as in the screenshot above; I close the IDE and get the log file. Here it is: http://pastebin.com/sksLGxKb File: http://pastebin.com/MCfsgBv7 NetBeans 8, JDK 1.7.0 45, Android 4.4.2, Windows 7, NBAndroid Ext. 1.226, Mobile Designer 1.16

    If you need the verbose log please tell me.

  9. Radim Kubacki

    To Luis Soares: it cannot render because it does not know what Android platform to use for rendering. I am not sure why this is but you should be able to choose one in top right combo box (or re-select it?).

  10. Tilman Hausherr

    Still doesn't work. IDE log says:

    INFO [org.netbeans.modules.android.project.ui.layout.PreviewController]: Cannot render - missing platform, layout file.

    Maybe you should tell what steps are needed to show the layout? Should I do anything more than click on a certain file (main.xml) and then click "Window", "Output", "Android Layout Preview" ?

  11. Radim Kubacki

    To Tilman: missing platform - select one of the platforms (Android 1.5/2.0/.../4.4). Or select it. There seems to be a problem that what is shown in UI is not actually used especially when upgrading from older version of plugin. I will check this.

    missing layout - the window tracks last selected layout file. You can keep it open and it will update whenever you move focus to another editor with a layout file or select it in project explorer and so on. Is you file in an expected place (res/layout) in an Android project?

    It would be helpful to attach a log with enabled logging to get more details but I think I have repeated that several times to no avail.

  12. Tilman Hausherr

    I did post a logfile last time, but I realize I hadn't answered your question "Is it a theme set for your application or a theme associated with activity?" It is a theme associated with an acitivty.

    Today I found that I could chose something in the Theme drop down box. It took a long time "Loading...." and the text was unreadable (too short, i.e. the text isn't displayed as a hover), but then suddenly YES!!! a preview appeared.

  13. SiZEg

    System Info:

    Product Version = NetBeans IDE 8.0 (Build 201403101706) (#b8e35b888b3f) Operating System = Windows 8 version 6.2 running on amd64 Java; VM; Vendor = 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08; Oracle Corporation Runtime = Java(TM) SE Runtime Environment 1.7.0_45-b18 Java Home = C:\Program Files\Java\jdk1.7.0_45\jre System Locale; Encoding = en_us (nb); Cp1251

    From log file: INFO [org.netbeans.modules.android.project.ui.layout.PreviewController]: Cannot render - missing platform, layout file.

    At first time I'd been able to chose theme, but now platform, theme and time is empty and coudn't determine layout file. :'( I'm fully updated. Is it possilbe to do something?

    Sorry for my english.

  14. James Decarlo

    I had the same problem in Netbeans 8.0 to fix, It is as easy as switching your platform in the top right corner to another platform. After you do this it will render and you can switch back to the previous platform and it will work. Hope this helps someone else. Good Luck and happy programming.

  15. Log in to comment