title: Android: Google scheduler example does not work
body: <p>I download the example from <a href="http://developer.android.com/training/scheduling/alarms.html" rel="nofollow">here</a>. I imported the project in eclipse, added support library v4 to build path. When I run the app, it always crashes. This is the error in LogCat: Could anyone please help me? Thanks.</p>
  
  <pre><code>05-08 22:39:41.396: E/dalvikvm(22444): Could not find class 'com.example.android.scheduler.SampleAlarmReceiver', referenced from method com.example.android.scheduler.MainActivity.&lt;init&gt;
  05-08 22:39:41.406: E/AndroidRuntime(22444): FATAL EXCEPTION: main
  05-08 22:39:41.406: E/AndroidRuntime(22444): java.lang.NoClassDefFoundError: com.example.android.scheduler.SampleAlarmReceiver
  05-08 22:39:41.406: E/AndroidRuntime(22444):    at com.example.android.scheduler.MainActivity.&lt;init&gt;(MainActivity.java:34)
  05-08 22:39:41.406: E/AndroidRuntime(22444):    at java.lang.Class.newInstanceImpl(Native Method)
  05-08 22:39:41.406: E/AndroidRuntime(22444):    at java.lang.Class.newInstance(Class.java:1319)
  05-08 22:39:41.406: E/AndroidRuntime(22444):    at android.app.Instrumentation.newActivity(Instrumentation.java:1071)
  05-08 22:39:41.406: E/AndroidRuntime(22444):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
  05-08 22:39:41.406: E/AndroidRuntime(22444):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2521)
  05-08 22:39:41.406: E/AndroidRuntime(22444):    at android.app.ActivityThread.access$600(ActivityThread.java:162)
  05-08 22:39:41.406: E/AndroidRuntime(22444):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1370)
  05-08 22:39:41.406: E/AndroidRuntime(22444):    at android.os.Handler.dispatchMessage(Handler.java:99)
  05-08 22:39:41.406: E/AndroidRuntime(22444):    at android.os.Looper.loop(Looper.java:158)
  05-08 22:39:41.406: E/AndroidRuntime(22444):    at android.app.ActivityThread.main(ActivityThread.java:5777)
  05-08 22:39:41.406: E/AndroidRuntime(22444):    at java.lang.reflect.Method.invokeNative(Native Method)
  05-08 22:39:41.406: E/AndroidRuntime(22444):    at java.lang.reflect.Method.invoke(Method.java:511)
  05-08 22:39:41.406: E/AndroidRuntime(22444):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1083)
  05-08 22:39:41.406: E/AndroidRuntime(22444):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:850)
  05-08 22:39:41.406: E/AndroidRuntime(22444):    at dalvik.system.NativeStart.main(Native Method)
  </code></pre>