无法使用流星构建连接设备

Cannot connect with device using meteor build

当 运行 meteor run android-device:

时出现以下错误

Errors executing Cordova commands:         

   While running Cordova app for platform Android with options --device:
   Error: Command failed:                     
   /home/user/git_repo/educore/_lms/.meteor/local/cordova-build/platforms/android/cordova/run
   --device
   Note: Some input files use or override a deprecated API.
   Note: Recompile with -Xlint:deprecation for details.
   Note: Some input files use or override a deprecated API.
   Note: Recompile with -Xlint:deprecation for details.
   ERROR: In  FontFamilyFont, unable to find attribute
   android:font
   ERROR: In  FontFamilyFont, unable to find attribute
   android:fontStyle
   ERROR: In  FontFamilyFont, unable to find attribute
   android:fontVariationSettings
   ERROR: In  FontFamilyFont, unable to find attribute
   android:fontWeight
   ERROR: In  FontFamilyFont, unable to find attribute
   android:ttcIndex


   FAILURE: Build failed with an exception.

   * What went wrong:
   Execution failed for task ':processDebugResources'.
   > com.android.ide.common.process.ProcessException: Failed to execute aapt

可能是什么原因造成的?如何修复?

添加这些插件后: cordova-android-support-gradle-release@1.4.3 并添加代码和 科尔多瓦-android@6 然后添加 npm 包 npm 安装 xml2js

和运行项目 然后删除 cordova-android@6 更改版本 cordova-android-support-gradle-release@1.2.0 从本地删除 coordova build 文件夹 然后 运行 项目问题已解决