I'm new to android programming and eclipse, I apologize if this question is trivial. I'm following google's tutorial on getting google gps api to be compatible with my application. After following the steps, I got the following code with a warning in front of the first instance of application and a warning on the first instance of meta-data.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.myfirstapp"
android:versionCode="1"
android:versionName="1.0" >
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE "/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE "/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION "/>
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<application
<meta-data
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyC2WJ8Z3w1qoWKiBmCZVlvQLN4Pr8CTGLg">
</meta-data>
</application>
</manifest>
The warning on application states
"Multiple annotations found at this line: - Should explicitly set android:icon, there is no default - Should explicitly set android:allowBackup to true or false (it's true by default, and that can have some security implications for the application's data)"
And the error states
"Element type "application" must be followed by either attribute specifications, ">" or "/
"."
Can anyone help, please?
0 comments:
Post a Comment