Welcome to the Treehouse Community
Looking to learn something new?
I also had an error that read, "INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]" when I tried to run on the emulator.
I read the answers to the other questions on the same topic and realized that I had used a capital letter in my company name. I ended deleting the entire thing and starting over, which worked. Before I did that, I attempted to change the package name in the AndroidManifest.xml file, but that only created new errors. How could I have avoided deleting the project and starting from scratch? Also, when I make a change, do I need to compile the code or does running the app automatically do that?
When you say...you changed it in the manifest file...do you mean refactor or just went and edited it?
Boris Vukobrat4,248 Points
Your original package name is in .java files, at the first line. I would use, at this point, the same package name in manifest. It is not quite clear what else have you done there, and what could be the problem, but a package name can contain uppercase letters, numbers and underscores. The only restriction is first character in each name part should be a letter.
Good practice is to 'clean' or 'rebuild' code (Build > Clean ...), after some more altering, and then 'save', before run on a device. However, running the app automatically builds it.
Java names always change using Refactor option (caret on the name > shift+F6). Refactoring restructures your entire project, qualified by your change even tiny one, in order to preserve external projects' execution. In other words - you change code but don't change output (behavior). It also can affect values in code (like Strings), same names used in comments, documentation etc...