|
发表于 2016-6-7 10:22:21
|
显示全部楼层
打开tomcat调试打包后, 应该可以看到以下错误信息- D:\wex5\WeX5_5098\model\Native\综合演示\build\src\platforms\android\src\org\apache\cordova\media\AudioPlayer.java:83: 错误: 找不到符号
- private ExtAudioRecorder recorder = null; // Audio recording object
- ^
- 符号: 类 ExtAudioRecorder
- 位置: 类 AudioPlayer
- D:\wex5\WeX5_5098\model\Native\综合演示\build\src\platforms\android\src\org\apache\cordova\media\AudioPlayer.java:101: 错误: 找不到符号
- this.recorder = ExtAudioRecorder.getInstanse(false);
- ^
- 符号: 变量 ExtAudioRecorder
- 位置: 类 AudioPlayer
- :compileDebugJavaWithJavac FAILED
-
- BUILD FAILED
-
- Total time: 1 mins 28.863 secs
- 注: 某些输入文件使用或覆盖了已过时的 API。
- 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
- 注: 某些输入文件使用了未经检查或不安全的操作。
- 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
- 2 个错误
-
- FAILURE: Build failed with an exception.
-
- * What went wrong:
- Execution failed for task ':compileDebugJavaWithJavac'.
- > Compilation failed; see the compiler error output for details.
复制代码
解决方案:
使用附件中的文件, 替换/Native/plugins/cordova-plugin-media/plugin.xml文件
|
|