like the title says I\'m getting an error when trying to set a text view text from java in my android project, I can\'t see why.
package com.codeherenow.
public TextView YT = (TextView) findViewById(R.id.Years);
statement must write onCreate() method.