monodevelop(バージョン 3.05) で Hello World アプリを作成し、エミュレーターで実行しようとしています。プログラムは正常にコンパイルされましたが、実行しようとすると次のエラーが発生します。
Detecting installed packages
Installing shared runtime
Deployment failed. Internal error
すべての前提条件をインストールしました。
1. mono for Android
2. mono framework
3. gtk#
4. Android SDK
以下はコードです。
using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
namespace myAndroid
{
[Activity (Label = "myAndroid", MainLauncher = true)]
public class Activity1 : Activity
{
int count = 1;
protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);
// Set our view from the "main" layout resource
SetContentView (Resource.Layout.Main);
// Get our button from the layout resource,
// and attach an event to it
Button button = FindViewById<Button> (Resource.Id.myButton);
button.Click += delegate {
button.Text = string.Format ("{0} clicks!", count++);
};
}
}
}
編集: .Net 2.0 .Net 4.0 Visual Studio 2010 Express は既にコンピューターにインストールされています。Windows 7 で Visual Studio 2005 を管理者として実行していますが、権限に関連する問題である場合、monodevelop は管理者として実行するオプションを提供しません。