title: Default Template on Android Studio deprecated
body: <p>Earlier I was asking about how to come over from Windows phone development.  I didn't just sit and wait for replies I got started.</p>
  
  <p>I installed Android Studio.  I learned that it didn't have the 4.4 API by default (the version of Android my new phone will be running) so I located the SDK manager and installed the missing SDK.
   The preview pane for the layout editor could not render...I learnt I needed to go to the module settings and change the target there, then to the preview pane drop-down and change the targeted Android version there.
  I added a simple button and then realised I have an error with the java ...that I have yet to touch! </p>
  
  <pre><code>public class MainDisplay extends ActionBarActivity {
  </code></pre>
  
  <blockquote>
    <p>ActionBarActivity is deprecated.</p>
  </blockquote>
  
  <p>...but that's the default template!</p>
  
  <pre><code>getMenuInflater().inflate(R.menu.menu_main, menu);
  </code></pre>
  
  <blockquote>
    <p>cannot resolve symbol R.</p>
  </blockquote>
  
  <p>...again, it's default "blank activity" template.</p>
  
  <p>I checked for updates and it is the latest version of Android Studio: 1.2.1.1.  My JDK is the latest version: <code>jdk1.8.0_45 (64bit)</code>.</p>
  
  <p>Any ideas why my Android Studio (freshly installed today) is generating broken templates or any other ideas about how to fix?</p>
  
  <p>EDIT</p>
  
  <p>I uninstalled Android Studio, the SDK and deleted all folders created by it
  then I reinstalled it all. I installed version 1.7 of Java JDK.</p>
  
  <p>I got the same errors on a new project.</p>
  
  <p>This is the source code it generates:</p>
  
  <pre><code>import android.support.v7.app.ActionBarActivity;
  import android.os.Bundle;
  import android.view.Menu;
  import android.view.MenuItem;
  
  
  public class MainActivity extends ActionBarActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.menu_main, menu);
          return true;
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          // Handle action bar item clicks here. The action bar will
          // automatically handle clicks on the Home/Up button, so long
          // as you specify a parent activity in AndroidManifest.xml.
          int id = item.getItemId();
  
          //noinspection SimplifiableIfStatement
          if (id == R.id.action_settings) {
              return true;
          }
  
          return super.onOptionsItemSelected(item);
      }
  </code></pre>
  
  <p>As you can see, it is extending the deprecated class, and adding those R's it can't resolve .....and this is before I have done anything.</p>
  
  <p>But for tonight, I have run out of time. I had 7 hours free to start porting my app to Android and it's all gone setting up the dev environment.  I wouldn't mind but it's not working and I have no idea why.</p>