Monodroid "Hello-World" for Visual Studio 2010 does not work

I tried to create “Hello-World” in mono for android using visual studio 2010. I followed the instructions given here: http://mono-android.net/Tutorials/Hello_World It worked fine until this stage:

"Visual Studio will now pack your application, copy it to the emulator and launch it. After that you will see something like this:"

This stage has not passed. Thus, there were no signs for packaging, copying to an emulator, or launching. I could see the android emulator start unsigned for my application. I tried to find the application in Android applications, it was not there.

I thought I found a workaround as follows: When I left the emulator, I returned to Visual Studio with the "Select Device" window. This time a window appeared with the device name "emulator-5554" highlighted in green, but only about 1 second (this device name or anything other than "Monodroid" did not appear when I tried to start the application at the beginning by pressing CTRL-F5 ) If during this 1 second I pressed OK, I saw these massages one by one:

"Application for packaging." "Waiting for device."

This last message did not end until I closed the window. As a result, another pop-up window appeared that said:

"There were deployment errors. Continue?"

When I clicked “Yes”, I achieved this: “MonoDroid does not support starting the previous version. Please make sure your solution is built before launching or debugging.” When I clicked No, I reached the above deployment error message.

When I was waiting for the 5554 emulator device to disappear after 1 second, all I can do is exit the “Select device” window, which ended with the same error message.

What can I do to make it work? Can someone help please? Thanks!

+4
source share
3 answers

Add the Android tool catalog to your path in your environment settings. Then run the command: "adb kill-server" to restart the adb process. Then run "adb devices" and make sure you see your emulator. If you do not see this, close the emulator and restart it.

Try building again, if this fails, you can connect to the bin directory where your .apk file is located and try running "adb install your-app.apk" to install apk manually in the emulator.

+4
source

MonoDroid error is very common and has many different reasons.

Please visit this other question to find out more about this.

Build failed. MonoDroid does not support starting a previous version

0
source

I had the same problem. First, open the emulator and create your device and start and wait (it will take about 15 minutes for the first time) It will be used in the best way if you do not use a USB cable

0
source

All Articles