【问题标题】:Meteor 1.3.3. Build error with android-device流星 1.3.3。使用 android-device 构建错误
【发布时间】:2016-10-24 01:03:10
【问题描述】:

这是我关于 stackoverflow 的第一个问题,所以我会尽量具体。

我目前正在使用 Meteor 及其 Cordova 集成开发一个混合应用程序。这是我第一个使用 Meteor 的应用程序,我使用 Mac Mini 进行开发(1.4 GHz Intel Core i5,4 Gb ram)。

我为 Android 设备构建的第一个版本在开始时运行良好,然后我继续在 iPhone 上构建开发版本(过去和现在都很好)。我最近尝试在 Android 设备上进行部署,但它不会再构建了。

我在网上搜索了我的问题,但找不到任何东西。

这是我收到的错误消息:

=> Started proxy.                             
=> Started MongoDB.                           
load: 1.69  cmd: mongod 643 waiting 0.13u 0.41s
WARNING: Attempting to install plugin cordova-plugin-camera@0.3.2, but it
         should have a minimum version of 2.1.1 to ensure compatibility with
         the current platform versions. Installing the minimum version for
         convenience, but you should adjust your dependencies.
WARNING: Attempting to install plugin cordova-plugin-device@0.3.0, but it
         should have a minimum version of 1.1.1 to ensure compatibility with
         the current platform versions. Installing the minimum version for
         convenience, but you should adjust your dependencies.
% Notice: nl.x-services.plugins.actionsheet has been automatically converted to cordova-plugin-actionsheet and fetched from npm. This is due to our old plugins registry shutting down.
% Notice: nl.x-services.plugins.actionsheet has been automatically converted to cordova-plugin-actionsheet and fetched from npm. This is due to our old plugins registry shutting down.

WARNING: You are testing your app on a remote device. For the mobile app to be
         able to connect to the local server, make sure your device is on the
         same network, and that the network configuration allows clients to
         talk to each other (no client isolation).
I20160622-09:22:24.228(2)? ** You've set up some data subscriptions with Meteor.publish(), but
I20160622-09:22:25.036(2)? ** you still have autopublish turned on. Because autopublish is still
I20160622-09:22:25.037(2)? ** on, your Meteor.publish() calls won't have much effect. All data
I20160622-09:22:25.038(2)? ** will still be sent to all clients.
I20160622-09:22:25.038(2)? **                 
I20160622-09:22:25.038(2)? ** Turn off autopublish by removing the autopublish package:
I20160622-09:22:25.039(2)? **                 
I20160622-09:22:25.039(2)? **   $ meteor remove autopublish
I20160622-09:22:25.040(2)? **                 
I20160622-09:22:25.040(2)? ** .. and make sure you have Meteor.publish() and Meteor.subscribe() calls
I20160622-09:22:25.040(2)? ** for each collection that you want clients to see.
I20160622-09:22:25.041(2)?                    
=> Started your app.                          

=> App running at: http://localhost:3000/     
=> Errors executing Cordova commands:         

   While running Cordova app for platform Android with options --device:
   Error: Command failed:                     
   /Users/naim/Code/apps/live/.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.
   Note: Some input files use unchecked or unsafe operations.
   Note: Recompile with -Xlint:unchecked for details.
   { [CordovaError: Failed to install apk to device: pkg:
   /data/local/tmp/android-debug.apk
   Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]]
   name: 'CordovaError',
   message: 'Failed to install apk to device: pkg:
   /data/local/tmp/android-debug.apk\r\nFailure
   [INSTALL_FAILED_UPDATE_INCOMPATIBLE]',
   code: 0,
   context: undefined } 'Failed to install apk to device: pkg:
   /data/local/tmp/android-debug.apk\r\nFailure
   [INSTALL_FAILED_UPDATE_INCOMPATIBLE]\n    at
   /Users/naim/Code/apps/live/.meteor/local/cordova-build/platforms/android/cordova/lib/Adb.js:67:29\n
   at _fulfilled
   (/Users/naim/Code/apps/live/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:834:54)\n
   at self.promiseDispatch.done
   (/Users/naim/Code/apps/live/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:863:30)\n
   at Promise.promise.promiseDispatch
   (/Users/naim/Code/apps/live/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:796:13)\n
   at
   /Users/naim/Code/apps/live/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:604:44\n
   at runSingle
   (/Users/naim/Code/apps/live/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:137:13)\n
   at flush
   (/Users/naim/Code/apps/live/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:125:13)\n
   at process._tickCallback (node.js:458:13)'
   at ChildProcess.exitCallback (/tools/utils/processes.js:151:23)
   at ChildProcess.emit (events.js:98:17)
   at Process.ChildProcess._handle.onexit (child_process.js:820:12)

/Users/naim/.meteor/packages/coffeescript/.1.1.0.1l18108++os+web.browser+web.cordova/plugin.compileCoffeescript.os/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:165
      throw error;
            ^
ExitWithCode:1

我是否遗漏了一些对你们中的一些人来说可能显而易见的事情?

谢谢!

【问题讨论】:

  • 好的,我刚刚在这个网站上找到了一些主题,帮助我解决了我的构建问题......这是链接:stackoverflow.com/questions/30502403/…。这与我的 Android 操作系统在工作版本和失败版本之间进行了更新有关。

标签: android cordova meteor build


【解决方案1】:

好的,我刚刚在这个站点上找到了一些主题,这些主题帮助我解决了我的构建问题...这是链接:Cordova : Unable to install apk after upgrading android to 5.1.1 Nexus 5...。这与我的 Android 操作系统在工作和失败构建之间更新的事实有关。这就是让我重回正轨的原因:

{ [CordovaError: Failed to install apk to device: pkg:
   /data/local/tmp/android-debug.apk
   Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]]
   name: 'CordovaError',
   message: 'Failed to install apk to device: pkg:
   /data/local/tmp/android-debug.apk\r\nFailure [...]

当您遇到我遇到的那种错误时,您必须做的是在重新构建之前从您的设备中删除该应用程序。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-12-23
    • 2014-12-01
    • 1970-01-01
    • 2015-12-24
    • 1970-01-01
    • 2017-07-29
    • 1970-01-01
    • 2017-03-05
    相关资源
    最近更新 更多