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
Eric Oropeza Elwood
1,415 Pointscannot resolve methods in Story.java
I'm currently in the Story.java class and after putting in everything I have multiple errors. The errors are :
Error:(16, 18) error: cannot find symbol method setImageId(int)
Error:(17, 18) error: cannot find symbol method setText(String)
Error:(18, 18) error: cannot find symbol method setChoice1(Choice)
Error:(19, 34) error: cannot find symbol class Choice
I am running Android Studio 1.1 Beta 4
package com.example.solidstatedesigns.interactivestory.model;
import com.example.solidstatedesigns.interactivestory.R;
/**
* Created by ericoropezaelwood on 2/13/15.
*/
public class Story {
private Page[] mPages;
public Story() {
mPages = new Page[7];
mPages[0] = new Page();
mPages[0].setImageId(R.mipmap.page0);
mPages[0].setText("test");
mPages[0].setChoice1(new Choice());
mPages[0].setCHoice2(new CHoice());
}
}