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.
Related
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
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.
I have been using Chrome to debug a mobile application that I am working on, but lately I am unable to give commands like console.log('test'), or debug variables, for example: if I typed Array_Person I would get something like
[Object,Object]
>0:Object
>1:Object
And if i expand the object i would get the data inside. Now it doesnt.
Now for some reason every time i try to debug my device application, no matter what i type, it works like i am typing on notepad
It affects only my device debugger, if i try to debug a website it works as usual
What I have already tried:
- Close then open Google Chrome
- Uninstall and reinstall Google Chrome
- Reboot computer
- Recompile the mobile application
I expected to be able to open the details of the Array, as I want to debug the content of an array.
Obs: I am new here, so if my question does not fit this site, do tell me where should i send this question.
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
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.