【问题标题】:How to prevent Meteor app with crosswalk package crashing during compilation for Android?如何防止流星应用程序与人行横道包在Android编译期间崩溃?
【发布时间】:2016-02-08 19:12:00
【问题描述】:

所以我正在尝试将人行横道添加到我的 Meteor 项目中,但我收到了这个编译错误。我知道是人行横道造成的,因为如果我移除人行横道,它就会消失。

While running Cordova app for platform Android with options --device:
   Error: Command failed:                     
   /Users/EXAMPLE/Documents/example/.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 unchecked or unsafe operations.
   Note: Recompile with -Xlint:unchecked for details.


   /Users/EXAMPLE/Documents/example/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:126
   throw e;
   ^
   ERROR: Failed to launch application on device: ERROR: Failed to install apk
   to device:     pkg: /data/local/tmp/android-armv7-debug.apk
   Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
   at ChildProcess.exitCallback (/tools/utils/processes.js:137:23)
   at ChildProcess.emit (events.js:98:17)
   at Process.ChildProcess._handle.onexit (child_process.js:820:12)

ExitWithCode:1

有什么建议吗?谢谢!

【问题讨论】:

    标签: android cordova meteor crosswalk-runtime crosswalk


    【解决方案1】:

    我想通了。您必须先从您的设备上完全卸载该应用程序。设置->应用程序->应用程序管理器->您的应用程序->清除数据。然后卸载。

    【讨论】:

      【解决方案2】:

      在某些情况下你需要运行

      adb uninstall com.package.name
      

      出于某种原因从应用程序管理器中卸载并不总是会删除所有文件。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-12-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多