【问题标题】:How to resolve the problem in ionic during build creation如何在构建创建期间解决离子问题
【发布时间】:2021-07-14 18:35:17
【问题描述】:

如何在构建创建过程中解决 ionic 中的问题

我在构建 ...In ionic 时遇到错误。

【问题讨论】:

  • 您需要提供代码的详细信息以及问题中的错误。

标签: angular cordova ionic-framework


【解决方案1】:
 **Checking Java JDK and Android SDK versions** 
You can Also Watch Video here : [https://youtu.be/4aAA1qjLMwY][1]
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=undefined (DEPRECATED)
Using Android SDK: C:\Users\XXXXX\AppData\Local\Android\sdk
Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio

***********************************************/

1) Download JAVA jdk8 (jdk-8u281-windows-x64.exe) From https://www.oracle.com/in/java/technologies/javase/javase-jdk8-downloads.html

2) Download Gradle-7 From https://gradle.org/install/

Now First Install download jdk on your computer
After that Extract Gradle-7 zip file, copy the extract file and paste in Local Disk(C:)


Steps For Setting Enviroments

1) Open System enviroment of your Pc, Click on Enviroment Variable.
2) Go to User Variable, Click on New
3) Add Variable Name--> ANDROID_SDK_ROOT and Variable Value--> **C:\Users\Your User Name\AppData\Local\Android\Sdk**
4) Add One More Variable Name--> JAVA_HOME and Variable Value--> C:\Program Files\Java\jdk1.8.0_281
5) After that go to System Variable double click On Path, after that click on NEW and add gradle path C:\gradle-7.0\bin

6) Restart Your Pc.

7) After Pc Open go to your Project Directory
8) Open The terminal and write ionic cordova build android

Now I have Successfully Create APK Without android studio

 


 

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多