离子cordova无法在模拟android中安装应用程序

时间:2018-09-28 14:02:01

标签: android cordova ionic-framework

我需要帮助来修复离子中的错误。我想在android中模拟我的应用。这是我的离子信息

的结果
Ionic:

   ionic (Ionic CLI)          : 4.1.2 (/usr/lib/node_modules/ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.7
   @angular-devkit/core       : 0.7.5
   @angular-devkit/schematics : 0.7.5
   @angular/cli               : 6.1.5
   @ionic/ng-toolkit          : 1.0.8
   @ionic/schematics-angular  : 1.0.6

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.0.0
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.1.4, (and 4 other plugins)

System:

   Android SDK Tools : 26.1.1 (/home/abner/android-sdk-linux)
   NodeJS            : v10.11.0 (/usr/bin/node)
   npm               : 5.6.0
   OS                : Linux 4.15

因此,在执行ionic cordova emulate android -lc时,我收到:

 [cordova]  Android Studio project detected
[cordova]  ANDROID_HOME=/home/abner/android-sdk-linux
[cordova]  JAVA_HOME=/usr/lib/jvm/java-8-oracle
[cordova]  studio
[cordova]  Subproject Path: CordovaLib
[cordova]  Subproject Path: app
[cordova]  publishNonDefault is deprecated and has no effect anymore. All variants are now published.
[cordova]  The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
[cordova]   at build_6sluibrwve5th57ipzalrhlh5.run(/home/abner/Documentos/work/app-cidadao-itaparica/platforms/android/app/build.gradle:143)
[cordova]  Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
[cordova]  :CordovaLib:preBuild UP-TO-DATE

... 
[cordova]  BUILD SUCCESSFUL in 2s
[cordova]  46 actionable tasks: 4 executed, 42 up-to-date
[cordova]  Built the following apk(s): 
[cordova]   /home/abner/Documentos/work/app-cidadao-itaparica/platforms/android/app/build/outputs/apk/debug/app-debug.apk
[cordova]  ANDROID_HOME=/home/abner/android-sdk-linux
[cordova]  JAVA_HOME=/usr/lib/jvm/java-8-oracle
[cordova]  No emulator specified, defaulting to Pixel_XL_API_26
[cordova]  Waiting for emulator to start...
[ng] Date: 2018-09-28T13:54:10.217Z
[ng] Hash: f3e0f41853901b386e01
[ng] Time: 13004ms
[ng] chunk {common} common.js, common.js.map (common) 8.67 kB  [rendered]
[ng] chunk {129} 129.js, 129.js.map () 14.9 kB  [rendered]
[ng] chunk {cordova} cordova.js, cordova.js.map (cordova) 73.2 kB  [rendered]
[ng] chunk {0} 0.js, 0.js.map () 46 kB  [rendered]
...
[ng] chunk {main} main.js, main.js.map (main) 15.5 kB [initial] [rendered]
[ng] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 227 kB [initial] [rendered]
[ng] chunk {runtime} runtime.js, runtime.js.map (runtime) 8.06 kB [entry] [rendered]
[ng] chunk {styles} styles.js, styles.js.map (styles) 36 kB [initial] [rendered]
[ng] chunk {vendor} vendor.js, vendor.js.map (vendor) 4.26 MB [initial] [rendered]
[ng] chunk {126} 126.js, 126.js.map () 1.03 kB  [rendered]
[ng] chunk {127} 127.js, 127.js.map () 3.49 kB  [rendered]
[ng] chunk {128} 128.js, 128.js.map () 7.29 kB  [rendered]
[ng] ℹ 「wdm」: Compiled successfully.

我的android AVD管理器打开正常,但Ionic无法安装该应用程序。我需要帮助。我如何正确执行离子科尔多瓦模拟程序?

1 个答案:

答案 0 :(得分:0)

我仍然无法解决此问题,但是我能够运行该应用程序来卸载android oreo并安装android 7.1.1,将Cordova平台7.0.0更改为6.4.0。生活仍在继续! :)