我是学习 android java 的初学者。我从 Youtube 学习 java android 教程,并且完全按照视频中的编码进行操作,但是我的编码在 android studio 上显示“无法解析符号‘标签’”。我可以知道是什么问题吗?并希望得到这里各位大师的解释。
package com.NewApplicationLifeCycle;
import ...
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Log.i( tag: "State", msg: "onCreate" );
}
@Override
protected void onStart() {
super.onStart();
Log.i( tag: "State", msg: "onStart" );
}
@Override
protected void onResume() {
super.onResume();
Log.i( tag: "State", msg: "onResume" );
}
@Override
protected void onPause() {
super.onPause();
Log.i( tag: "State", msg: "onPause" );
}
@Override
protected void onStop() …Run Code Online (Sandbox Code Playgroud)