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

Thale van der Sluijs
Thale van der Sluijs
1,756 Points

Android studio strugle (again)...

When I want to open my simulated phone then it open the phone but without the app... It sais: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Can someone help me? Thanks

Daniel Hartin
Daniel Hartin
18,106 Points

Hi

It looks like you have a problem with your android manifest.xml file any chance you could paste it in here and we can take a look?

Thanks Daniel

5 Answers

Hello,

Most of the time when I've seen people mention this error. Its because they have a capital letter somewhere in their package structure. To fix this, I'd recommend following the steps in the answer for this stackoverflow post. If this isn't the case, we'll need to see your AndroidManifest.xml file and build.gradle files.

Thale van der Sluijs
Thale van der Sluijs
1,756 Points

hey Daniel Hartin,

where do I find that file?

Daniel Hartin
Daniel Hartin
18,106 Points

Your manifest file can be found by going to your project structure in android studio, open up the folder named app then open up the blue folder named manifests and there should only be the one file i here named AndroidManifest.xml if you could paste the contents of that file in here we may be able to help you.

Thale van der Sluijs
Thale van der Sluijs
1,756 Points

hey Daniel,

I dont even have that file... I searched it for a hour but I still did'nt find the file. Do i have to reinstall Android studio again?

Daniel Hartin
Daniel Hartin
18,106 Points

No re-installing android studio won't do anything. You may be better creating a new project and copy/pasting the code from your existing project into a new one though. I'm only suggesting this as the manifest is quite precise and typing it out from scratch will not be easy.

If you find the Class files inside your regular browser window and copy them then in android studio go into your new project structure right click on the package and select paste it will refactor the code quickly saving you retyping the package name in the Java file.

Thale van der Sluijs
Thale van der Sluijs
1,756 Points

Hey Daniel,

Sorry that I answered late, but I do not have the Class file too.... Can you still help me or is this just wrong?

Daniel Hartin
Daniel Hartin
18,106 Points

Hi Thale

To be honest I'd be more than a little surprised if your project contains no Java class files or an android manifest. I suspect it is there but hidden in a way or you're simply not familiar with it's file path.

A recent project of mine has the file structure as per below

C:\Users\Daniel\Desktop\AndroidProjects\AndroidProjects\skylink\skylink\app\src\main\java\uk\co\trentbarton\skylink\Activities

skylink is the name of my app - first locate the name of your app on your hard drive it's usually in a folder named Android projects (you could have put this anywhere thought it does default to myDocuments if on windows)

The follow the file path similar to mine app\src\main\java\ everything after this point will be your subject to your own package information just keep clicking through the folders and you should eventually find your Java class files. You can import these into a new project to refresh everything without losing your main code you typed in.

Hope this helps

Daniel

Thale van der Sluijs
Thale van der Sluijs
1,756 Points

Hey Daniel,

I looked around for some time and I found this: AndroidManifest.xml.ftl is that the file that you said on the beginning? If it is the file, I can't open it because it is ftl and I dont have that on my computer.