在Android设备上运行的Ionic Cordova给出:找不到apk架构:arm生成类型:debug

时间:2018-10-25 15:23:47

标签: android cordova ionic3

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

% cordova run android -l -c

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

Built the following apk(s):

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

我知道这一定与Crosswalk有关,但是在我使用平台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文件位于文件夹内,如下图所示:

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

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

enter image description here

1 个答案:

答案 0 :(得分:1)

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