从 git 克隆闹钟的 android 源。导入到我的 Eclipse 中发现以下错误:
Alarms.java:
Line 463: Intent alarmChanged = new Intent(Intent.ACTION_ALARM_CHANGED);
Error: ACTION_ALARM_CHANGED cannot be resolved or is not a field.
---------------------------------------
AlarmKlaxon.java
Line 89: mVibrator = new Vibrator();
Error: Cannot instantiate the type Vibrator
-----------------------------------
DigitalClock.java
Line 184: CharSequence newTime = DateFormat.format(mFormat, mCalendar);
Error: Call requires API level 3 (current min is 1):android.text.format.DateFormat#format
Line 167: mContext.unregisterReceiver(mIntentReceiver);
Error: mContext cannot be resolved
-----------------------------------
SetAlarm.java
Line 115: FrameLayout content = (FrameLayout) getWindow().getDecorView()
.findViewById(com.android.internal.R.id.content);
Error:com.android.internal.R cannot be resolved to a variable
-----------------------------------
这不是这个应用程序,我从 git android 树克隆的任何应用程序......我遇到了一些错误或其他错误。我不知道我做错了什么。我的目标是果冻豆。我还检查了将构建目标设为谷歌 API,但没有用。