Reputation: 43
I'm getting an error in my AndroidManifest file, "error parsing xml: junk after document" the IDE isn't highlighting the error but its flagging the error at "android:versionName="1.0">" Any ideas what's wrong??
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ballincoliig.gun.powder.mills.walking.trail"
android:versionCode="1"
android:versionName="1.0" >
<application
android:icon="@drawable/ic_launcher-web" android:label="@ballincoliig.gun.powder.mills.walking.trai">
<activity
android:name="GPSActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<uses-library android:name="com.google.android.maps" />
</application>
<uses-sdk android:minSdkVersion="4" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
Upvotes: 0
Views: 310
Reputation: 48612
I guess it might be because of naming convention of image in res folder.
Naming convention is File name must contain only [a-z0-9_.]
<application android:icon="@drawable/ic_launcher-web" android:label="@ballincoliig.gun.powder.mills.walking.trai" > <!--Problem here-->...
Rename this image in res folder to ic_launcer_web and here also.
define one attribute in strings.xml
<string name="app>GPS</string>
and set like this in Android Manifest.xml
<application android:icon="@drawable/ic_launcher_web" android:label="@string/app">
Upvotes: 4