I was working on Android Studio for adding a short toast message.(I was making an Android Wear Application)
I couldn\'t know why this code has error on \'symbol R\'
It happens if your class is missing the link of R.Class
which you may have to import.
So, Before starting the class you can simply start by
import Your_Package_name.R;
E.g.
import com.example.myproject.R;
You can manually write this when Clean/Rebuild
project is not the solution.
Use-case:
import javax.crypto.spec.SecretKeySpec;
import javax.net.ssl.HttpsURLConnection;
import com.example.jsonwebservice.R;
This worked for me.