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 Build a Simple Android App (retired 2014) Learning the Language Simple Refactoring

austin morelli-saurdiff
austin morelli-saurdiff
835 Points

Return error on my code

i keep getting an error saying that the " void methods cannot return a value" concerning the return answer variable i put into my CrystalBall activity on the last session i was wondering if you had any idea of how to work this out. please help totally stuck and cant get the app to run unless this is fixed!!!!!

2 Answers

You may want to write the code with "void" down here otherwise I can only guess.

austin morelli-saurdiff
austin morelli-saurdiff
835 Points

i actually just found the problem i had a repeat in some code i did not delete when it was moved got that to move and it works great thanks for the help though now im trying to get the extra credit of the background color change on touch this will take some work it looks like.