wex5开发过程中使用发送短信cordova插件在使用模式四打包过程中,出现这样的错误
T:\we\model\Native\sms\build\src\platforms\android\src\com\cordova\plugins\sms\Sms.java:56: 错误: 找不到符号 return cordova.hasPermission(android.Manifest.permission.SEND_SMS); ^ 符号: 方法 hasPermission(String) 位置: 类型为CordovaInterface的变量 cordova T:\we\model\Native\sms\build\src\platforms\android\src\com\cordova\plugins\sms\Sms.java:60: 错误: 找不到符号 cordova.requestPermission(this, SEND_SMS_REQ_CODE, android.Manifest.permission.SEND_SMS); ^ 符号: 方法 requestPermission(Sms,int,String) 位置: 类型为CordovaInterface的变量 cordova 注: 某些输入文件使用或覆盖了已过时的 API。 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 注: 某些输入文件使用了未经检查或不安全的操作。 :compileArmv7DebugJavaWithJavac FAILED注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 2 个错误BUILD FAILED FAILURE: Build failed with an exception. Total time: 1 mins 45.305 secs * What went wrong: Execution failed for task ':compileArmv7DebugJavaWithJavac'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. ERROR building one of the platforms: Error: cmd: Command failed with exit code 1 You may not have the required environment or OS to build this project T:\we\model\Native\sms\build\src\platforms\android\cordova\node_modules\q\q.js:126 throw e; ^ Error code 1 for command: cmd with args: /s /c "T:\we\model\Native\sms\build\src\platforms\android\gradlew cdvBuildDebug -b T:\we\model\Native\sms\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline" Error: cmd: Command failed with exit code 1****ERROR****: 子任务 "exec" 执行失败。****ERROR****: 任务 "buildAndroid" 执行失败。****ERROR****: 执行出错:****ERROR****: 错误信息: exec returned: 1****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
这个在cordova插件官网上显示错误信息一样,要求是The problem is that you need to make sure that you set the target to android-19 or later in your ./platforms/android/project.properties file like this:# Project target.target=android-19 地址如下https://www.npmjs.com/package/cordova-sms-all-devices-plugin
求群主这样的问题怎么解决