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 trialbrunopaiva
14,408 PointsMain Activity isn't created
I have followed all the steps in the video "Setting Up the Project" in "Build a Self-Destructing Message" but after clicking on "Finish" all files are created except Main Activity. Why is that?
Also, when i select the template for main activity it shows one more field than what is shown on the video (Fragment Layout Name) and the template's options are named diferently, i selected the one that had a resembling ilustration (Action Bar Tabs (with ViewPager)).
4 Answers
Joey Barter
1,261 PointsBy any chance, is your res/layout/activity_main.xml missing too? It seems others are having this issue as well; http://stackoverflow.com/questions/22219392/eclipse-doesnt-create-main-activity-and-layout/22350689#22350689
My fix was to re-install eclipse...The issue came back again, so I reinstalled again.
brunopaiva
14,408 Pointsi did the "Update Eclipe plugin" like they said on that stackoverflow thread and it worked like a charm!
Meanwhile i was using Android Studio in order to progress a bit more on the tutorials but it had some diferences when compared to the videos, so it's great that i can return to Eclipse.
Thanks a lot Joey!
William Dahl
7,829 PointsI am having this issue today as well.
It seemed to start happening after I updated the developer tools as instructed in the "Setting up the project" course (for "Build a Self-Destructing Message").
I tried looking at the stack overflow solution, except that is what I did when the problem started. If I do it again it just says it is already up to date.
I am going to try reinstalling eclipse as per Joey's answer.
William Dahl
7,829 PointsI got eclipse to behave normally again. However it seems I basically had to revert to the bundle I downloaded days ago, and specifically undo the updates I did this morning while following the tutorial.
Any ideas as to what caused this behaviour? I believe I followed the steps just as Ben did in the video. Is it possible there is an issue with the latest Eclipse updates at the time I updated ?