stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
04/28/14 07:27 PM (10 years ago)

google gms

I'm trying to update an Android app and I get message that there are errors in my xml file. I look at it and see this: <!-- Google Cloud Messaging Project Number Replace "YOUR_GOOGLE_GCM_PROJECT_NUMBER" with the Project Number provided by Google See <a href="http://developer.android.com/google/gcm/gs.html" target="_blank" rel="nofollow">http://developer.android.com/google/gcm/gs.html</a> --> <meta-data android:name="googleCloudMessagingProjectNumber" android:value="YOUR_GOOGLE_GCM_PROJECT_NUMBER_GOES_HERE"/> I've never gotten this before and don't know that this project number is. Is this something new? Also when I click on the red x I see : Element type "application" must be followed by either attribute specifications, ">" or "/ >". I''ve changed nothing so I don't know what this means either. Thanks. Steve
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
04/28/14 07:47 PM (10 years ago)
Please disregard the above. What I see now is the error comes in this section: <!-- application --> <application android:name="skyeventfinder_appDelegate" android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/hostThemeWithTitle" android:hardwareAccelerated="false" <!-- Google Cloud Messaging Project Number Replace "YOUR_GOOGLE_GCM_PROJECT_NUMBER" with the Project Number provided by Google See <a href="http://developer.android.com/google/gcm/gs.html" target="_blank" rel="nofollow">http://developer.android.com/google/gcm/gs.html</a> --> <meta-data android:name="googleCloudMessagingProjectNumber" android:value="YOUR_GOOGLE_GCM_PROJECT_NUMBER_GOES_HERE"/> <!-- Google Maps v2 API Key Replace "GOOGLE_MAPS_FOR_ANDROID_V2_API_KEY_GOES_HERE" on the next line with the Google Maps for Android API Key provided by Google See: <a href="https://developers.google.com/maps/documentation/android/start#installing_the_google_maps_android_v2_api" target="_blank" rel="nofollow">https://developers.google.com/maps/documentation/android/start#installing_the_google_maps_android_v2_api</a> --> <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="GOOGLE_MAPS_FOR_ANDROID_V2_API_KEY_GOES_HERE"/> <!-- Google Cloud Messaging --> <receiver android:name="com.skyeventfinder.BT_gcmReceiver" android:permission="com.google.android.c2dm.permission.SEND" > <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> <action android:name="com.google.android.c2dm.intent.REGISTRATION" /> <category android:name="com.skyeventfinder" /> </intent-filter> </receiver> <service android:name=".BT_gcmIntentService" /> <!-- BT_activity_start is the default, beginning activity, it may or may not load a splash screen fragment (plugin) --> <activity android:name=".BT_activity_start" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation|screenSize" android:theme="@style/startThemeNoTitle"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <!-- BT_activity_host runs after startup and after splash screen (splash screens are not required --> <activity android:name=".BT_activity_host" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation|screenSize" android:theme="@style/hostThemeWithTitle" android:uiOptions="splitActionBarWhenNarrow"></activity> </application> </manifest> When I click on the red x that appears on the line right before the line with Google could messaging, I see : Element type "application" must be followed by either attribute specifications, ">" or "/>" If I put a /> at the end of the hardware acceleration then I get multiple errors about children. I have that </application> at the end of this file, before the </manifest> . Shouldn't that get rid of the red x ?
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.