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
android visual-studio-2017 xamarin.android


source to share


No one has answered this question yet

See similar questions:

five
Undefined complexType 'java.lang.Object' is used as base for complex type extension

or similar:

387
Visual Studio 2017 error: Unable to start program, operation is not legal in its current state
369
How to manually enable external aar package with new Android Build Gradle system
272
Is Visual Studio Community a 30 day trial?
191
Unit tests not found in Visual Studio 2017
50
"RuntimeException: The native font could not be created" when loading the font
6
How do I play an audio file in Android?
2
Override separator
2
Android - tiled backgrounds sometimes stretch
1
How to make a nice main menu page
-1
Layout is Orientation = vertical, when device rotates it does not work



All Articles
Loading...
X
Show
Funny
Dev
Pics