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!

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


App Failure on android device.

I am trying to run an app on my Galaxy s5 rather than an emulator, Android Studio has excepted my device, however, when i select 'Run' i get this error:


can anyone tell me how to get this to work?

Harry James
Harry James
14,780 Points

Hey Gage!

Your Android Manifest file is malformed in some way. Please provide it here and me or another Treehouse user will take a look at it for you.

Speak to you soon! :)

where might i find this manifest?:o

Harry James
Harry James
14,780 Points

Hey again!

Where the AndroidManifest.xml file is located depends on the IDE you are using and what version it is.

If you are using Android Studio, it should be found in your app >> src >> main directory.

If you're still unable to find it, let me know what your IDE is (Android Studio / Eclipse) and its version and I'll take a look for you :)

Thank you I will do this as soon as I have access to my computer:)

Here is my android manifest:

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

    android:theme="@style/AppTheme" >
        android:label="@string/app_name" >
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />


1 Answer

Harry James
Harry James
14,780 Points

Thanks Gage!

Can you please try updating your package name to all lowercase:

(-) DELETE THIS LINE: package="Gage_Tillery.funfacts" > | Replace with this one \/
package=gage_tillery.funfacts" >

Note that you may also have to rename your packages in the Project as well. To do this, right click on your package and go to Refactor >> Rename and change it to the lowercase version. Then, try rebuilding your project (Simply run your app and it will rebuild). If there are any errors, you will have to manually correct them (Sometimes the refactor process isn't perfect).

After this, you should no longer get this error but, if you do, please let me know and I'll see what else can be done.

Hope it helps :)