"Something went wrong" when creating project

0

I created a project android xamarin - xml is as it came, I have not written any lines in anything yet, but I can not see the design:

  

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1       at com.google.gson.Gson.fromJson (Gson.java:815)       at com.google.gson.Gson.fromJson (Gson.java:768)       at com.android.sdklib.repository.local.LocalPlatformPkgInfo.getLibsFromJson (LocalPlatformPkgInfo.java:402)       at com.android.sdklib.repository.local.LocalPlatformPkgInfo.getOptionalLibraries (LocalPlatformPkgInfo.java:384)       at com.android.sdklib.repository.local.LocalPlatformPkgInfo.createAndroidTarget (LocalPlatformPkgInfo.java:251)       at com.android.sdklib.repository.local.LocalPlatformPkgInfo.getAndroidTarget (LocalPlatformPkgInfo.java:104)       at com.android.sdklib.repository.local.LocalSdk.getTargets (LocalSdk.java:712)       at com.android.sdklib.SdkManager.getTargets (SdkManager.java:181)       at mono.android.AndroidDesignerHost.getAndroidTarget (AndroidDesignerHost.java:87)       at mono.android.DesignerSession.initialize (DesignerSession.java:107)       at mono.android.Project.createSession (Project.java:401)       at mono.android.Project.processMessage (Project.java:432)       at mono.android.MessageListener.executeMessage (MessageListener.java:88)       at mono.android.MessageListener $ Runner.run (MessageListener.java:45)       at java.lang.Thread.run (Thread.java:745)   Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1       at com.google.gson.stream.JsonReader.beginArray (JsonReader.java:338)       at com.google.gson.internal.bind.CollectionTypeAdapterFactory $ Adapter.read (CollectionTypeAdapterFactory.java:79)       at com.google.gson.internal.bind.CollectionTypeAdapterFactory $ Adapter.read (CollectionTypeAdapterFactory.java:60)       at com.google.gson.Gson.fromJson (Gson.java:803)       ... 14 more

    
asked by anonymous 18.02.2017 / 18:18

1 answer

1

You need the 64bit version of java installed. Also, update the Xamarin version. Install Api 25 from Android, Build Tool 25.0.x and Platform-tools 25.0.x

(Note that there may be updates to these tools)

This type of error refers to Build Tools versions of Android.

(From the Post of Montemagno) link

    
13.03.2017 / 18:55