[FFmpeg万能音频播放器]android CMake项目准备阶段(一)
1.新建c++项目 2.配置NDK路径 这里建议配置NDK版本为:android-ndk-r15c 3.在SNKtool下安装CMake 4.新建Module 并且添加Module (这个module主要用来加载库与写jni) new ->Module FIle ->ProjectStructure 5.在新建的module中写Demo 也就是jni的java通信类 package com.example.myplayer; public class Demo { static { System.loadLibrary("native-lib"); System.loadLibrary("avutil"); System.loadLibrary("swresample"); System.loadLibrary("avcodec"); System.loadLibrary("avformat"); System.loadLibrary("swscale"); System.loadLibrary("postproc"); System.loadLibrary("avfilter"); System.loadLibrary("avdevice"); } public native String stringFromJNI(); public native String