簡體   English   中英

流星1.3.3。 android設備生成錯誤

[英]Meteor 1.3.3. Build error with android-device

這是我關於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

我是否錯過了某些對於你們來說可能顯而易見的事情?

謝謝!

好的,我只是在這個站點上找到了一些主題,這對我的構建問題有所幫助...這是鏈接: Cordova:將android升級到5.1.1 Nexus 5后無法安裝apk …。 這與以下事實有關:我的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 [...]

遇到我遇到的那種錯誤時,您要做的就是從設備中刪除該應用程序,然后再重新構建它。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM