2

I get the error:

This file can not be opened as a file descriptor; it is probably compressed

After some googling it appears that I need to add an extension to my file, such as .mp3, the only problem is, my file is already an mp3.

Any ideas how I can make this work?

panthro
  • 22,779
  • 66
  • 183
  • 324
  • where do u put your file? u should put your mp3 file in `xml/raw` folder. – PH7 Nov 01 '11 at 04:07
  • This is a duplicate of http://stackoverflow.com/questions/6186866/java-io-filenotfoundexception-this-file-can-not-be-opened-as-a-file-descriptor – onitake Mar 12 '12 at 20:12

1 Answers1

4

add following to build.gradle file

   aaptOptions {
       noCompress "mp3"
   }
dkb
  • 4,389
  • 4
  • 36
  • 54
trueman007
  • 41
  • 2