Cannot run "HelloWorld" monodroid application on my device - c#

Helo.apk
and Hello-signed.apk (by vs2010 monodroid)(default monodroid app from template
I have lg android2.2 phone and i load by usb to my phone those files.
When i run it i see "Unexpected error process Hello.apk")
In emulator device application works fine
Mycompilation config-debug all cpu
Should i install mono to my device?
Should i use another build
configuration(linking sd and user assemblies)
What is use shared
libraries?
p.s i am using trial version of monodroid

The trial version of monodroid does not support pushing to phones, you will have to try your sample app on an emulator.
Edit:
Yes the emulator is pretty bad, I feel your pain - it's too the point where the trial version is almost useless. This is not monodroid's problem to solve though, even if it paints their product in a very bad picture. Developing and debugging on the phone with monodroid works actually much better.

Related

Can apps be developed, installed, and debugged onto an actual iPad Pro using ONLY Visual Studio & Xamarin on Windows 10 computer WITHOUT using a Mac?

Can a C# app prototype be developed on my iPad Pro by using ONLY Visual Studio with Xamarin, on my Windows 10 Pro computer without buying (ie. using) a Mac?
Initially, for rapid development of non-distribution prototype, I want to use only VS 2017 Pro & Xamarin on Windows 10 to develop and test an app on my iPad Pro 12.9".
App will talk to other system components by WiFi, and utilize new iPad Pro features like pen and its high quality screen, for augmented reality.
Can get Mac later, in order to deploy on Apple store.
Can I truly develop, deploy onto actual iPad, and debug 100% with only VS & Xamarin, and without Mac and Xcode?
This Microsoft article about its Xamarin Live Player is confusing to me because it reads "the source code is interpreted" which I don't want, and later it reads "The app runs right on your phone or tablet." is I want.
Yes, a mac is required to build and debug iOS apps.
However, VSTS does allow you access to a mac build host which can build and deploy to TestFlight and the AppStore, if required (and if configured correctly). This won't allow you to debug and step through your code on a device or in the iOS Simulator, however. For that you need the Mac with High Sierra and the latest XCode installed.
Xamarin Live Player is in preview only and is only really useful for simple apps at the moment.
So, the answer is the company needs to buy me a new Mac. Yum.
The bad news is that it's back to using Xcode again. Two years ago, the star rating of Xcode on Apple Store was a mere 2-stars. It would be nice if the tool to develop on iOS was as easy to use as iOS. But, that's what Stackoverflow is for, I guess. :)
Whilst the existing answers/comments are correct I thought I'd add my own experience with this
If, like me, you won't use the mac for anything other than a build server for xamarin, I can say that a mac mini is fine for this, and will allow you to build apps. Just make sure you connect visual studio on your PC to the mac.
It's also worth noting, that more recently Visual studio team services has started using a hosted macOS build host. I haven't used this myself as I bought a mac mini, but in theory, if you use VSTS you might be able to build and deploy your iOS apps. I would suggest that you check it out.
https://learn.microsoft.com/en-gb/vsts/pipelines/apps/mobile/xamarin?view=vsts&tabs=vsts
https://blogs.msdn.microsoft.com/devops/2017/11/16/cloud-hosted-mac-agents-for-ci-cd-pipelines/
Sadly this has always been the case with xamarin and it's the way apple licensing works.

VS2017 Deploy to ARM

I can usually find resolutions to my problems here, but no one seems to have experienced the problem I'm having.
I'm using VS2017, building a UWP app for Win10 Anniversary edition. The app deploys fine to the Local Machine and the emulator. However, when I try to start debugging on the phone (MS Lumia 950), the Deploy process finishes successfully almost instantly. Then I get the "Project needs to be deployed before it can be started..." message. I'm not seeing any error messages during deployment, just the one after deployment apparently succeeds. If I try to deploy from the Build menu, I get the same rapid deployment.
The phone and PC both are updated with the Creators update. I have rebooted the pc and the phone. I have checked the 'Deploy' option in Config Manager. The phone is unlocked when I deploy. If I unplug the USB cable, I get the expected "Bootstrapping failed. Device cannot be found." message. I don't have another USB-C cable to try, but I can see and explore the phone from File Explorer in Win10. I used "WinAppDeployCmd List -ip 127.0.0.1" to make sure the app really isn't on the phone.
I've developed some other UWP apps in VS2015, this is my first go with 2017. Sorry if I was overly verbose, I want to provide as much detail as I can. I don't know what to try next.
Thanks for any insight.
Don

Android app build in c# crashes on real device, but works on emulator

I have build an android app. My application works on the emulator, but when i export the .apk file, and test it on a real device, it just crashes instantly.
I already tried unchecking fast deployment, and shared runtime. I already checked the internet permission because i have a webview. The device that I'm using is android 5.0 and the app supports that.
Try to debug the app in your device and check the log. It will be help you to find out the actual issue.
You said in your app you are using images so it may be crashes due to memory out of exception.

Xamarin - VS2015 emulator not working

I've been doing some research on this, but it seems like I couldn't find anything yet. So, I'm new to Xamarin and I've been building some small apps for fun. I cannot, however, use the VS Android emulator, as it is pretty heavy for my machine. Is there a way to use another emulator to run the apps?
Thanks a lot! :)
Provide more details about your problem so we can find a solution and make the VS Android Work.
You can use other Emulators like :
Xamarin Android Player
Genymotion
Andy OS
Refer : Visual Studio Android Emulator
If you have an Android Phone or Tablet my best advice would be to debug on that. If not (and you're not looking at investing in a new computer any time soon) my advice would be to look on eBay for a cheap, older Android phone (which is what I did as I like to use an iPhone) and debug on that. This proved to be an ideal solution for me as all I wanted to do was play about.
There are a lot of options with visual studio emulators for android. You can use devices from 1-3 RAM.
You can also create devices with Android Virtual Device and configure the RAM there.

Android application does not works: "The xx.xx application (xx.xx process) stopped unexpectedly. Try again

Well, I'm getting started in applications android development, as I'm familiar with C#.NET(and I love it), I decided to use the fantastic MonoDroid project. I downloaed and installed,worked fine until now. I created hello world application, using MonoForAndroid_API_8 emulator device, worked fine.
then I copied *.apk files and installed in my tablet with android OS 2.2, but when I run my application,I get the following error:
The xx.xx application (xx.xx process) stopped unexpectedly. Try again.
how to fix this? Any help is very appreciated. Thanks in advance.
You can find information here about how to view the Android logs.
I'll take a guess at what your problem is though, without having seen the logs. Are you using the full version of Mono for Android or the evaluation? The eval doesn't support deploying to an actual device.
If you are on the full version, is the APK from a debug build or release? Debug builds are made to use a shared runtime to make deployments quicker, but it means that the APK doesn't contain everything the app needs to run. Release builds don't use the shared runtime, so the Mono runtime is bundled with the APK.

Categories