Godrules500
Godrules500

Reputation: 469

import mp3 into android eclipse is breaking

My issue is that I am importing a mp3 into my android project from eclipse which is causing it to break. However, if I delete that file (error goes away) and I use a mp3 file that I've used before in a previous project, it doesn't have a compile error. SO, is this something to do with the mp3 file? Maybe it was a .WMA file and it was converted to a mp3 file. So since it isn't a true mp3, it is causing eclipse to break?

Does anybody know a fix, import, plugin or anything else that could allow for multiple music files to be accepted into my android application?

One more thing, I am importing it into the Res/raw path.

Upvotes: 0

Views: 1247

Answers (2)

Shiv
Shiv

Reputation: 1267

Make sure file name is clean and

  • Doesn't start with number
  • Doesn't contain spaces
  • Doesn't include special characters except '-'

Capital letters are OK.

Upvotes: 0

Godrules500
Godrules500

Reputation: 469

What fixed my issue was I took all of the capital letters and spaces out of my music file name and it fixed the issue.

Thanks everyone for your help!

Upvotes: 1

Related Questions