I get this error while debugging. I put a breakpoint somewhere in the code. The project is built and run on my device, but in debugging I get this code, which is looking for android.jar My target version of android is 2.2. I chose /appcompat_v7/bin/appcompat_v7.jar instead of android.jar, assuming this version of Android is based on appcompat_v7.jar. I don't know.... I was just assuming. Nevertheless, it's not working. I checked some of Similar Questions and I couldn't find the exactly my answer, this was the most similar problem, yet my problem wasn't solved: Eclipse java debugging: source not found This is a screenshot of the error: https://i.stack.imgur.com/6m45J.png
Thhanks. :)
package com.thenewboston.travis;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RadioGroup;
import android.widget.RadioGroup.OnCheckedChangeListener;
import android.widget.TextView;
public class OpenedClass extends Activity implements OnClickListener,
OnCheckedChangeListener {
TextView question, test;
Button returnData;
RadioGroup selectionList;
String gotBread;
String setData;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.send);
initialize();
// Bundle gotBasket = getIntent().getExtras();
// gotBread = gotBasket.getString("key");
// question.setText(gotBread);
}
private void initialize() {
// TODO Auto-generated method stub
question = (TextView) findViewById(R.id.tvQuestion);
test = (TextView) findViewById(R.id.tvText);
returnData = (Button) findViewById(R.id.bReturn);
returnData.setOnClickListener(this);
selectionList = (RadioGroup) findViewById(R.id.rgAnswers);
selectionList.setOnCheckedChangeListener(this);
}
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent person = new Intent();
Bundle backpack = new Bundle();
backpack.putString("answer", setData);
person.putExtras(backpack);
setResult(RESULT_OK, person);
finish();
}
@Override
public void onCheckedChanged(RadioGroup group, int checkedId) {
// TODO Auto-generated method stub
switch (checkedId) {
case R.id.rCrazy:
setData = "Probably right!";
break;
case R.id.rSexy:
setData = "Definitely right!";
break;
case R.id.rBoth:
setData = "Spot On!";
break;
default:
break;
}
test.setText(setData);
}
}