ionic cordova build android - daemon build error, where to find APK?












1















I'm dying trying to figure this out!



Essentially, I've finished up an Ionic app and am ready to publish it to the Google Play Store. The problem is that I'm having trouble following the directions posted on the Ionic Framework website.



So far, I've created an 'android' folder under 'platforms'.



Error thrown:




Android Studio project detected
ANDROID_HOME=C:UsersfromfAppDataLocalAndroidsdk
JAVA_HOME=C:Program Files (x86)javajdk1.8.0_191
studio
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon (subsequent builds will be faster)



FAILURE: Build failed with an exception.




  • What went wrong:
    Unable to start the daemon process.
    This problem might be caused by incorrect configuration of the daemon.
    For example, an unrecognized jvm option is used.
    Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.1/userguide/gradle_daemon.html

    Please read the following process output to find out more:




Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap




  • 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
    (node:43720) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:
    FAILURE: Build failed with an exception.




My various attempts:




  1. Firstly, that I cannot seem to find the 'build' folder referenced at 'platforms/android/build/outputs/apk'. It simply does not exist.

  2. Having recognised that I'm lacking the 'build' folder, I attempted to change the environment variables according to this website: http://www.tiagoporto.com/blog/environment-setting-tutorial-ionic-android-on-windows/. This did not work.

  3. I followed the directions given on various SoF Q&As, and manually downloaded the needed gradle, called "gradle-2.2.1-all.zip". Still did not work.


I am at my wits ends. Please please please help!










share|improve this question

























  • try stackoverflow.com/a/41232909/8850397

    – Sudarshana Dayananda
    Nov 25 '18 at 10:52











  • @SudarshanaDayananda I tried that already.

    – caroline
    Nov 25 '18 at 17:52
















1















I'm dying trying to figure this out!



Essentially, I've finished up an Ionic app and am ready to publish it to the Google Play Store. The problem is that I'm having trouble following the directions posted on the Ionic Framework website.



So far, I've created an 'android' folder under 'platforms'.



Error thrown:




Android Studio project detected
ANDROID_HOME=C:UsersfromfAppDataLocalAndroidsdk
JAVA_HOME=C:Program Files (x86)javajdk1.8.0_191
studio
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon (subsequent builds will be faster)



FAILURE: Build failed with an exception.




  • What went wrong:
    Unable to start the daemon process.
    This problem might be caused by incorrect configuration of the daemon.
    For example, an unrecognized jvm option is used.
    Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.1/userguide/gradle_daemon.html

    Please read the following process output to find out more:




Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap




  • 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
    (node:43720) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:
    FAILURE: Build failed with an exception.




My various attempts:




  1. Firstly, that I cannot seem to find the 'build' folder referenced at 'platforms/android/build/outputs/apk'. It simply does not exist.

  2. Having recognised that I'm lacking the 'build' folder, I attempted to change the environment variables according to this website: http://www.tiagoporto.com/blog/environment-setting-tutorial-ionic-android-on-windows/. This did not work.

  3. I followed the directions given on various SoF Q&As, and manually downloaded the needed gradle, called "gradle-2.2.1-all.zip". Still did not work.


I am at my wits ends. Please please please help!










share|improve this question

























  • try stackoverflow.com/a/41232909/8850397

    – Sudarshana Dayananda
    Nov 25 '18 at 10:52











  • @SudarshanaDayananda I tried that already.

    – caroline
    Nov 25 '18 at 17:52














1












1








1








I'm dying trying to figure this out!



Essentially, I've finished up an Ionic app and am ready to publish it to the Google Play Store. The problem is that I'm having trouble following the directions posted on the Ionic Framework website.



So far, I've created an 'android' folder under 'platforms'.



Error thrown:




Android Studio project detected
ANDROID_HOME=C:UsersfromfAppDataLocalAndroidsdk
JAVA_HOME=C:Program Files (x86)javajdk1.8.0_191
studio
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon (subsequent builds will be faster)



FAILURE: Build failed with an exception.




  • What went wrong:
    Unable to start the daemon process.
    This problem might be caused by incorrect configuration of the daemon.
    For example, an unrecognized jvm option is used.
    Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.1/userguide/gradle_daemon.html

    Please read the following process output to find out more:




Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap




  • 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
    (node:43720) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:
    FAILURE: Build failed with an exception.




My various attempts:




  1. Firstly, that I cannot seem to find the 'build' folder referenced at 'platforms/android/build/outputs/apk'. It simply does not exist.

  2. Having recognised that I'm lacking the 'build' folder, I attempted to change the environment variables according to this website: http://www.tiagoporto.com/blog/environment-setting-tutorial-ionic-android-on-windows/. This did not work.

  3. I followed the directions given on various SoF Q&As, and manually downloaded the needed gradle, called "gradle-2.2.1-all.zip". Still did not work.


I am at my wits ends. Please please please help!










share|improve this question
















I'm dying trying to figure this out!



Essentially, I've finished up an Ionic app and am ready to publish it to the Google Play Store. The problem is that I'm having trouble following the directions posted on the Ionic Framework website.



So far, I've created an 'android' folder under 'platforms'.



Error thrown:




Android Studio project detected
ANDROID_HOME=C:UsersfromfAppDataLocalAndroidsdk
JAVA_HOME=C:Program Files (x86)javajdk1.8.0_191
studio
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon (subsequent builds will be faster)



FAILURE: Build failed with an exception.




  • What went wrong:
    Unable to start the daemon process.
    This problem might be caused by incorrect configuration of the daemon.
    For example, an unrecognized jvm option is used.
    Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.1/userguide/gradle_daemon.html

    Please read the following process output to find out more:




Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap




  • 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
    (node:43720) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:
    FAILURE: Build failed with an exception.




My various attempts:




  1. Firstly, that I cannot seem to find the 'build' folder referenced at 'platforms/android/build/outputs/apk'. It simply does not exist.

  2. Having recognised that I'm lacking the 'build' folder, I attempted to change the environment variables according to this website: http://www.tiagoporto.com/blog/environment-setting-tutorial-ionic-android-on-windows/. This did not work.

  3. I followed the directions given on various SoF Q&As, and manually downloaded the needed gradle, called "gradle-2.2.1-all.zip". Still did not work.


I am at my wits ends. Please please please help!







java android cordova ionic-framework gradle






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 25 '18 at 10:21







caroline

















asked Nov 25 '18 at 10:01









carolinecaroline

709




709













  • try stackoverflow.com/a/41232909/8850397

    – Sudarshana Dayananda
    Nov 25 '18 at 10:52











  • @SudarshanaDayananda I tried that already.

    – caroline
    Nov 25 '18 at 17:52



















  • try stackoverflow.com/a/41232909/8850397

    – Sudarshana Dayananda
    Nov 25 '18 at 10:52











  • @SudarshanaDayananda I tried that already.

    – caroline
    Nov 25 '18 at 17:52

















try stackoverflow.com/a/41232909/8850397

– Sudarshana Dayananda
Nov 25 '18 at 10:52





try stackoverflow.com/a/41232909/8850397

– Sudarshana Dayananda
Nov 25 '18 at 10:52













@SudarshanaDayananda I tried that already.

– caroline
Nov 25 '18 at 17:52





@SudarshanaDayananda I tried that already.

– caroline
Nov 25 '18 at 17:52












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53466427%2fionic-cordova-build-android-daemon-build-error-where-to-find-apk%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53466427%2fionic-cordova-build-android-daemon-build-error-where-to-find-apk%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Wiesbaden

Marschland

Dieringhausen