Ionic 3 Android Studio обнаружена - PullRequest
       1

Ionic 3 Android Studio обнаружена

0 голосов
/ 10 октября 2018

Я не могу запустить свое приложение Ionic на своем устройстве Android и не могу собрать APK.

Я могу создать и запустить другое приложение для Android на том же ПК.Но я не могу создавать новые приложения.Я застрял в этой ошибке.

Я пытался,

  • GradleBuilder.js -> 2048 до 512 м
  • Я добавляю в «Переменные среды» _JAVA_OPTIONS -Xmx512M
  • Я переустанавливаю Gradle 4.6

Извините за плохой английский кстати.Спасибо за помощь!

    PS D:\Projects\Ionic3\AuthServiceEx> cordova run android
Android Studio project detected
ANDROID_HOME=C:\Users\[USERNAME]\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_181
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
cmd: Command failed with exit code 1 Error output:
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

Ответы [ 2 ]

0 голосов
/ 10 октября 2018

Есть несколько вещей, которые могут вам помочь

  • Удалите платформу и добавьте ее снова
  • Если вы используете Windows, убедитесь, что вы установили jdk с подходящим путем env
  • Зайдите в android studio> sdk manger> установите последние инструменты sdk
  • Обновите Gradle
0 голосов
/ 10 октября 2018

Вы пытались переустановить платформу Android в своем проекте?Если это не помогло, попробуйте следующее: Ионная сборка Android - недостаточно памяти для запуска jvm

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...