0

Sorry I couldn't make the title more clear, so here is my problem : I'm using a source code from this project ( https://github.com/felixpalmer/android-visualizer ) and have a really weird problem. When I use the code without doing any modification, it works without any problem, I can run the program on my android device.

But when I add this code in my own program (and adapt everything), I have this error message : Class requires API level 9 (current min is 8): android.media.audiofx.Visualizer

Given the fact that I have modified my Manifest with this, I don't have a clue what's wrong:

    < uses-sdk
    android:minSdkVersion="9" 
    android:targetSdkVersion="15" />

I have read similar posts but nothing worked so far, and I'm really upset by the fact that the original program works perfectly, and trouble starts with my own version.

Thanks in advance if you have any idea !

See youPicture from my problem box

Phalanx
  • 1,217
  • 6
  • 25
  • 36
  • This is because you are using some function that requires API 9 and your project sdk is 8 change the sdk to 9 – Ali Imran Dec 05 '12 at 11:47
  • How can I do ? I have modified the "Project Build Target" to Android 2.3.3 (API 10) and mentioned in my manifest that 9 should be the minimum. – Phalanx Dec 05 '12 at 12:25

2 Answers2

0

I think that maybe you should Clean your project and then try back again. Sometimes Eclipse does such silly things even everything is ok.

Pavlos
  • 2,183
  • 2
  • 20
  • 27
  • It worked! Cleaning the project made the errors disappear and my app is working now! Thanks for the suggestion ! – Phalanx Dec 05 '12 at 12:34
0

You need to update your android SDK. In Android SDK Manager you will find Extras in the last. You need to update the Android Support Library to revision 11.

Thanks

Vikash Kumar
  • 621
  • 2
  • 6
  • 21