【美妍機房】關於gradle和java安裝問題

Remove the \bin, and also remove the ; at the end. After restart the cmd and run.

Your comment saved my life. Thanks. Added semi colon at the end which leads to endless search in google. After removing the semi colon at the end its works like charm!

Your answer is the correct answer. Even after I removed \bin , I got error because of ";"

JAVA_HOME="C:\Program Files\Java\jdk1.8.0_131"

Gradle Installation: How to Install Gradle in 4 Simple Steps?

文章來源於:點入原文


The Required Software & Tools

Java Development Kit (JDK)

If you are using cordova-android 10.0.0 or greater, install the Java Development Kit (JDK) 11.

如果你在使用cordova10或更高版本,需要安裝JDK 11

If you are using any version below cordova-android 10.0.0, install the Java Development Kit (JDK) 8.

如果你在使用cordova低於10版本,安裝JDK8

The JAVA_HOME environment variable must be set according to your JDK installation path when installing on a Windows environment. See the Setting Environment Variables section on how to set up environment variables.

必須設定java環境


How to check JDK version that installed on your computer

查看jdk和jre的版本號,以及安裝在哪裡?

By mkyong | Last updated: June 29, 2020


查看文章

The Java development kit (JDK) contains tools for Java development, and the Java Runtime Environment (JRE) contains a JVM to convert byte code .class to machine code, and execute it, in short, the JRE runs Java program.

Check JDK Version We can use javac -version to find out the version of the installed JDK. In the below example, the JDK version is 11.0.7

javac -version

Check JRE Version

We can use java -version to find out the version of the installed JRE. In the below example, the JRE version is 1.8.0_252

java -version

The JDK and JRE versions can be different on the same computer. Multiple JDK and JRE versions are allowed on the same computer; it is better to find out which version is configured in the system classpath to run or compile the Java program.

在同一台電腦上,JDK和JRE的版本號可以不同。多個版本的JDK和JRE同時存在於同個電腦上也是允許的。最好搞清楚哪個版本在運作


1. Where JDK is installed? JDK在哪裡?

The JDK also contains a JRE to run the Java program.On Windows, we can use where javac to find out where JDK is installed.

where javac
Do I need JDK or JRE? 我需要JDK或JRE嗎?

For end-users, they need to install JRE to run the Java program, and the JDK is for developers. For the production environment, the deployment team only need to install JRE to run the Java program. However, developers often request to install the JDK, instead of the standalone JRE on the production server, because the JDK contains JRE and also extra tools to monitor and debug the running Java program.

對於終端用戶,需要安裝JRE去運行jave程序,而JDK是為開發者使用。在產品環境下,部署團隊只需要安裝JRE來運行java程序。可是開發者經常被要求在產品服務器上安裝JDK,而不是單獨獨立的JRE,因為JDK也包含了JRE和額外的工具,可以監控和調試運行java程序


遇到的jdk安裝問題

java -version shows earlier version but java 11 is already installed

鏈接


在android studio內,必須注意各種組件的版本號兼容和升級的問題

jdk11 +gradle7.2+sdk30+ndk

升級gradle方法

1.刪除舊版本gradle,下載新版本(帶有bin),解壓文件後將他放到任意想要位置,在environment setting中,上方表格設定 GRADLE_HOME 設定路徑為 C:\Program Files\gradle-7.5.1-bin\gradle-7.5.1,在上方表格設定path路徑,為C:\Program Files\gradle-7.5.1-bin\gradle-7.5.1\bin

2在cmd後,gradle -version確認已安裝

最新文章

查看全部
bedroom-ppng.png

情節驚心動魄,情感深厚真摯,情慾熾烈狂熱的琴研單行本!僅限18歲以上讀者哦!以下為情慾濃烈的甜愛單行本

tea-cover.jpg
18+
cover-piao.jpg
18+
electricity_01.jpg
18+
1lightred3-pearl-cover.jpg
18+
kinbaku_01.jpg
18+
seven-cover.jpg
18+
1yellow2-cover-honey.jpg
18+
piano_01.jpg
18+
chip_01.jpg
18+
wine_01.jpg
18+
electricity_01.jpg
18+
you_01.jpg
18+