Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用日历类设置手表。该行:
Calendar mCalendar = new GregorianCalendar(TimeZone.getDefault())
给我一个错误:
无法解析符号 GregorianCalendar 错误
我究竟做错了什么?
也许您需要添加
import java.util.GregorianCalendar;
到有问题的Java类?