title: Google Maps Android API v2 Authorization failure
body: <p>My steps: </p>
  
  <ul>
  <li>got SHA1 code from debug.keystore  </li>
  <li>create app in google apis console  </li>
  <li>enabled google map api v2  </li>
  <li>input SHA1;my.package.name  </li>
  <li>get API key  </li>
  <li><p>created AndroidManifest file:  </p>
  
  <p>
      </p>
  
  <pre><code>    &lt;permission
              android:name="my.package.name.permission.MAPS_RECEIVE"
              android:protectionLevel="signature"/&gt;
  
      &lt;uses-permission android:name="my.package.name.permission.MAPS_RECEIVE"/&gt;
  
      &lt;uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15"/&gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt;
      &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /&gt;
  
      &lt;uses-feature android:glEsVersion="0x00020000" android:required="true"/&gt;
  
      &lt;application android:label="@string/app_name" android:icon="@drawable/ic_launcher" android:hardwareAccelerated="true"&gt;
  
          &lt;meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="MY_API_KEY_HERE" /&gt;
  
          &lt;activity android:name="MyActivity"
                    android:label="@string/app_name"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN"/&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER"/&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre></li>
  <li><p>created layout  </p></li>
  <li>put "google-play-services.jar" to libs  </li>
  </ul>
  
  <p>After compilation I've got crash: </p>
  
  <pre><code>  ERROR/AndroidRuntime(10182): FATAL EXCEPTION: main
                  java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable
                  at com.google.android.gms.maps.GoogleMapOptions.createFromAttributes(Unknown Source)
                  at com.google.android.gms.maps.MapFragment.onInflate(Unknown Source)
                  at android.app.Activity.onCreateView(Activity.java:4716)
                  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
                  at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
                  at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
                  at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
                  at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)
                  at android.app.Activity.setContentView(Activity.java:1881)
                  at com.example.gm2.MyActivity.onCreate(MyActivity.java:16)
                  at android.app.Activity.performCreate(Activity.java:5104)
                  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
                  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
                  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
                  at android.app.ActivityThread.access$600(ActivityThread.java:141)
                  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
                  at android.os.Handler.dispatchMessage(Handler.java:99)
                  at android.os.Looper.loop(Looper.java:137)
                  at android.app.ActivityThread.main(ActivityThread.java:5039)
                  at java.lang.reflect.Method.invokeNative(Native Method)
                  at java.lang.reflect.Method.invoke(Method.java:511)
                  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
                  at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>After that I've changed layout to:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
               android:id="@+id/map"
               android:layout_width="match_parent"
               android:layout_height="match_parent" /&gt;
  </code></pre>
  
  <p>and changed MyActivity to</p>
  
  <pre><code>  super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
      FragmentManager manager = getFragmentManager();
      FragmentTransaction transaction = manager.beginTransaction();
  
      transaction.add(R.id.map, MapFragment.newInstance());           
      transaction.commit();
  </code></pre>
  
  <p>As result, the application was started, but I didn't see the map. </p>
  
  <p>Console log:</p>
  
  <pre><code>ERROR/Google Maps Android API(10369): Authorization failure.
  </code></pre>