marcoturi / ionic-boilerplate

✨ An Ionic Starter kit featuring Tests, E2E, Karma, Protractor, Jasmine, Istanbul, Gitlab CI, Automatic IPA and APK, TypeScript 2, TsLint, Codelyzer, Typedoc, Yarn, Rollup, and Webpack 2
MIT License
318 stars 107 forks source link

Can't run on Android with npm run android:dev #47

Open rombernardino opened 6 years ago

rombernardino commented 6 years ago

Hello!

I getting the following error while running the npm run android:dev script with the default repository version:

> cordova run android
Running command: /media/romulo/16267BFB267BD9E7/Workspace/ionicboilerplate2/ionic-boilerplate/hooks/after_prepare/020_remove_sass_from_platforms.js /media/romulo/16267BFB267BD9E7/Workspace/ionicboilerplate2/ionic-boilerplate

ANDROID_HOME=/usr/lib/android-sdk
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
:wrapper

BUILD SUCCESSFUL
 in 5s
1 actionable task: 1 executed

Subproject Path: CordovaLib
[21:49:41]  lint finished in 9.95 s 
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_ao2c3spu577l8timdplm70egs.run(/media/romulo/16267BFB267BD9E7/Workspace/ionicboilerplate2/ionic-boilerplate/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 4s
Error: /media/romulo/16267BFB267BD9E7/Workspace/ionicboilerplate2/ionic-boilerplate/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 4s

[ERROR] An error occurred while running cordova run android (exit code 1).

I ran a fresh generated Ionic project and didn't get an error with Gradle or Android Studio, so this could be related to this project.

Does anyone know what could this be?

Thanks in advance!