Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid (Eclipse) cannot find google-play-services_lib.apk tried multiple solutions
    text
    copied!<p>I am creating an android application that displays a map based on the Google maps API, which should be compatible with android 2.3 API level 10.</p> <p>I have tried all the solutions i could come across such as:</p> <ol> <li>imported existing code into my project (checked copy to workspace and its the directory google-play-services-lib)</li> <li>added the correct meta and such in my XML (see below)</li> <li>I have tried setting up the emulator with several different settings</li> </ol> <p>The android application runs fine, but when this page is shown is exits.</p> <p>Manifest.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="dcs.aber.ac.uk.cs211.group02" android:versionCode="1" android:versionName="1.0" &gt; &lt;uses-sdk android:minSdkVersion="10" android:targetSdkVersion="22" /&gt; &lt;permission android:name="dcs.aber.ac.uk.cs211.group02.permission.MAPS_RECEIVE" android:protectionLevel="signature" /&gt; &lt;!-- Accessing camera hardware --&gt; &lt;!-- putting android.hardware.camera prevents non-camera devices using this app --&gt; &lt;uses-feature android:name="android.hardware.camera" /&gt; &lt;uses-feature android:glEsVersion="0x00020000" android:required="true" /&gt; &lt;uses-permission android:name="dcs.aber.ac.uk.cs211.group02.permission.MAPS_RECEIVE" /&gt; &lt;uses-permission android:name="android.permission.INTERNET" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt; &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt; &lt;uses-permission android:name="dcs.aber.ac.uk.cs211.group02.providers.gsf.permission.READ_GSERVICES" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt; &lt;application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:logo="@drawable/ic_launcher" android:theme="@style/AppTheme" &gt; &lt;activity android:name="dcs.aber.ac.uk.cs211.group02.StartScreen" 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;activity android:name="dcs.aber.ac.uk.cs211.group02.CreateWalkActivity" android:label="@string/title_activity_create_walk" &gt; &lt;/activity&gt; &lt;activity android:name="dcs.aber.ac.uk.cs211.group02.HelpScreen" android:label="@string/title_activity_help_screen" &gt; &lt;/activity&gt; &lt;activity android:name="dcs.aber.ac.uk.cs211.group02.WalkRecording" android:label="@string/title_activity_walk_recording" &gt; &lt;/activity&gt; &lt;/application&gt; &lt;meta-data android:name="dcs.aber.ac.uk.cs211.group02.API_KEY" android:value="AIzaSyBKYpKfU4zn-3IBkskKsLbwRsQ1-IqFldk" /&gt; &lt;meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /&gt; &lt;/manifest&gt; </code></pre> <p>The xml displaying the map:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/black" tools:context=".WalkRecording" &gt; &lt;fragment xmlns:android="http://schemas.android.com/apk/res/android" xmlns:map="http://schemas.android.com/apk/res-auto" android:id="@+id/mapView" android:name="com.google.android.gms.maps.SupportMapFragment" android:layout_width="match_parent" android:layout_height="match_parent" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p>the java code for the map class</p> <pre><code>import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.SupportMapFragment; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.view.Menu; public class WalkRecording extends FragmentActivity { private GoogleMap map; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_walk_recording); map=((SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.mapView)).getMap(); map.setMapType(GoogleMap.MAP_TYPE_NORMAL); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.walk_recording, menu); return true; } } </code></pre> <p>The eclipse trace:</p> <pre><code>[2013-11-22 23:03:07 - WalkingTours] ------------------------------ [2013-11-22 23:03:07 - WalkingTours] Android Launch! [2013-11-22 23:03:07 - WalkingTours] adb is running normally. [2013-11-22 23:03:07 - WalkingTours] Performing dcs.aber.ac.uk.cs211.group02.StartScreen activity launch [2013-11-22 23:03:07 - WalkingTours] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'mapTestAPI16' [2013-11-22 23:03:07 - WalkingTours] Uploading WalkingTours.apk onto device 'emulator-5554' [2013-11-22 23:03:07 - WalkingTours] Installing WalkingTours.apk... [2013-11-22 23:03:12 - WalkingTours] Success! [2013-11-22 23:03:12 - google-play-services_lib] Could not find google-play-services_lib.apk! [2013-11-22 23:03:12 - WalkingTours] Starting activity dcs.aber.ac.uk.cs211.group02.StartScreen on device emulator-5554 [2013-11-22 23:03:14 - WalkingTours] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=dcs.aber.ac.uk.cs211.group02/.StartScreen } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload