今天终于把ffmpeg加上了各个第三方库,有x264、xvid、ogg、speex等等的,在编译的时候遇到很多问题,因为还要继续其他工作所以等以后再抽空整理一下,这里先记录一下另外的错误。
在编译完所有第三方库之后满怀兴奋的心情,但是在准备调试时遇到下面的异常:
Dx trouble writing output: already prepared
Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
异常提示让我毫无头绪,立刻上网搜索,得到解决方案:
Just remove all newer Android SDK build-tools (i.e. 19) until the Version 18.1.1 with the Android SDK Manager.
Restart Eclipse. And it will work.
就是卸载掉新的build-tools(不要用18.1.1以后的版本),删掉后重启eclipse,然后就可以继续调试了。