-1

When I try to bind, I get an error saying that cannot resolve method 'bind(name of my main activity)'.

@BindView(R.id.timeLabel) TextView mTimeLabel;
@BindView(R.id.temperatureLabel) TextView mTemperatureLabel;
@BindView(R.id.humidityValue) TextView mHumidityValue;
@BindView(R.id.precipValue) TextView mPrecipValue;
@BindView(R.id.summaryTextView) TextView mSummaryLabel;
@BindView(R.id.iconImageview) ImageView mIconImageView;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    // Import view variables
    ButterKnife.bind(this);
user2683183
  • 243
  • 2
  • 7
  • 23

1 Answers1

-1

Looks like there was something wrong with Android Studio. What I did was I went to File -- invalidate Caches and restart. When Android Studio restarted everything worked fine.

user2683183
  • 243
  • 2
  • 7
  • 23