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 trialAkshay Shivpuri
2,917 PointsError while creating OnResume() and OnPause()
I'm getting the following errors
//Starts here-->
Multiple markers at this line
- Syntax error, insert "EnumBody" to complete BlockStatement
- Syntax error, insert "enum Identifier" to complete
EnumHeaderName
- Syntax error on token "void", @ expected
What to fix?
I hope christopherbasinger can help here. :D
Marcus Vieira
7,877 PointsHi Akshay!
Would you mind posting the entire code here ?
Thanks :)
1 Answer
Akshay Shivpuri
2,917 PointsWell I figured out the answer. By mistake, I'd put the above two functions within "OnCreate()" method.
Akshay Shivpuri
2,917 PointsAkshay Shivpuri
2,917 PointsHere's the code
...
...
Error: The error is coming on both the methods.
... Multiple markers at this line - Syntax error, insert "EnumBody" to complete BlockStatement - Syntax error, insert "enum Identifier" to complete EnumHeaderName - Syntax error on token "void", @ expected ...