Edigleysson Silva
1 min readAug 1, 2019

--

Hi, thansk for this awesome post.

I tried to run the command ./gradlew bundle from a ionic application, but I’m getting the following output :

> Configure project :CordovaLib
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
> Configure project :app
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_1je5gdx9ebu802xao0249llns.run(/home/edy/workspaces/tutoriais/ionic/shareApp/platforms/android/app/build.gradle:143)
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
FAILURE: Build failed with an exception.* What went wrong:
Task 'bundle' is ambiguous in root project 'android'. Candidates are: 'bundleAppClassesDebug', 'bundleAppClassesDebugAndroidTest', 'bundleAppClassesDebugUnitTest', 'bundleAppClassesRelease', 'bundleAppClassesReleaseUnitTest', 'bundleDebug', 'bundleRelease'.
* Try:
Run gradlew tasks to get a list of available tasks. 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.orgBUILD FAILED in 7s

When a I run the command ./gradlew bundleDebug ou ./gradle bundleRelease ths output sound like OK but the .aab files is not generated.

What am I doing wrong?

--

--

Edigleysson Silva
Edigleysson Silva

Written by Edigleysson Silva

Trying to make stuff on my computer.

Responses (1)