Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Android manifest can't resolve symbol for application name

Thats the code for what I'm struggling with and It keeps giving me a can't resolve symbol for the application name.

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.omar.ribbit" >

<application
    android:name="RibbitApplication" //PROBLEM HERE
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

    <activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:screenOrientation="portrait" >
        <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_login"
        android:screenOrientation="portrait" >
    </activity>
    <activity
        android:name=".SignUpActivity"
        android:label="@string/title_activity_sign_up"
        android:parentActivityName=".LoginActivity"
        android:screenOrientation="portrait" >
    </activity>

</application>

</manifest>

If this is your Manifest, it suppose to have the manifest tags. Can you paste the full code?

2 Answers

You probably don't need that attribute, try just removing it.. http://developer.android.com/guide/topics/manifest/application-element.html ..scroll down to read about the purpose of the name attribute

Did you name your Application class something other than "RibbitApplication"? If you renamed your app, or created that class with any name besides "RibbitApplication" that will create the error you are seeing. Specifically, I'm referring to the class that extends the Application class created for Ribbit when you first add the Parse backend initialization command.