title: java.lang.UnsatisfiedLinkError: Couldn't load aacdecoder from loader
body: <p>I'm creating a "Hello World" AAC stream player.</p>
  
  <p>My steps: </p>
  
  <ol>
  <li>In ADT Eclipse v22.6.2, I created a new Android Application, default settings for everything. </li>
  <li>Downloaded <code>aacdecoder-android-libs-0.8.zip</code> from <a href="http://code.google.com/p/aacdecoder-android/" rel="nofollow noreferrer">here</a></li>
  <li>Extracted it all to my project's <code>libs</code> folder.</li>
  </ol>
  
  <p>Added the following import to the Activity:</p>
  
  <pre><code>import com.spoledge.aacdecoder.AACPlayer;
  </code></pre>
  
  <p>Added the following to the end of the <code>onCreate(...)</code> method:</p>
  
  <pre><code>AACPlayer aacPlayer = new AACPlayer();
  aacPlayer.playAsync( "http://prem4.di.fm:80/trance?gzufXm01F8D2Y6hj2" );        
  </code></pre>
  
  <p>And ran it. I got the error:</p>
  
  <blockquote>
    <p>Could not find class 'com.spoledge.aacdecoder.AACPlayer', referenced from method com.example.cardi.MainActivity.onCreate</p>
  </blockquote>
  
  <p>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:</p>
  
  <p><img src="https://i.stack.imgur.com/CgvUS.png" alt="enter image description here"></p>
  
  <p>I made a little bit of progress by changing it:</p>
  
  <ul>
  <li>Checked the aacdecoder entry</li>
  <li>Moved the aacdecoder entry to the top</li>
  </ul>
  
  <p>Resulting in this error:</p>
  
  <blockquote>
    <p>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</p>
  </blockquote>
  
  <p>I feel stupid whenever I come back to Android. Please help!</p>