Bug 52589 - Current error "The previewer requires a 64-bit version of Oracle Java ..." for Android designer/previewer with 32-bit JDK can potentially be improved by adding a button in the designer window that will open the "Xamarin > Android Settings" menu
Summary: Current error "The previewer requires a 64-bit version of Oracle Java ..." fo...
Status: CONFIRMED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Xamarin.Forms Previewer ()
Version: 4.3.0 (C9)
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on: 52588
Blocks:
  Show dependency tree
 
Reported: 2017-02-16 23:17 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2017-07-10 15:16 UTC (History)
8 users (show)

Tags:
Is this bug a regression?: No
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 for Bug 52589 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:
Status:
CONFIRMED

Description Brendan Zagaeski (Xamarin Team, assistant) 2017-02-16 23:17:12 UTC
Current error "The previewer requires a 64-bit version of Oracle Java ..." for Android designer/previewer with 32-bit JDK can potentially be improved by adding a button in the designer window that will open the "Xamarin > Android Settings" menu

This is a follow-up to Bug 52588 for the "Features to improve this error experience and simplify the text can be added in the future."  This bug is targeted to C9SR1 and later milestones.




## Example steps to test (using the Forms Previewer)

1. Start with a Windows system that has a 32-bit version of the JDK installed and selected under "Tools > Options > Xamarin > Android Settings > Java Development Kit Location" in Visual Studio.

2. Create a new "Visual C# > Cross-Platform > Cross Platform App (Xamarin.Forms or Native) > Blank App, Xamarin.Forms, Shared Project".

3. Build the Android project.

4. Double-click the MainPage.xaml file to open it in the source editor.

5. Open "View > Other Windows > Forms Previewer"




## Results

An error dialog appears in the Forms Previewer window.  See Bug 52588 for more details about what is displayed in the error text.  This follow-up bug is focused on other UI features that can be provided in _addition_ to the error message, so specific wording of the original error message is not too important here.




## Possible additional improvements to track in this follow-up bug report

In Xamarin Studio the Forms Previewer has the capability to display very detailed instructions, including buttons to click, when errors like this happen.

Work is underway to bring that capability to Visual Studio.  This bug report is aimed at tracking that work to completion.


- One possible use of the button functionality could be to open the "Xamarin > Android Settings" subsection of the "Tools > Options" dialog directly from the error message in the designer window.

- Another possible use might be to provide a link that would open a browser window to the appropriate JDK 8 (1.8) download page.


The details about the best behaviors to provide via buttons can be decided as the work proceeds.




## Testing environment info (brief)

Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3

XamarinVS 4.3.0.738 (9473a85)

Java JDK 8u121 (1.8.0_121) (32-bit)

Windows 10 (64-bit) Version 1607 (OS Build 14393.321)
US English locale, US Eastern time zone