离子的科尔多瓦在android设备上运行给出:找不到apk架构:手臂构建类型:调试 [英] Ionic Cordova run on android device gives: Could not find apk architecture: arm build-type: debug

查看:225
本文介绍了离子的科尔多瓦在android设备上运行给出:找不到apk架构:手臂构建类型:调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都会向我指出如何解决错误? 当我运行时:

Anyone would point me anything how to fix de error? When I run:

% cordova run android -l -c

一切似乎都可以,但最终它给了我这个错误:

Everything seems to be going OK but in the end it gives me this erro:

Built the following apk(s):

Error: Could not find apk architecture: arm build-type: debug

我知道这一定与Crosswalk有关,但是在我使用平台6.3.0之前,该项目运行正常.

I know that must be something related to Crosswalk, but this project was running Ok before when I was using platform 6.3.0.

这是我的离子信息:

% ionic info                                                                                                                                                                     
cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.2.0
    Cordova Platforms  : android 6.4.0 ios 4.5.5
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 2.0.0
    ios-sim           : 6.0.0
    Node              : v8.11.3
    npm               : 5.6.0
    OS                : macOS
    Xcode             : Xcode 10.0 Build version 10A255

Environment Variables:

    ANDROID_HOME : ~/Library/Android/sdk

Misc:

    backend : legacy

这是我的插件:

% cordova plugin list                                                                                                                                                        
com.googlemaps.ios 2.7.0 "Google Maps SDK for iOS"
com.telerik.plugins.nativepagetransitions 0.6.5 "Native Page Transitions"
cordova-plugin-add-swift-support 1.7.1 "AddSwiftSupport"
cordova-plugin-android-permissions 1.0.0 "Permissions"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-console 1.1.0 "Console"
cordova-plugin-contacts 3.0.1 "Contacts"
cordova-plugin-crosswalk-webview 2.4.0 "Crosswalk WebView Engine"
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-email-composer 0.8.15 "EmailComposer"
cordova-plugin-facebook4 1.10.1 "Facebook Connect"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-geolocation 2.4.3 "Geolocation"
cordova-plugin-globalization 1.11.0 "Globalization"
cordova-plugin-googleplus 5.3.2 "Google SignIn"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.2.0 "cordova-plugin-ionic-webview"
cordova-plugin-linkedin 1.2.1 "LinkedIn"
cordova-plugin-media 5.0.2 "Media"
cordova-plugin-nativeaudio 3.0.9 "Cordova Native Audio"
cordova-plugin-nativegeocoder 2.0.5 "NativeGeocoder"
cordova-plugin-network-information 1.3.4 "Network Information"
cordova-plugin-splashscreen 4.1.0 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-streaming-media 2.2.0 "StreamingMedia"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.4.1 "SocialSharing"
cordova-sqlite-storage 0.7.14 "Cordova sqlite storage plugin"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-barcodescanner 6.0.8 "BarcodeScanner"
phonegap-plugin-push 2.2.3 "PushPlugin"
twitter-connect-plugin 0.6.0 "Twitter Connect"

实际上,发生此问题是因为在构建/运行.apk文件后找不到. 如您所见,这里没有列出.apk文件,但是这些apk文件位于文件夹内,如下图所示:

EDIT 1: Actually this problem is happening because after building/running the .apk files can't be found. As you can see here there are no .apk files listed, but those apk files are there inside the folder as you can see on the picture below:

BUILD SUCCESSFUL in 43s
72 actionable tasks: 10 executed, 62 up-to-date
Built the following apk(s):

参见上文,未列出apk文件.

推荐答案

我遇到了相同的错误,并且能够从Android Studio中运行.因此,我使用"cordova build android"进行构建,然后打开\ platforms \ android \并从那里运行作为解决方法.

I ran into the same error and was able to run from Android Studio. So I build with "cordova build android" and then open \platforms\android\ and run from there as a workaround.

这篇关于离子的科尔多瓦在android设备上运行给出:找不到apk架构:手臂构建类型:调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆