Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All flavors must now belong to a named flavor dimension. #3123

Closed
pookdeveloper opened this issue May 5, 2018 · 3 comments
Closed

All flavors must now belong to a named flavor dimension. #3123

pookdeveloper opened this issue May 5, 2018 · 3 comments

Comments

@pookdeveloper
Copy link

pookdeveloper commented May 5, 2018

I create a project with template conference. (In a project tabs it woks fine)

When i try to compile apk I get this error..

> cordova build android --release
ANDROID_HOME=/Users/davidgarcia/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home
[12:19:59]  lint finished in 2.10 s
:wrapper


BUILD SUCCESSFUL in 1s
1 actionable task: 1 executed

Subproject Path: CordovaLib
null

The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_3qbzzf6nitbz2giwqcx9aytt5.run(/Users/davidgarcia/Desktop/ionic/aplication/platforms/android/build.gradle:142)
org.xwalk:xwalk_core_library:22+

Configuration 'compile' in project ':' is deprecated. Use 'implementation' instead.

FAILURE: Build failed with an exception.

* What went wrong:

A problem occurred configuring root project 'android'.

>
All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html


* Try:

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


* Get more help at https://help.gradle.org

BUILD FAILED in 1s
(node:3790) UnhandledPromiseRejectionWarning: Error: /Users/davidgarcia/Desktop/ionic/aplication/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'.
> All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html

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

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
    at ChildProcess.whenDone (/Users/davidgarcia/Desktop/ionic/aplication/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:567:12)
(node:3790) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3790) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I have installed this in android :

image

image

Any solution?

@ionitron-bot ionitron-bot bot added the triage label May 5, 2018
@imhoffd imhoffd changed the title Error at run ionic cordova build --release android All flavors must now belong to a named flavor dimension. May 6, 2018
@imhoffd
Copy link
Contributor

imhoffd commented May 6, 2018

Here's a related stack overflow question: https://stackoverflow.com/a/47418102

Must be an issue with the crosswalk plugin we're using. For the new version of the conference app we're working on for v4, crosswalk was removed because it's an unmaintained project and no longer necessary for the vast majority of Android devices.

Here's a workaround for now, but this will be fixed automatically for our v4 release:

ionic cordova plugin rm cordova-plugin-crosswalk-webview

@pookdeveloper
Copy link
Author

thanks!! :)

@imhoffd imhoffd removed the triage label May 6, 2018
@imhoffd
Copy link
Contributor

imhoffd commented May 6, 2018

You're welcome!

@imhoffd imhoffd closed this as completed May 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants