Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Build a Simple Android App (2014) Creating the Screen Layout Getting to Know Our Tools

Antone Bagnall
Antone Bagnall
6,744 Points

"INSTALL_PARSE_FAILED_MANIFEST_MALFORMED" error. Still appears after I clean and rebuild, any help?

The error is INSTALL_PARSE_FAILED_MANIFEST_MALFORMED, although there are no errors in the code. The emulator also does not show the hello world program although I assume that is a result of the error?

Any help would be greatly appreciated!

2 Answers

Can you post the contents of your Android Manifest file, please?

I Googled your problem and came across this which has some interesting solutions that are worth trying.

Steve.

Antone Bagnall
Antone Bagnall
6,744 Points
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="ABstudios.funfacts" >

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".FunFactsActivity"
            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>

As in the Stack Overflow post, there are a few things that you can try.

One theme that is recurring is using lower case letters for package names so if you change package="ABstudios.funfacts" to be package="abstudios.funfacts" that might help.

Steve.