I created new blank app in xamarin and i didn't change anything in code view.
When I try to run app. Emulator works good but app doesnt run in emulator. I am using VS 2015 Enterprise Version:14. My operating system is Win10 Enterprise
-VS
Right mouse click on solution. Select Configuration Manager. Select Deploy.
Sometimes it gets stack (check green bottom bar in visual studio). If green bar stays full and doesn't go away restart emulator.
Another reason can be that there is no MainLauncher Activity is defined.
Related
I have an app in Xamarin that I want to test on a physical IPhone (normally I test it on Android). I'm connected to a Mac, the development certificate is working and everything is deployed to the point that the app is actually installed on the IPhone itself. The issue however is that when I press the icon to start the app, it tries to start it and then is closes right after that (like it crashes or something).
I'm using Visual Studio for Windows, and it is stated that: "XAML Hot Reload encountered a problem and failed to start. Verify the Mono Interpreter for is enabled in the project settings, clean and rebuild the solution.". Mono Interpreter is enabled, I cleaned the solution and rebuild it multiple times. There are no errors given.
The app that is installed now shows the Xamarin icon and Xamarin splash screen (so not the custom one I designed). I don't mind that, but I'm not sure if that has something to do with this.
Does someone know what is wrong here and how to fix it?
Visual Studio for Windows version 17.4.1
iOS version 15.5
Note: this issue is only with the development and deployment directly from Visual Studio from Windows. When the app is distributed to the users (in App Center) the app works as it should.
I'm seeing the same basic issue as Debug Nativescript on Visual Studio Code not working but I'm on VSCode 1.30.2. From what I can tell, this has been fixed, so I'm re-asking this question since apparently I have a different issue.
As you can see, VS thinks it's debugging, but nothing happens. The blue progress bar under the Launch on Android continually moves from left to right, but I don't see anything. I would expect to see an emulator popping up, but I don't see anything.
I followed the advanced install instructions on the NativeScript website. Only thing I did do was skip the Chrome install, since I already have it installed.
Running the app from the command prompt correctly shows the emulator, but I can't figure out how to be able to run and attach it from VSCode. The app is a brand new Angular App generated using the tns create <app> command.
I use Android Studio on macOS in full screen (maximised). When launching the Android Emulator, its window is shown on the regular desktop. This requires switching from one window to another. I'd like to be able to look at both windows at the same time, without leaving full screen mode in Android Studio.
Is there a way to move the Android Emulator window to within (or on top of) my Android Studio window?
With Android Studio 4.1 and above you can run the Android Emulator directly in Android Studio.
To run the emulator in Android Studio, make sure you're using Android Studio 4.1 with version 30.0.10 or higher of the Android Emulator, then follow these steps:
Click File > Settings > Tools > Emulator (or Android Studio > Preferences > Tools > Emulator on macOS), then select Launch in a tool window and click OK.
If the Emulator window didn't automatically appear, open it by clicking View > Tool Windows > Emulator.
Start your virtual device using the AVD Manager or by targeting it when running your app.
For more info: Run the Android Emulator directly in Android Studio
This is not a 100% answer, but near to it and since it doesn't fit in comments, I'll write it here. Hopefully we can turn it into a 100% answer.
It is possible to do this with applications that supports full screen mode. Unfortunately the Android emulator does not do this. Genymotion does.
There seem to be hacks to activate full screen mode for applications that don't support it natively. For example, for the iOS simulator, you have to run this on a terminal:
defaults write com.apple.iphonesimulator AllowFullscreenMode -bool YES
A Google search returns several results to do this with the Android Emulator: https://www.google.com/search?q=how+to+run+android+emulator+full+screen&rlz=1C5CHFA_enDE822DE822&oq=how+to+run+android+emulator+full+screen&aqs=chrome..69i57.6269j0j9&sourceid=chrome&ie=UTF-8
I've not tested any of them, so that's left as an exercise to the reader. If you do successfully please write it in the comments (or directly edit this post with the steps).
It may also make sense to make a feature request on the emulator to enable full screen mode.
Once you have an emulator/simulator that supports full screen mode, you can use MacOS's split view feature. In order to do this:
Press and hold the full screen button on Android Studio (while not in full screen mode).
Move it to the left part of the screen.
Now in the right part you will see "candidates" to share the full screen with. Your simulator/emulator should appear here. Click on it. It should expand to fill the right half of the screen.
Drag the handle between the left and right part to the right, such that Android Studio occupies more space.
See https://support.apple.com/en-au/HT204948
I also looked into this and there doesn't seem to be any support for this. Perhaps you could write a plugin that somehow wraps an external window inside a panel, I don't know if the IntelliJ API supports it though.
The closest thing you got on macOS is the split-screen mode with full-screen apps.
I am having some issue when running a Xamarin.Forms application in the Android Emulator using Visual Studio 2015. At the beginning everything was working OK. Every time I did a change either in XAML or C#, when I rerun the emulator I can see the changes (without closing it).
Now, for some reason if I do the same, those changes are not applied in the Android Emulator. In order to see any change, I need to close the emulator and click the green play button again every time.
For example, if I want to change the FontColor of a label to be Blue instead of Black in XAML, before just clicking the restart button was enough to see the change. For any C# change, clicking the stop button and then the play button was enough as well.
Now, to see the same result I have to close the emulator and reload it again. Which take some time.
Has anyone have faced the same problem? Any help/ clue would be ver helpful?
Thanks!
#MikePR
I suggest to get rid of the Hyper-V based VS Android Emulator and use the Intel HAXM
native Emulator. I experienced much simular
issues with Hyper-V emulator, too.
Or much better get rid of any emulator and use
vysor.io and visualize your real device like an
emulator on your desktop. My personal favorit.
Hope it is helpful.
PS: Never in life use GenyMotion. That doesn't work in Remote Desktop Sessions and only runs
on windows machines with OpenGL 2.0 installed
and HAXM and Hyper-V disabled. I currently had that disappointing experience.
A really cool tool for XAML Preview is Gorilla Player!
I downloaded the trail version of MonoDroid. I am going through the hello world tutorial and now at the part where I want to deploy my app to the emulator.
It comes up with a "Select Device" dialog with nothing in it. So I click on "Start emulator image", this pops up another dialog with available images. I have one emulator made and it is in this dialog box. I hit ok and I am not at dialog box with still nothing to choose.
So I am not sure what to do.
I am running Visual Studios pro 2010 on a window 7 64bit.
This seems to be a regression in Google's latest version of the Android SDK. Emulators will no longer run if there are spaces in SDK location path.
Uninstall the Android SDK and install it back to a new location without spaces and it should work.