Bug 15474 - Inaccurate message "Error finding Android/Java SDKs" when opening projects in 4.8.3
Summary: Inaccurate message "Error finding Android/Java SDKs" when opening projects in...
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 3.0
Hardware: PC Mac OS
: Normal minor
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2013-10-17 19:25 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2015-02-11 03:02 UTC (History)
4 users (show)

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


Attachments
Log from XA 4.8.3 (4.28 KB, text/plain)
2013-10-17 19:25 UTC, Brendan Zagaeski (Xamarin Team, assistant)
Details
Log from XA 4.8.1 (2.50 KB, text/plain)
2013-10-17 19:26 UTC, Brendan Zagaeski (Xamarin Team, assistant)
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 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 Brendan Zagaeski (Xamarin Team, assistant) 2013-10-17 19:25:57 UTC
Created attachment 5165 [details]
Log from XA 4.8.3

## Steps to reproduce
1. Start Visual Studio 2010 or 2012.
2. Open an existing Android project, or create a new Android project.


## Result
The Xamarin.Android log includes error messages that say "Error finding Android/Java SDKs" and "Error finding SDK version", but the project still loads, compiles, and deploys to emulator (for the projects I've tried).

The log also contains all of the normal success messages displayed by X.Android 4.8.1. See also the attached logs for XA 4.8.1 and 4.8.3.


## Version information
Tested on Windows 8 and 8.1
The error messages appear with XA 4.8.3, and not with XA 4.8.1.


### Android version info on Windows 8

Supported Android versions:
	2.1   (API level 7)
	2.2   (API level 8)
	2.3   (API level 10)
	3.1   (API level 12)
	4.0   (API level 14)
	4.0.3 (API level 15)
Java SDK: C:\Program Files (x86)\Java\jdk1.6.0_39
java version "1.6.0_39"

SDK Tools 22.2.1
SDK Platform-tools 18.0.1
SDK Build-tools 18.1.1
SDK Build-tools 18.1
SDK Build-tools 18.0.1
SDK Build-tools 17

### Android version info on Windows 8.1
Supported Android versions:
	2.1   (API level 7)
	2.2   (API level 8)
	2.3   (API level 10)
	3.1   (API level 12)
	4.0   (API level 14)
	4.0.3 (API level 15)
	4.3   (API level 18)
Java SDK: C:\Program Files (x86)\Java\jdk1.6.0_39
java version "1.6.0_39"

SDK Tools 22.2.1
SDK Platform-tools 18.0.1
SDK Build-tools 17
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2013-10-17 19:26:19 UTC
Created attachment 5166 [details]
Log from XA 4.8.1
Comment 2 Saurabh 2015-02-06 08:28:54 UTC
I have checked this with latest build and observed that when user open or create Android application, Android logs does not appears in Output pad. I think this section has removed from Output pad.

Are you still getting this Issue? Could you please let me know where I can check Android log after opening or creating project?

Microsoft Visual Studio Professional 2012
Version 11.0.61030.00 Update 4
Microsoft .NET Framework
Version 4.5.50938

Installed Version: Professional

LightSwitch for Visual Studio 2012   04938-004-0033001-02186
Microsoft LightSwitch for Visual Studio 2012

Office Developer Tools   04938-004-0033001-02186
Microsoft Office Developer Tools

Team Explorer for Visual Studio 2012   04938-004-0033001-02186
Microsoft Team Explorer for Visual Studio 2012

Visual Basic 2012   04938-004-0033001-02186
Microsoft Visual Basic 2012

Visual C# 2012   04938-004-0033001-02186
Microsoft Visual C# 2012

Visual C++ 2012   04938-004-0033001-02186
Microsoft Visual C++ 2012

Visual F# 2012   04938-004-0033001-02186
Microsoft Visual F# 2012

Visual Studio 2012 Code Analysis Spell Checker   04938-004-0033001-02186
Microsoft® Visual Studio® 2012 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Visual Studio 2012 SharePoint Developer Tools   04938-004-0033001-02186
Microsoft Visual Studio 2012 SharePoint Developer Tools

ASP.NET and Web Tools   2012.3.41009
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure

NuGet Package Manager   2.8.50926.602
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.0
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   11.1.20627.00
Microsoft SQL Server Data Tools

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   3.9.293.0 (080a254)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   4.20.0.34 (49a04b966feb40dfdba49d57ba16249b66d606a6)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.6.1.0 (3b3ef438017c7ecf486defa9e01567a5f2b3cb2a)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration   1.0
Automated migration for Xamarin iOS Classic projects to Unified
Comment 3 Brendan Zagaeski (Xamarin Team, assistant) 2015-02-11 03:02:59 UTC
The log files in the attachments came from `%LOCALAPPDATA%\Xamarin\Log\XamarinAndroid\11.0\Trace.*.log`.

The corresponding log file in modern versions is `%LOCALAPPDATA%\Xamarin\Log\11.0\devenv*.log`. The "Error finding SDK version" does not appear in these logs. The bug can be closed.