ChenLittlePing/LearningVideo

工程导入编译期报错

qiaopeichen opened this issue · 1 comments

看提交记录是这里 -> feat: 新增FFmpeg 编码生成MP4文件

G:\jijia\alicode\LearningVideo\app\src\main\cpp\native-lib.cpp:137:9: error: cannot delete expression of type 'jint' (aka 'int')

    delete synthesizer;

    ^      ~~~~~~~~~~~

1 warning and 1 error generated.

这里编译不过,请问是我工程设置的问题吗,ndk版本17,19,20都试过了,求大佬们帮帮忙,AS版本用的3.4.1

破案了,
Synthesizer *s = (Synthesizer *)synthesizer;
delete synthesizer;
这里把synthesizer 改成s:
delete s;

就可以了。