科尔多瓦没有建立人行横道的离子android项目,说没有风味尺寸错误

时间:2018-11-02 11:47:53

标签: ionic3 cordova-plugins crosswalk

由于有关Flavors的错误,我无法再构建Ionic应用程序。

这是我的离子信息:

cli软件包:(/ usr / local / lib / node_modules)

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

全局软件包:

cordova (Cordova CLI) : 7.1.0

本地软件包:

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

系统:

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.1 Build version 10B61

环境变量:

ANDROID_HOME : /Users/francisco/Library/Android/sdk

其他:

backend : legacy

插件:

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.2 "AddSwiftSupport"
cordova-plugin-android-permissions 1.0.0 "Permissions"
cordova-plugin-camera 4.0.3 "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 2.0.2 "Device"
cordova-plugin-email-composer 0.8.15 "EmailComposer"
cordova-plugin-facebook4 3.1.0 "Facebook Connect"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-geolocation 4.0.1 "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 3.1.2 "NativeGeocoder"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-splashscreen 5.0.2 "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 2.5.0 "Cordova sqlite storage plugin"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-barcodescanner 8.0.0 "BarcodeScanner"
phonegap-plugin-push 2.2.3 "PushPlugin"

错误: 命令行:

    % ionic cordova build android
...
    FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Flavor 'armv7' has no flavor dimension.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.351 secs
Error: /Users/francisco/ionic-projects/j3/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Flavor 'armv7' has no flavor dimension.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

我当时在想是否有办法添加这些风味,由于Android 4.1,我确实需要在该项目上安装Crosswalk,看来问题出在Crosswalk上。

有人知道如何解决此问题吗?

只需提一下,正在使用的Gradle是Android Studio内部的Gradle,版本是4.4

0 个答案:

没有答案