I am new to Android programming and eclipse, I apologize if this question is trivial. I am following Google's tutorial to get a Google GPS API to be compatible with my application. . After following the steps, I got the following code with a warning on the first example of the first instance of the application and the first example of meta data
& Lt; Use-sdk android: minSdkVersion = "8" Android: targetSdkVersion = "21" /> & Lt; Usage-permission Android: name = "android.permission.INTERNET" /> & Lt; Usage-permission Android: name = "android.permission.ACCESS_NETWORK_STATE" /> & Lt; Usage-permission Android: name = "android.permission.WRITE_EXTERNAL_STORAGE" /> & Lt; Usage-permission Android: name = "android.permission.ACCESS_COARSE_LOCATION" /> & Lt; Usage-permission Android: name = "android.permission.ACCESS_FINE_LOCATION" /> & Lt; Use-enabled Android: glEVersion = "0x00020000" Android: required = "true" /> & Lt; Use-enabled Android: glEVersion = "0x00020000" Android: required = "true" /> & Lt; Application & lt; Meta-Data Android: allowBackup = "true" android: icon = "@ drawable / ic_launcher" android: label = "@ string / app_name" android: theme = "@ style / AppTheme" android: name = "Comkgooglekandroid .gms.version "android: value =" @ integer / GOOGLE_PLAY_SERVICES_VERSION "android: name =" com.google.android.maps.v2.API_KEY "android: value =" AIzaSyC2WJ8Z3w1qoWKiBmCZVlvQLN4Pr8CTGLg "& gt; & Lt; / Meta Data & gt; & Lt; / Application & gt; & Lt; / Reveal & gt;
Warning on application states
"Multiple comments found on this line: - :, icon is a default - Clearly set Android: Clearly
and error states
P> "element type" application "must be followed by either Can anybody help, please?
You are mixing application tags with Metadata tags. Android: label = "@ string / app_name" Android: Theme = "@ Style:
/ AppTheme" & gt; & Lt; Meta-Data Android: name = "com.google.android.gms.version" android: value = "@ integer / google_play_services_version" /> & Lt; Meta-data android: name = "com.google.android.maps.v2.API_KEY" android: value = "AIzaSyC2WJ8Z3w1qoWKiBmCZVlvQLN4Pr8CTGLg" / & gt; & Lt; / Application & gt;
Comments
Post a Comment