1.
activity_main cannot be resolved or is not a field
去除Activity代码页导入的类 import android.R;
2. android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
只有原始创建这个视图层次(view hierachy)的线程才能修改它的视图(view)