Question: I want to make a button in an activity disabled if it is intented from a certain button and otherwise enabled if and it is intented from some other class.What I am saying will be clear after reading the code.

This is the function to intent the class containing the button.

```
showperson.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                falses=true;
                ob.truth=false;
                Toast.makeText(home_page.this, "doneit"+ob.truth, Toast.LENGTH_SHORT).show();
//                Button clik=fb.getButton();
//                clik.setVisibility(View.GONE);
                 Intent to=new Intent(home_page.this,Form.class);
                to.putExtra("buttonclik",false);
                startActivity(to);

            }
        });

```

Answer: 
I had a similar issue and solved it by closing the folder, then on the Recent workspaces list click More at the bottom, and from the list click the 'x' (remove) button to remove the workspace. Then, after loading the project's folder, it build normally. So probably there is some cache and that is probably one way to clear it.
It's all about the path of files, make sure it is **case-sensitive**