在 android 设备上运行的 Ionic Cordova 给出:找不到 apk 架构:arm build-type:debug [英] Ionic Cordova run on android device gives: Could not find apk architecture: arm build-type: debug

查看:24
本文介绍了在 android 设备上运行的 Ionic Cordova 给出:找不到 apk 架构:arm build-type:debug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人会告诉我如何解决错误吗?当我跑步时:

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

我知道这一定和人行横道有关,但是这个项目在我使用平台 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"

编辑 1:实际上这个问题正在发生,因为在构建/运行之后找不到 .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"构建,然后打开platformsandroid并从那里运行作为一种解决方法.

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

这篇关于在 android 设备上运行的 Ionic Cordova 给出:找不到 apk 架构:arm build-type:debug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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