How to hand " An unhandled exception occured." visual studio Xamarin Android? - visual-studio

Sometimes a visual studio will not catch all Android error.
so I use the logcat inside visual studio
but it's somehow limited? is there and alternative

1.Open
C:\Program Files (x86)\Android\android-sdk\tools\lib\monitor-x86\monitor.exe
If not available, install it for the SDK tool
2.Chose the device
3.Chose the logcat
4.R-Click on the logs and chose filter
5.Filter by the app name  and log tag AndroidRuntime
6.google the error

Related

How to fix error in this emulator?

Am trying to generate emulator at visual studio 2017 and always this error appears .
Change the Build Action of 'storyoapp.png' to AndroidResource. Xamarin does not support the Content build action and will throw an error (Xamarin.Android Build Process information)

VS 2017 RC cannot find cordova tools

after several unistalls and reinstalls processes of VS 2017 I'm still getting the following error (translated from spanish) when I try to compile for chrome emulator a new and empty project in vs 2017 RC:
MSBUILD : cordova-build error BLDErr_Build_ToolsetInstallation: Could not find the target tool set on the disk.
I've tried also to perform repair processes but the error still persists. Of course I've checked that android SDK, node, etc. are installed and the environment variables have the correct name and path.
Does anyone know how can force to find cordova tools or whatever it is looking for?
Big thanks in advance.
In my case this worked:
Go to visual studio installer(type it in windows start menu).
Choose to modify your installation of Visual Studio.
Go to indivudual components.
Choose to add cordova 6.3.1(at this moment) toolset.
Install and try to build your project.

Double-click this warning

I have just started working with Xamarin this week. I created a new "Mobile App" in Azure and downloaded from Azure a sample Xamarin Forms app. When I try opening it in Xamarin Studio, I get this message:
Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file...
There are two problems with this message. First, these warnings exist only in Xamarin Studio. The same solution opened in Visual Studio 2015 does not have this warning - and so it is not possible for me to "double-click" it in Visual Studio.
Second, the full text of this Xamarin Studio warning is virtually inaccessible because there is no way to copy it. What portion of the warning you see above, I had to transcribe. The rest of the warning is VERY long, and Xamarin Studio is acting as if it expects me to copy it somehow. But the only way to copy it...is again to spend twenty or thirty minutes transcribing it. Certainly I must be misunderstanding how to use Xamarin Studio. Here is a screen shot:
Is there a Xamarin Studio keyboard shortcut or trick that would allow me to capture this warning? And is it normal for Xamarin Studio to request problems to be fixed through Visual Studio? Why does the warning not exist in Visual Studio?
This solution also doesn't build in Visual Studio 2015. I don't get any warnings (unfortunately?), and in fact I don't appear to have any build errors either. However, when it attempts to deploy (Windows phone emulation) it gives me a variety of errors. Most of them are of this variety:
The name 'X' does not exist in the current context.
I'm baffled by this, because the symbols it names are indeed missing. So why does it build successfully?
This is not a problem in visual studio or xamarin studio.
If the device on which you are trying to deploy the build,already has an apk file installed(not from your work station), you will get this issue.
To resolve this uninstall it from the device and also from the package manager and then try to deploy the build.
I hope it will help.

Debugger error "Unable to attach. Invalid Pointer" from Ripple

I've just installed the Multi-device Hybrid Apps preview for Visual Studio 2013, and I'm getting an error when attempting to debug via Ripple for iOS or Android.
"Unable to attach. Invalid Pointer"
There is no useful output provided by Visual Studio 2013, rather the debugger just doesn't attach to the browser Ripple emulator after showing the exception. The exception happens immediately and the debugger never attaches. I've had this error occur since installation, so it shouldn't have anything to do with the project itself. I checked my paths and they appear to be correct.
System Properties -> Advanced -> System Variables:
ADT_HOME | C:\Users\Name\AppData\Local\Android\android-sdk
ANT_HOME | C:\apache-ant-1.9.3
JAVA_HOME | C:\Program Files (x86)\Java\jdk1.7.0_55
Global Path Variable (last section):
C:\Program Files\nodejs\;C:\Program Files
(x86)\Git\cmd;C:\Program Files (x86)\Windows Kits\8.1\Windows
Performance
Toolkit\;%JAVA_HOME%\bin;%ADT_HOME%\tools;%ADT_HOME%\platform-tools;%ANT_HOME%\bin;C:\Program
Files (x86)\Microsoft SDKs\TypeScript\1.0\
I've made sure that the latest android SDK was installed via the package manager, as suggested here. I've also done multiple reboots since the installation.
Any suggestions on how to fix this error?
Edit
Here's a screen showing Visual Studio's lack of output. There's some general output written while building, but the output is erased immediately when the exception occurs.
I also noticed that I cannot run my application in the Android emulator, which shows that there may be a general installation problem. When trying to run the Android Emulator in Debug mode, I get the following errors:
Let me answer this question in 2 parts:
Debugger not attaching
Multi Device Hybrid Apps CTP1/1.1 only supports debugging on Android devices and emulators 4.4+. This is probably why your debugger fails to attach.
Android emulator not found
It seems that you have not created an AVD (android virtual device), which is why F5 to the Android emulator fails.
Open command prompt and type
android avd
Now, create an AVD image with your preferred configuration and then try to F5 again.
I had the same issue. Don't know if it helps, but in my case I had to uninstall Resharper (Version 8.2).

Cannot compile Flash with Amethyst IDE for Visual Studio 2010

I create their basic Flash app with their Flash IDE for Visual Studio 2010
http://www.sapphiresteel.com/Products/amethyst-ide/article/amethyst-product-page
When launching the run button, it launch flash but with this error within Flash CS4:
The following JavaScript error(s) occurred:
At line 6 of file "FlashApplication1.jsfl":
Cannot find file file:///C:/temp/FlashApplication1/FlashApplication1/FlashApplication1.as.
Did someone tried and has this problem also and then a solution ?
This is discussed in a thread in the SapphireSteel Software forum: http://sapphiresteel.com/forum/index.php?topic=542.0

Resources