I added a few mp3 files (eg, bells.mp3) to a 'raw' folder under 'res'. However, when I do this:
mp = MediaPlayer(this,R.raw.bells);
it complains that 'raw' cannot be resolved. Is there something more I need to do to make these resources available?
Please make sure that you are importing R from your project not the android one
Example:
import com.example.myProject.R;
not this one
import android.R;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With