Platforms/android/build/outputs/apk/debug/android-debug.apk does not exist


#1

Error log

[22:02:29]: ▸ FAILURE: Build failed with an exception.
[22:02:29]: ▸ * What went wrong:
[22:02:29]: ▸ Could not determine the dependencies of task ':compileDebugJavaWithJavac'.
[22:02:29]: ▸ > Could not resolve all task dependencies for configuration ':debugCompileClasspath'.
[22:02:29]: ▸ > Could not resolve project :CordovaLib.
[22:02:29]: ▸ Required by:
[22:02:29]: ▸ project :
[22:02:29]: ▸ > Unable to find a matching configuration of project :CordovaLib: None of the consumable configurations have attributes.
[22:02:29]: ▸ * Try:
[22:02:29]: ▸ Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[22:02:29]: ▸ * Get more help at https://help.gradle.org
[22:02:29]: ▸ BUILD FAILED in 36s
[22:02:30]: ▸ (node:758) UnhandledPromiseRejectionWarning: Error: /builds/gabenthegamer/Checkin/platforms/android/gradlew: Command failed with exit code 1 Error output:
[22:02:30]: ▸ FAILURE: Build failed with an exception.
[22:02:30]: ▸ * What went wrong:
[22:02:30]: ▸ Could not determine the dependencies of task ':compileDebugJavaWithJavac'.
[22:02:30]: ▸ > Could not resolve all task dependencies for configuration ':debugCompileClasspath'.
[22:02:30]: ▸ > Could not resolve project :CordovaLib.
[22:02:30]: ▸ Required by:
[22:02:30]: ▸ project :
[22:02:30]: ▸ > Unable to find a matching configuration of project :CordovaLib: None of the consumable configurations have attributes.
[22:02:30]: ▸ * Try:
[22:02:30]: ▸ Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[22:02:30]: ▸ * Get more help at https://help.gradle.org
[22:02:30]: ▸ BUILD FAILED in 36s
[22:02:30]: ▸ at ChildProcess.whenDone (/builds/gabenthegamer/Checkin/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
[22:02:30]: ▸ at emitTwo (events.js:126:13)
[22:02:30]: ▸ at ChildProcess.emit (events.js:214:7)
[22:02:30]: ▸ at maybeClose (internal/child_process.js:915:16)
[22:02:30]: ▸ at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
[22:02:30]: ▸ (node:758) 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)
[22:02:30]: ▸ (node:758) [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.
[22:02:30]: ------------------------
[22:02:30]: --- Step: upload_apk ---
[22:02:30]: ------------------------
[22:02:30]: ▸ The user-provided path platforms/android/build/outputs/apk/debug/android-debug.apk does not exist.
+----------------------------+-----------------------+
|                    Lane Context                    |
+----------------------------+-----------------------+
| DEFAULT_PLATFORM           | ios                   |
| PLATFORM_NAME              | android               |
| LANE_NAME                  | android package_build |
| DOWNLOAD_CREDENTIAL_EXISTS | false                 |
+----------------------------+-----------------------+
[22:02:30]: Shell command exited with exit status 255 instead of 0.

The user-provided path platforms/android/build/outputs/apk/debug/android-debug.apk does not exist.


+------+-----------------------+-------------+
|              fastlane summary              |
+------+-----------------------+-------------+
| Step | Action                | Time (in s) |
+------+-----------------------+-------------+
| 1    | default_platform      | 0           |
| 2    | build_summary         | 1           |
| 3    | add_git_credentials   | 0           |
| 4    | modify_config_xml     | 0           |
| 5    | build_pro_app         | 18          |
| 6    | add_cordova_to_index  | 0           |
| 7    | download_credential   | 0           |
| 8    | build_android_cordova | 224         |
| 💥   | upload_apk            | 0           |
+------+-----------------------+-------------+

[22:02:30]: fastlane finished with errors
/usr/local/bin/fastlane: [!] Shell command exited with exit status 255 instead of 0. (FastlaneCore::Interface::FastlaneShellError)

The user-provided path platforms/android/build/outputs/apk/debug/android-debug.apk does not exist.

Running after script...
$ run "clean-up"
ERROR: Job failed: command terminated with exit code 1

This worked before but now recently it stopped working in ionic pro
I have tired
ionic cordova resources
ionic cordova plugin add cordova-android-support-gradle-release
cordova plugin add cordova-android-play-services-gradle-release --variable PLAY_SERVICES_VERSION=15.0.0 --fetch

It works fine on ios builds


#2

Quck update builds that worked before in android no longer works ionic pro issue?


#3

Having the same issue… Tried the same things as OP did, it used to build a package before.


#4

It got fixed for me seems like a bad server


#5

same here. sometimes builds work fine, somemtimes I get the

The user-provided path platforms/android/build/outputs/apk/release/android-release.apk does not exist

error output. is the ionic staff involved here and can check the servers?


#6

OK , I found a solution for my case, see over here: Android-release.apk does not exist