Client Not Ready
- By 23tony
- Android Development
- 10 Replies
I just tried to change my launch activity and I am now getting a "Client not ready" error when I try to launch.
Here is my manifest:
I changed only the activities. Here is what it was:
I made that change, and deleted the layout & code for WelcomeActivity. I also changed the configurations, once to explicitly define MapsActivity as the launch activity, and once setting it to default. Same result both times.
If I put everything back, it works fine.
Obviously I'm doing something wrong, but I'm not seeing it. Anyone have any ideas?
Here is my manifest:
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.poc.justamap">
<!--
The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
Google Maps Android API v2, but you must specify either coarse or fine
location permissions for the 'MyLocation' functionality.
-->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="MY_API_KEY" />
<activity
android:name=".MapsActivity"
android:label="@string/title_activity_maps">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
I changed only the activities. Here is what it was:
Code:
<activity
android:name=".MapsActivity"
android:label="@string/title_activity_maps"></activity>
<activity android:name=".WelcomeActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
I made that change, and deleted the layout & code for WelcomeActivity. I also changed the configurations, once to explicitly define MapsActivity as the launch activity, and once setting it to default. Same result both times.
If I put everything back, it works fine.
Obviously I'm doing something wrong, but I'm not seeing it. Anyone have any ideas?