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 ツリーから複製したアプリケーションではありません...エラーが発生しています。何が間違っているのかわかりません。ジェリービーンを狙っています。また、ビルドターゲットをGoogle APIとして作成することも確認しましたが、使用しません。