• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Error:(14) Tag <activity> attribute name has invalid character ' '.

mdivk

Lurker
I just started AS learning, what I am stuck on a practice is in the manifest with the error in the subject and the file is as below. Can anyone take a look for me? Thank you very much. I tried to modify the manifest itself but no success as any changes will be reverted back to original:

Error screenshot: http://imgur.com/FBhoKEJ
FBhoKEJ

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.map524.rxie.explicitintents"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="23" />

<application
android:icon="@drawable/icon"
android:label="@String/app_name" >
<activity
android:name=" com.example.intents.InvokingActivity"
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.example.intents.InvokedActivity"
android:label="@String/app_name" >
</activity>
<activity
android:name="com.map524.rxie.explicitintents.InvokingActivity"
android:label="@String/title_activity_invoking" >
</activity>
</application>

</manifest>
 
hi mdivk,
i am not sure but i think the problem is in this line
android:name=" com.example.intents.InvokedActivity" you have space at the starting of the name try removing space before com.example.intents.InvokedActivity
 
Hi

There was a space in android:name=" com.example.intents.InvokedActivity". Try removing the space, and @String is not correct. It should start with a small case.

Try doing these both, if problem persists let me know.
 
Last edited by a moderator:
Back
Top Bottom