Bug 42886 - Xamarin Initial Blank App Problems
Summary: Xamarin Initial Blank App Problems
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2016-07-28 14:17 UTC by sandeep.rayat
Modified: 2016-08-16 19:40 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

All the error messages that I am receiving (277.09 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-07-28 14:17 UTC, sandeep.rayat
Second error (495.85 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-07-28 15:25 UTC, sandeep.rayat
Sorry sent the wrong attachment here is the error message (182.21 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-07-28 15:26 UTC, sandeep.rayat
Project (9.65 KB, text/plain)
2016-07-28 15:31 UTC, sandeep.rayat
App1.zip (247.19 KB, application/zip)
2016-08-01 20:21 UTC, Jonathan Pryor
Build Output (369.69 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-08-02 09:03 UTC, sandeep.rayat
Screenshot of Tools Android (295.24 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-08-02 09:04 UTC, sandeep.rayat
Screenshots (462.38 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-08-02 14:34 UTC, sandeep.rayat

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description sandeep.rayat 2016-07-28 14:17:40 UTC
Created attachment 16814 [details]
All the error messages that I am receiving

Error when trying to create a Blank App for Xamarin.Forms

All the errors that are listed have been sent through the attachments. 

Can't seem to get past this error.

Dont have the best knowledge with Xamarin so not too sure where the error lies.

Comment 1 Jonathan Pryor 2016-07-28 15:15:16 UTC
My guess is that your `$(TargetFrameworkVersion)` value is set to v2.2, and I have no idea how that happened short of hand-editing the .csproj.

Please go to Project Properties > Application tab, and change the "Compile using Android version" drop-down to something after v4.0:

Comment 2 sandeep.rayat 2016-07-28 15:24:36 UTC
Thanks for your speedy reply. I have changed it in the .csproj as the 'compile using android version' only showed 1 option "Use Latest Platform"

I now have a new error of System.ObjectModel could not be found.
Comment 3 sandeep.rayat 2016-07-28 15:25:26 UTC
Created attachment 16816 [details]
Second error
Comment 4 sandeep.rayat 2016-07-28 15:26:47 UTC
Created attachment 16817 [details]
Sorry sent the wrong attachment here is the error message
Comment 5 Jonathan Pryor 2016-07-28 15:30:26 UTC
Please attach your project for further analysis.
Comment 6 sandeep.rayat 2016-07-28 15:31:44 UTC
Created attachment 16818 [details]
Comment 7 sandeep.rayat 2016-07-28 15:33:01 UTC
Sorry is there any way to attach the project, not sure how to do this successfully?
Comment 8 Jonathan Pryor 2016-07-28 18:28:12 UTC
> is there any way to attach the project

Zip up the project directory, and attach the .zip file.
Comment 9 sandeep.rayat 2016-07-29 09:08:41 UTC
Hi the file was too big to send over here so I have emailed it to you at


Kind Regards

Comment 10 sandeep.rayat 2016-08-01 08:50:08 UTC
Hi did you manage to take a look at the problem as i am still having the issue?
Comment 11 Jonathan Pryor 2016-08-01 20:21:59 UTC
Created attachment 16852 [details]

Project from Comment #9 with all bin, obj, and packages directories removed. This greatly reduces the repro size, as the contents of all of those directories can be recreated w/o being included in the .zip.
Comment 12 Jonathan Pryor 2016-08-01 20:29:44 UTC
The App1.Droid project builds without error for me on macOS.

I've asked someone to try building Attachment #16852 [details] on Windows as well.

@sandeep.rayat: Would it be possible for you to get diagnostic build output?

Comment 13 Peter Collins 2016-08-01 21:11:08 UTC
I'm able to build and deploy attachment 16852 [details] without any issue using VS2015 and XA

I'm curious about your Android SDK setup. Could you navigate to the Android SDK Location outlined in Tools -> Options -> Xamarin -> Android Settings and list the content of the "platforms" directory?

Additionally, could you please list the directory content of the following path - "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\"?

If you are not seeing any valid target frameworks other than "Use Latest Platform" then I believe one of the SDKs has not been installed or configured correctly.
Comment 14 sandeep.rayat 2016-08-02 09:02:49 UTC
Thanks for getting back to me, I am attaching the build output as an attachment

Ahh the SDK Location seems to be empty. There seems to be nothing there.
It reads No Android SDK found.

When i try to access Tools- Android -

There seems to be nothing there either. (See second attachment)

The directory content for MonoAndroid shows:

Comment 15 sandeep.rayat 2016-08-02 09:03:28 UTC
Created attachment 16857 [details]
Build Output

Build Output
Comment 16 sandeep.rayat 2016-08-02 09:04:17 UTC
Created attachment 16858 [details]
Screenshot of Tools Android

Tools Android Screenshot
Comment 17 sandeep.rayat 2016-08-02 14:34:15 UTC
Hi, I have updated my Android SDK and have attached some relevant screenshots of the errors I am now getting.

I have also shown my Android SDK settings and Android SDK manager.

Please let me know if you need more information.
Comment 18 sandeep.rayat 2016-08-02 14:34:31 UTC
Created attachment 16865 [details]
Comment 19 Juan Marcelo Tondato 2016-08-16 19:29:06 UTC
The original value of targetFrameworkVersion=2.2 is a bug on XVS. It has fixed.

As a workaround try to set a valid value following the comment 1 steps: 

    Please go to Project Properties > Application tab, and change the "Compile using     
    Android version" drop-down to something after v4.0:

Comment 20 Daniel Cazzulino 2016-08-16 19:40:03 UTC
We've fixed the root cause for the issue and it will come out in our next alpha drop.

Please do reopen it if you see this happening again afterwards.