Skip to content

DeleteBinObj bug with AndroidResource #2193

Description

@jonathanpeppers

Steps to Reproduce

  1. File | New Project | Android App (Xamarin) | Tabbed App, set Minimum Android Version to Android 5.0 (Lollipop)
  2. Build
  3. Open Resource\layout\activity_main.axml (I used the ancient VS XML editor instead of the designer, to remove that from the equation)
  4. Add a new TextView
  5. Run via F5 or the Play button

A crash at runtime is encountered:

Unhandled Exception:
Android.Views.InflateException: Binary XML file line #1: Binary XML file line #1: Error inflating class android.support.design.widget.BottomNavigationView occurred

On this line:

SetContentView(Resource.Layout.activity_main);

My TextView source is basically the default if dragged from the toolbox in the designer:

 <TextViewandroid:text="Text"android:layout_width="match_parent"android:layout_height="wrap_content"android:minWidth="25px"android:minHeight="25px"android:id="@+id/textView1" />

Once in this state, a Rebuild fixes the problem. You can deploy again to see the issue resolved.

Expected Behavior

Modifying a layout should not cause a runtime exception!

Actual Behavior

Modifying a layout causes runtime exception! Rebuild resolves the issue...

Version Information

I have been able to repro this on VS 2017 15.8.4, and the build of Xamarin.Android we will be shipping with 15.9 P3.

Log File

Relevant logs: DeleteBinObj.zip

VS bug #686581

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.bugComponent does not function as intended.vs-syncFor internal use only; creates a VSTS "mirror" issue.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions