无法使用meteor build连接设备

时间:2018-05-31 05:18:06

标签: android meteor

运行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

可能导致什么?如何解决?

1 个答案:

答案 0 :(得分:0)

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

并运行该项目 然后删除然后cordova-android @ 6 更改版本cordova-android-support-gradle-release@1.2.0 从本地删除coordova构建文件夹 然后运行项目问题已修复