SimpleDateFormat formatter new SimpleDateFormat("yyyy-MM-dd qqq HH:mm:ss");
Date date new Date(System.currentTimeMillis());
String timeformatter.format(date);
System.out.println("当前时间"formatter.format(date));
在设置dialog的时候出现
android.view.WindowManager$BadTokenException: Unable to add window -- token null for displayid 0 is not valid; is your activity running?这个错误,代码如下所示
ProgressDialog progressDialog DialogUtil.showProgressDialog…
Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.意思是已安装的构建工具修订31.0.0已损坏。使用SDK管理器删除并重新安装。
compileSdkVersion 30 buildToolsVersion "31.0.0"
targetSdkVersion 30
我们可以…