@tjq1010417825 写道:
用eclipse 导入一个封装的语音文件,eclipse是没问题的,直接打包是也可以,到creator这边改了点代码然后编译就报错了,求大神指导 错误日志如下:
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\recorder\SpeexRecorder.java:3: 错误: 程序包org.slf4j不存在
[javac] import org.slf4j.Logger;
[javac] ^
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\recorder\SpeexRecorder.java:4: 错误: 程序包org.slf4j不存在
[javac] import org.slf4j.LoggerFactory;
[javac] ^
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\recorder\SpeexRecorder.java:14: 错误: 找不到符号
[javac] private Logger log = LoggerFactory.getLogger(SpeexRecorder.class);
[javac] ^
[javac] 符号: 类 Logger
[javac] 位置: 类 SpeexRecorder
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\speex\encode\Speex.java:4: 错误: 程序包org.slf4j不存在
[javac] import org.slf4j.Logger;
[javac] ^
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\speex\encode\Speex.java:5: 错误: 程序包org.slf4j不存在
[javac] import org.slf4j.LoggerFactory;
[javac] ^
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\speex\encode\Speex.java:17: 错误: 找不到符号
[javac] private Logger log = LoggerFactory.getLogger(Speex.class);
[javac] ^
[javac] 符号: 类 Logger
[javac] 位置: 类 Speex
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\speex\encode\SpeexEncoder.java:7: 错误: 程序包org.slf4j不存在
[javac] import org.slf4j.Logger;
[javac] ^
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\speex\encode\SpeexEncoder.java:8: 错误: 程序包org.slf4j不存在
[javac] import org.slf4j.LoggerFactory;
[javac] ^
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\speex\encode\SpeexEncoder.java:21: 错误: 找不到符号
[javac] private Logger log = LoggerFactory.getLogger(SpeexEncoder.class);
[javac] ^
[javac] 符号: 类 Logger
[javac] 位置: 类 SpeexEncoder
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\writer\speex\OggSpeexWriter.java:45: 错误: 程序包org.slf4j不存在
[javac] import org.slf4j.Logger;
[javac] ^
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\writer\speex\OggSpeexWriter.java:46: 错误: 程序包org.slf4j不存在
[javac] import org.slf4j.LoggerFactory;
[javac] ^
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\writer\speex\OggSpeexWriter.java:56: 错误: 找不到符号
[javac] private static Logger log = LoggerFactory.getLogger(OggSpeexWriter.class);
[javac] ^
[javac] 符号: 类 Logger
[javac] 位置: 类 OggSpeexWriter
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\writer\speex\SpeexWriteClient.java:5: 错误: 程序包org.slf4j不存在
[javac] import org.slf4j.Logger;
[javac] ^
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\writer\speex\SpeexWriteClient.java:6: 错误: 程序包org.slf4j不存在
[javac] import org.slf4j.LoggerFactory;
[javac] ^
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\writer\speex\SpeexWriteClient.java:12: 错误: 找不到符号
[javac] private static Logger log = LoggerFactory.getLogger(SpeexWriteClient.class);
[javac] ^
[javac] 符号: 类 Logger
[javac] 位置: 类 SpeexWriteClient
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\writer\speex\SpeexWriter.java:7: 错误: 程序包org.slf4j不存在
[javac] import org.slf4j.Logger;
[javac] ^
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\writer\speex\SpeexWriter.java:8: 错误: 程序包org.slf4j不存在
[javac] import org.slf4j.LoggerFactory;
[javac] ^
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\writer\speex\SpeexWriter.java:20: 错误: 找不到符号
[javac] private Logger log = LoggerFactory.getLogger(SpeexWriter.class);
[javac] ^
[javac] 符号: 类 Logger
[javac] 位置: 类 SpeexWriter
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\recorder\SpeexRecorder.java:14: 错误: 找不到符号
[javac] private Logger log = LoggerFactory.getLogger(SpeexRecorder.class);
[javac] ^
[javac] 符号: 变量 LoggerFactory
[javac] 位置: 类 SpeexRecorder
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\speex\encode\Speex.java:17: 错误: 找不到符号
[javac] private Logger log = LoggerFactory.getLogger(Speex.class);
[javac] ^
[javac] 符号: 变量 LoggerFactory
[javac] 位置: 类 Speex
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\speex\encode\SpeexEncoder.java:21: 错误: 找不到符号
[javac] private Logger log = LoggerFactory.getLogger(SpeexEncoder.class);
[javac] ^
[javac] 符号: 变量 LoggerFactory
[javac] 位置: 类 SpeexEncoder
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\writer\speex\OggSpeexWriter.java:56: 错误: 找不到符号
[javac] private static Logger log = LoggerFactory.getLogger(OggSpeexWriter.class);
[javac] ^
[javac] 符号: 变量 LoggerFactory
[javac] 位置: 类 OggSpeexWriter
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\writer\speex\SpeexWriteClient.java:12: 错误: 找不到符号
[javac] private static Logger log = LoggerFactory.getLogger(SpeexWriteClient.class);
[javac] ^
[javac] 符号: 变量 LoggerFactory
[javac] 位置: 类 SpeexWriteClient
[javac] F:\Developer2017\Creator\YQY_PaymentSDK\GaussRecorder\src\com\gauss\writer\speex\SpeexWriter.java:20: 错误: 找不到符号
[javac] private Logger log = LoggerFactory.getLogger(SpeexWriter.class);
[javac] ^
[javac] 符号: 变量 LoggerFactory
[javac] 位置: 类 SpeexWriter
[javac] 24 个错误
[javac] 100 个警告BUILD FAILED
G:\adt-bundle-windows-x86_64-20140702\sdk\tools\ant\build.xml:601: The following error occurred while executing this line:
G:\adt-bundle-windows-x86_64-20140702\sdk\tools\ant\build.xml:720: The following error occurred while executing this line:
G:\adt-bundle-windows-x86_64-20140702\sdk\tools\ant\build.xml:734: Compile failed; see the compiler error output for details.Total time: 10 seconds
执行命令出错,返回值:1。
帖子: 2
参与者: 1