Xamarin Android app can't be deployed to the VS2019 emulator - android

I have been trying to solve this for a while now, I followed this guide up to this point: https://dotnet.microsoft.com/learn/xamarin/hello-world-tutorial/devicesetup but once I click on the Android Emulator I get this message
To which I click Install, but nothing happens and it's an endless loop, right after that if I click on NEW, I have no device recognized.
Am I missing an installation process? Knowing that I followed the Xamarin guide literally.
Thank you.

Related

Android SDK is Unavailable Upon First Startup of Android Studio

I've been trying to install Android Studio for use in creating a React Native app using Expo. As I try to install Android Studio, and run it for the first time, I arrive at the following screen:
Keep in mind, I have not yet separately installed an SDK (I'm unsure of how to).
I click the "Next" button and come to this screen:
I am unsure of where to go from here. Do I install Android SDK, and if so, how?
EDIT: If I skip through these steps, clicking "Next" until I go to the main page, and I attempt to start a new project, this comes up:
Any help is appreciated. Thank you.
I was on the company computer and had the VPN connected. Disconnected the VPN and it worked fine.
I think there is an issue with your network.
Actually you should be able to see a list of all the available sdks as you can see in the image I attached.
screenshot of settings screen

"Xamarin Test Recorder quit unexpectedly" on Mac when trying to open test (.xtrs file)

I just installed Xamarin Test Recorder and started using it, I've recorded and run tests against my android app, and I've saved that test.
However, if I try to open a test (by double clicking the .xtrs file) it always pops up this error:
Xamarin Test Recorder quit unexpectedly.
Click Reopen to open the application again. Click Report to see more detailed information and
send a report to Apple.
I've tried creating another test and got exactly the same result (create and run and save works fine but the file cannot be opened again after having closed Xamarin Test Recorder).
This seems like an amazing tool and I'd love to use it; has anyone come accross this issue and can suggest a fix.
Today I downloaded the latest version and it worked.
From https://developer.xamarin.com/guides/testcloud/testrecorder/
I also found the Xamarin email support gave quick responses : support#xamarin.com

How can view application errors in android studio

I am new to android studio.
Previously used eclipse to develop android apps but Google stopped it.
So i am trying to learn how to develop apps using android studio.
I have noticed that if an application gets an error and stops , i dont get any log information on the cause of the error as it was the case in eclipse.
It is possible to view application errors in android studio?
Any help will be highly appreciated.
Ronald
Click on the Android Monitor at the bottom row.

Viewing Logcat with Android app in Chrome using ARC Welder

I am trying to get our Android app to run under Chrome using ARC Welder on a Mac. The app is crashing soon after startup and I'm trying to look at the Logcat to see what is going on. I have found the following instructions in another thread that discusses how to do this.
Open your debug APK in ARC Welder and run it
Open logcat in Android Studio, (or what ever tool you normally use to view logcat).
Open Chrome and type "chrome://inspect/#apps" in the address bar
Hopefully you see your App name listed, click the 'inspect' link for your app.
In the Javascript Console that appears type "plugin.shell('adbd')" and press enter.
Now go back to Android Studio and you should see a load of log messages in the logcat, filter by your app name and hopefully you are good to go.
My problem is after step #3 I don't see my app listed when going to "chrome://inspect/#apps". I only see the ARC Welder app listed (and sometimes even that is not there). Hence there is no "inspect" link to click.
Any idea what I'm doing wrong? How can I view the app's Logcat when running under ARC Welder?
I did finally get this figured out. The app appears on the chrome://extensions page and it is there that I can "inspect" it. It also appears that you can only do a plugin.shell('logcat') while the app is actually running. So if the app is crashing at startup, you need to put a delay in so you can enter this command before the crash actually happens.

chrome ARC-Welder javascript console plugin not defined

I installed ARC_Welder to test run my android apps. App runs , but I was trying to get logs. I read this article : https://developer.chrome.com/apps/getstarted_arc .
Tried running -- plugin.shell('adbd') in JavaScript console (chrome://inspect/#apps) .
But i'm getting this error :
Uncaught ReferenceError: plugin is not defined
Same thing happened when tried running : plugin.shell('logcat');
I'm not a chrome javascript developer. please help me understand where i am wrong..
I just had the same issue, the instructions on the page you mentioned are correct, but not very clear.
You should:
Open your debug APK in ARC Welder and run it
Open logcat in Android Studio, (or what ever tool you normally use to view logcat).
Open Chrome and type "chrome://inspect/#apps" in the address bar
Hopefully you see your App name listed, click the 'inspect' link for your app.
In the Javascript Console that appears type "plugin.shell('adbd')" and press enter.
Now go back to Android Studio and you should see a load of log messages in the logcat, filter by your app name and hopefully you are good to go.
Are you sure you opened your apps page by clicking the "inspect" link from the "chrome://inspect/#apps" page?
The error you see suggests that you are typing it into some javascript console that isn't for an app view. The "plugin" name is only defined for use by Chrome apps and extensions, and not arbitrary web pages.

Categories

Resources