0
今日私はいくつかのプロジェクトに取り組んでいましたが間違っていません。突然、Xamarinはプロジェクトをもう理解しません。何も変わりませんでした。ただ、私は間違いをしていると言います。Xamarinはもうプロジェクトを認識しません
using Android.OS;
using Android.App;
using Android.Widget;
using Android.Graphics;
[ActivityAttribute(Label = "Hello", MainLauncher = true)]
public class HelloApp : Activity
{
protected override void OnCreate(Bundle b)
{
MainActivity.OnCreate(base, b);
TextView screen;
screen = new TextView(this);
screen.Text = "Hello!";
screen.TextSize = 80;
screen.SetBackgroundColor(Color.Yellow);
screen.SetTextColor (Color.DarkBlue);
this.SetContentView(screen);
}
}
したがって、 'b'パラメータ名は基本宣言で異なります。名前の名前 'MainActivity'は現在のコンテキストに存在しません。キーワード 'base'の使用はこのコンテキストでは無効です。
私は何をしているのか、私は何の仕事をしているのかは問題ではありません。誰が何が間違っていたのか分かりましたか?