Bug 44374 - App open and close immediately when launch.
Summary: App open and close immediately when launch.
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-09-15 16:16 UTC by Asdrubal Chirinos
Modified: 2016-12-22 19:42 UTC (History)
5 users (show)

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


Attachments
MSBuild Output (3.65 MB, text/plain)
2016-09-15 16:16 UTC, Asdrubal Chirinos
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 NOT_REPRODUCIBLE

Description Asdrubal Chirinos 2016-09-15 16:16:47 UTC
Created attachment 17514 [details]
MSBuild Output

App open and close immediately when launch.

After any new Xamarin/Forms Project is created and trying to start the appp, it opens at the emulator and immediately closes.

I think this might be related to the Xamarin debugger or Xamarin Designer as both are showing some error message:

Severity	Code	Description	Project	File	Line	Suppression State
Warning		An unexpected error occurred trying to initialize Android Designer. Please verify the Android SDK path and the  Java Development Kit path on Tools->Options->Xamarin->Android Settings menu. Please see the logs for more details.		 	0	

I have checked this sections and all path seems to be ok:
C:\Program Files (x86)\Java\jdk1.7.0_55
C:\Program Files (x86)\Android\android-sdk
C:\ProgramData\Microsoft\AndroidNDK\android-ndk-r10e\

I'm also getting this message from Xamarin output at Visual Studio Output Pane
An unexpected error occurred trying to initialize Android Designer.

Other message I found is related to Debugger at Debug output
( 4790): AOT module 'mscorlib.dll.so' not found: dlopen failed: library "/data/app-lib/DemoPortable.Droid-1/libaot-mscorlib.dll.so" not found
Comment 1 Juan Marcelo Tondato 2016-09-19 19:38:57 UTC
Hi Asdrubal,

In order to understand what is happening and related to the first part of the report "An unexpected error occurred trying to initialize Android Designer. Please verify the Android SDK path and the  Java Development Kit path on Tools->Options->Xamarin->Android Settings menu".

Could you verify the components that you have installed?

First at all, please run the android sdk manager from command line: 
    - move to android sdk folder
    - run Sdk manager exe

Could you attach the following information:
1. Android SDK Tools installed
2. Android SDK Platform-tools installed
3. Android SDK Build-tools installed
4. Api-levels (SDK Platform) installed
5. Extra components installed

Also, it would be great if you add the following information:

1. Xamarin Logs
Go to the menu "Help - Xamarin - Zip Logs". Please attach that zip file to the
bug report.

2. Environment information
Go to the menu "Help - About Microsoft Visual Studio" and press "Copy Info".
Please paste that info in a Bugzilla comment.

Thanks!
Comment 2 Adrian Alonso 2016-12-22 19:42:03 UTC
Please let us know if you still need help with this issue. Thanks, Adrian