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 trialKameron Perkins
6,096 PointsEmulator won't launch "Fun Facts".
When I run Fun Facts an error message is produced.
Device Android442 [emulator-5554] is online, waiting for processes to start up.. Device is ready: Android442 [emulator-5554] Target device: Android442 [emulator-5554] Uploading file local path: C:\Users\K\AndroidStudioProjects\FunFacts\app\build\outputs\apk\app-debug.apk remote path: /data/local/tmp/BlueHills.funfacts Installing BlueHills.funfacts DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/BlueHills.funfacts" pkg: /data/local/tmp/BlueHills.funfacts Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]
2 Answers
Steve Hunter
57,712 PointsHi Kameron,
Have you tried closing Android Studio and reopening it? That can sometimes clear some issues like this.
I think Pauliina K had a similar problem recently and may be able to lend a hand.
Steve.
Pauliina K
1,973 PointsHey! I had the same problem and this is what I did to fix it:
Change the name BlueHills to bluehills. No capital letters are allowed, or it will bug. To do this you have to uncheck the Compact Empty Middle Packages, and then right click on the package, click change name and that should do it. Once you've done this, clean the project, and then it should be good to go! Good luck!
Jordan Ernst
5,121 Pointshi pauliina i added the files into the activity file and that worked. com.treehouse.interactivestory.model -> UI in the sub files. does that make sense?
Michael Gunther
1,672 PointsThank you Pauliina for your answer. Can you tell me where to find the Compact Empty Middle Packages option? Also, how do I "clean the project"? Thanks!
Never mind. I corrected the issue.
I ended up deleting the project and creating a new one. Looks like the Java variable naming convention is enforced on the Company Name when creating a new project, the first letter can't be capitalized. Starting with a lowercase letter in my Company Name resolved the issue.
I never found the Compact Empty Middle Package option, but the "clean the project" is located under the Build menu.
Steve Hunter
57,712 PointsI can't help with middle packages - but you can clean the project in the Build menu. Another useful "reset" is in the File menu, called Invalidate Caches and Restart - that's very good for unsticking stuff; like a power cycle, I guess!
Jordan Ernst
5,121 PointsJordan Ernst
5,121 Pointshey i tried these insights and neither work. i am still very confused about this, i am currently searching for an answer and finding nothing in relation to this exact issue.
Pauliina K
1,973 PointsPauliina K
1,973 PointsHave you tried fixing it by doing what I wrote in my answer? That worked for me.