Visual Studio 2017 deployment error: Undefined ComplexType java.lang.Object is used as the basis for complex type extension

Today I am installing Visual Studio 2017, started building android app. When the app is created, it gets the correct assembly. But, when I run, the following deployment issue occurs:

Undefined ComplexType java.lang.Object is used as the basis for complex type extension

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <Button
        android:id="@+id/MyButton"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/Hello" />
</LinearLayout>

      

enter image description here

  • The following error appears when launching the application:

enter image description here

Update: Right now from Android SDK Manager , I've updated the packages as well. But the same problem persists.

Anyone can explain the problem and provide a perfect solution, thanks in advance.

NOT Duplicate As,

  • My project compiles correctly.
  • When I run / run it gets Deployment error. Previously this led to a compilation problem. The fix is ​​rounding up with a deployment problem.
  • Tried solution provided there and by another forum, but still trying to create the first android app.
+3


source to share





All Articles