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

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


Attachments
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
Details
Second error (495.85 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-07-28 15:25 UTC, sandeep.rayat
Details
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
Details
Project (9.65 KB, text/plain)
2016-07-28 15:31 UTC, sandeep.rayat
Details
App1.zip (247.19 KB, application/zip)
2016-08-01 20:21 UTC, Jonathan Pryor
Details
Build Output (369.69 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-08-02 09:03 UTC, sandeep.rayat
Details
Screenshot of Tools Android (295.24 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-08-02 09:04 UTC, sandeep.rayat
Details
Screenshots (462.38 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-08-02 14:34 UTC, sandeep.rayat
Details


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:
Status:
RESOLVED FIXED

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.







Regards
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:

https://developer.xamarin.com/guides/android/application_fundamentals/understanding_android_api_levels/Images/vs-target-framework.png
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]
Project
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

jonp@xamarin.com

Kind Regards

Sandeep
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]
App1.zip

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?

https://developer.xamarin.com/guides/android/troubleshooting/troubleshooting/#Diagnostic_MSBuild_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 6.1.2.21.

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:

v1.0
v2.3
v4.0.3
v4.1
v4.2
v4.3
v4.4
v4.487
v4.5
v5.0
v5.1
v6.0
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]
Screenshots
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:

https://developer.xamarin.com/guides/android/application_fundamentals/understanding_android_api_levels/Images/vs-target-framework.png
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.