I'm creating a "Hello World" AAC stream player.
My steps:
- In ADT Eclipse v22.6.2, I created a new Android Application, default settings for everything.
- Downloaded
aacdecoder-android-libs-0.8.zip
from here - Extracted it all to my project's
libs
folder.
Added the following import to the Activity:
import com.spoledge.aacdecoder.AACPlayer;
Added the following to the end of the onCreate(...)
method:
AACPlayer aacPlayer = new AACPlayer();
aacPlayer.playAsync( "http://prem4.di.fm:80/trance?gzufXm01F8D2Y6hj2" );
And ran it. I got the error:
Could not find class 'com.spoledge.aacdecoder.AACPlayer', referenced from method com.example.cardi.MainActivity.onCreate
After reading some SO questions, the only thing that jumped out at me was that the "Order and Export" tab in "Project" > "Properties" > "Java Build Path" needed playing with. Before:
I made a little bit of progress by changing it:
- Checked the aacdecoder entry
- Moved the aacdecoder entry to the top
Resulting in this error:
java.lang.UnsatisfiedLinkError: Couldn't load aacdecoder from loader dalvik.system.PathClassLoader[dexPath=/data/app/com.example.cardi-1.apk,libraryPath=/data/app-lib/com.example.cardi-1]: findLibrary returned null
I feel stupid whenever I come back to Android. Please help!