Here it is.. I'm getting Parser exception for C:\Users\your name here\sandorfalot\WobblyPsyche\AndroidManifest.xml: The markup in the document following the root element must be well-formed.
This is a syntax error, right?
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.WobblyPsyche"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/WobblyPsyche"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
How about this?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.WobblyPsyche"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/WobblyPsyche"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
try adding this to the beginning
<?xml version="1.0" encoding="utf-8"?>
and changing your activity name line to this
android:name="com.example.WobblyPsyche.MainActivity"
Related
I'm using the newest sdk bundle with eclipse, and in a real simple app there is no Icon after launch and it's really bothering me why?
Can someone explain me what i'm doing wrong?
Manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.helloworld"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
I have looked through other questions regarding the same problem but was unable to find a helpful solution. Here is my xml . What is wrong with it?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.projextxy"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="21" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".LogInActivity"
android:label="#string/title_activity_log_in"
android:parentActivityName="com.example.projextxy" >
</activity>
<activity
android:name=".SignUpActivity"
android:parentActivityName="com.example.projextxy"
android:label="#string/title_activity_sign_up" >
</activity>
</application>
You missed the last manifest tag </manifest> after your application tag
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.projextxy"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="21" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".LogInActivity"
android:label="#string/title_activity_log_in"
android:parentActivityName="com.example.projextxy" >
</activity>
<activity
android:name=".SignUpActivity"
android:parentActivityName="com.example.projextxy"
android:label="#string/title_activity_sign_up" >
</activity>
</application>
</manifest>
I am learning Android Development and got this error in AndroidMainfest.xml
The markup in the document following the root element must be well-formed. styles.xml
The codes below is generated automatically.
Original
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.incomeexp"
android:versionCode="1"`enter code here`
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.example.incomeexp.MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Added
<manifest xmlns:android="http://schemas.android.com/apk/res/android" >
<application>
<activity android:name=".DisplayMessageActivity"
android:label="#string/title_activity_display_message"
android:parentActivityName="com.example.incomeexp.MainActivity">
<meta-data android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.incomeexp.MainActivity" />
</activity>
</application>
</manifest>
Remove the one added. Have the below . Check your package name in manifest and activities. Clean and build
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.incomeexp"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.example.incomeexp.MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".DisplayMessageActivity"
android:label="#string/title_activity_display_message"
android:parentActivityName="com.example.incomeexp.MainActivity">
<meta-data android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.incomeexp.MainActivity" />
</activity>
</application>
</manifest>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bpi.mygears"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.bpi.gears.MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.bpi.gears.home"
android:label="#string/title_activity_home" >
</activity>
<activity
android:name="com.bpi.gears.profile"
android:label="#string/title_activity_profile" >
</activity>
</application>
</manifest>
this is my manifest feel free to check it and tell me where im wrong i would help a lot if you need to see all i can show you all my project has no error so im having a difficult time finding where im wrong...
I think you have some problems with your naming. Your package name is "com.bpi.mygears" and you are looking for activities that are com.bpi.gears. Your activities can just be named relative to the package. It should probably be more like this:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bpi.mygears"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".home"
android:label="#string/title_activity_home" >
</activity>
<activity
android:name=".profile"
android:label="#string/title_activity_profile" >
</activity>
</application>
</manifest>
Assuming your stuff is in com.bpi.mygears. Otherwise, make that first line
package="com.bpi.gears" if your stuff is in gears.
I made a new project using Eclipse (API level 14, BlankActivity, Tabs+Swipe.)
The entire src folder contains #Override errors which I can fix.
However, the AndroidManifest.xml file shows an error:
The markup in the document following the root element must be well-formed.
How do I fix this?
Here is the unchanged, default xml:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sohamchowdhury.ferric"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="15" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
</application>
</manifest><manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sohamchowdhury.ferric"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="15" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".AspectListActivity"
android:label="#string/title_aspect_list" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".AspectDetailActivity"
android:label="#string/title_aspect_detail" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".AspectListActivity" />
</activity>
</application>
</manifest><manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sohamchowdhury.ferric"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
You have more than one manifest tags inside your xml file.
Remove the following part from your code.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sohamchowdhury.ferric"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="15" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
</application>
</manifest>
And make sure you have xml declaration present on very first line of your manifest.xml file.
<?xml version="1.0" encoding="utf-8"?>