title: android.os.ServiceManager not found while building
body: <p>I am getting following error while building android source, where i have added my custom app which uses android.os.ServiceManager.</p>
  
  <pre><code>cannot find symbol
  symbol  : class ServiceManager
  location: package android.os
  import android.os.ServiceManager;
  </code></pre>
  
  <p>Why am I facing this error, actually this import can be found in many other app in android source.</p>
  
  <p>I am building the android source as in <a href="http://source.android.com/source/building.html" rel="nofollow noreferrer">http://source.android.com/source/building.html</a>
  and also followed this post <a href="https://stackoverflow.com/questions/4446469/the-import-android-os-servicemanager-cannot-be-resolved">The import android.os.ServiceManager cannot be resolved</a> answers.</p>
  
  <p>and for more info, I am building in [android root]/packages/app/ directory </p>
  
  <p>Please can anybody help me to solve this ?</p>