こんにちは、Android 開発の時間をコーディングしようとしています。
import android.text.format.Time;
MainActivity
これは、保護された void 内のクラスの私のコードですonCreate
。
TextView abc;
abc= (TextView) findViewById(R.id.clockTextView);
abc.setText("Time is " + Time.hour + ":" + Time.minute);
エラーが発生し続ける理由Cannnot make a static reference to the non-static field Time.hour
と、これを修正するにはどうすればよいですか? ありがとう。