Xamarin 4.0.8 The layout could not be loaded: Empty region!

UnpongUnpong THMember

Xamarin 4.0.8 (build 2) problem when open layout.
"The layout could not be loaded: Empty region!"

Howto resolve this problem?

Posts

  • LluisSanchezLluisSanchez ESXamarin Team Xamurai

    This seems to be a problem in the layout xml. Can you attach the layout? or send it to [email protected] if it can't be public.

  • UnpongUnpong THMember

    This problem found when the Xamarin Studio generate AndroidManifest.xml from "Option->Build->Android Application".

  • jamilcejamilce PKMember

    did you get the possible solution.... becoz I am also hang in this....problem///
    kindly he me.

  • UnpongUnpong THMember

    mono.android.DesignerException: Empty region!

    at mono.android.DesignerSession.load(DesignerSession.java:129)
    
    at mono.android.DesignerSession.processMessage(DesignerSession.java:462)
    
    at mono.android.ListenerThread.processMessages(HostProcessConnection.java:182)
    
    at mono.android.ListenerThread.run(HostProcessConnection.java:156)
    
  • JeffreyStedfastJeffreyStedfast USXamarin Team Xamurai

    Could you submit a bug report at https://bugzilla.xamarin.com? Thanks!

    I think the developer that maintains that code is on vacation right now and I don't want to risk this bug getting lost!

  • AnthonyRoseAnthonyRose ILMember

    I am also getting this type of "Empty region!" error with no clues for me to fix the problem except for:

    mono.android.DesignerException: Empty region!
    at mono.android.DesignerSession.load(DesignerSession.java:129)
    at mono.android.DesignerSession.processMessage(DesignerSession.java:462)
    at mono.android.ListenerThread.processMessages(HostProcessConnection.java:182)
    at mono.android.ListenerThread.run(HostProcessConnection.java:156)

    I suspect the issue has NOTHING to do with the axml, so I need some rapid help to solve this.

    This is the VERY SIMPLE Layout.axml:

    <?xml version="1.0" encoding="utf-8"?>

  • UnpongUnpong THMember

    I found the solution here
    https://bugzilla.xamarin.com/show_bug.cgi?id=13938

    The problem is caused by the @drawable/app icon specified in the manifest.
    Looks like the Android SDK doesn't like .ico files. I'll do some research on
    that. As a workaround, try using a .png file instead of .icon.

  • it is my manifiest,
    <?xml version="1.0" encoding="utf-8"?>



    what is the solution exactly ?

  • <?xml version="1.0" encoding="utf-8"?>



    what need I change ?

Sign In or Register to comment.