Bug 14869 - Changing the JDK location in SDK Preferences for Android does not save
Summary: Changing the JDK location in SDK Preferences for Android does not save
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 3.0
Hardware: PC Mac OS
: Normal enhancement
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2013-09-19 16:12 UTC by PJ
Modified: 2015-07-17 10:47 UTC (History)
5 users (show)

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

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:
VERIFIED FIXED

Description PJ 2013-09-19 16:12:33 UTC
I'm filing another bug right now, so this one will be brief.

Here's the screencast: http://screencast.com/t/7XcI3YmYp

1) Have JDK 6 set
2) Try to set JDK7
3) Reopen Options (also this persists through a restart of XS, screencast doesn't show it though)


Expected
JDK 7 is set

Actual

Still JDK 6

Environment:

 https://gist.github.com/pjbeaman/724dcb7bd73790a4400f


Nothing looks relevant in the logs, can investigate further if needed though.
Comment 1 Mikayla Hutchinson [MSFT] 2013-09-19 17:41:29 UTC
This appears to be a deliberate decision made by the android team: https://github.com/xamarin/androidtools/blob/master/Xamarin.AndroidTools/Sdks/AndroidSdkWindows.cs#L144
Comment 2 Jonathan Pryor 2013-09-19 17:42:54 UTC
Dominique: Any idea why the JDK location isn't preserved on Windows?
Comment 3 Dominique Louis 2013-09-20 13:40:14 UTC
I've added a trello card to our disparity board so the VS team can discuss further whether we should implement the UI for this.


D.
Comment 4 Jonathan Pryor 2014-07-28 16:26:56 UTC
As mhutch said in Comment #1, this is an androidtools bug/feature/Q#$%@#$%@.

Related: androidtools needs to be updated to support JDK 1.8.

Windows should be updated to support overriding the JDK location.
Comment 5 Rajneesh Kumar 2015-07-17 10:47:00 UTC
I have checked this issue with the latest stable build XVS 3.11.666 and observed that this issue has been fixed and no longer exist with this build. Now changing the JDK location in SDK Preferences for Android, it save successfully.

Screencast:  http://www.screencast.com/t/XKElkeSl

This issue has been fixed, hence I am closing this issue.

Thanks..!

Environment Info:

=== Xamarin Studio ===
Version 5.9.4 (build 5)
Installation UUID: 08cac54d-8d5b-406e-adf0-707e52f76272
Runtime:
Microsoft .NET 4.0.30319.18408
GTK+ 2.24.22 (MS-Windows theme)
GTK# 2.12.26
=== Xamarin.Android ===
Version: 5.1.4 (Business Edition)
Android SDK: E:\android-sdk
Java SDK: C:\Program Files (x86)\Java\jdk1.7.0_60
java version "1.7.0_60-ea"
Java(TM) SE Runtime Environment (build 1.7.0_60-ea-b15)
Java HotSpot(TM) Client VM (build 24.60-b09, mixed mode, sharing)
=== Build Information ===
Release ID: 509040005
Git revision: 8010a90f6e246b32364e3fb46ef2c9d1be9c9a2b
Build date: 2015-06-08 17:16:25-04
Xamarin addins: 7e93e9c3503f28770f23ce1b7eafd829919f18e8
=== Operating System ===
Windows 6.2.9200.0 (64-bit)