CocosCreator | Android configuration Android development environment

More tutorials and source code please pay attention to public numbers:

 

1JDK

download link:

https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

 

 

And you choose to match the computer operating system and architecture

 

Notebook system:

 

So downloaded: Windows x64

 

After the download is complete, double-click the exe to install, choose the installation directory of jdk and jre:

 

After the installation is complete, my directory structure:

 

Check whether the installation is successful, enter the following code in the Command line tool to view:

java -version

 

Successful installation:

 

2 Environment Variables

1. New System Variable

Variable name: JAVA_HOME

Variable value: D: \ Java \ jdk1.8.0_241

 

2. Edit Environment Variables

Variable name: Path

Shindachi:% JAVA_HOME% \ bin

 

3. New System Variable

Variable name: CLASSPATH

variable:

.;%Java_Home%\bin;%Java_Home%\lib\dt.jar;%Java_Home%\lib\tools.jar

 

 

After you modify environment variables, you need to restart the computer before they can take effect

But the Father reboot takes about two minutes, so lazy it

Services to restart explorer.exe in the Task Manager

 

3Android Studio:SDK/NDK

download link:

http://www.android-studio.org/

 

Android Studio after the installation is successful, run

 

Select Configure:

 

Select the SDK Manager:

 

Download SDK:

 

Download NDK:

 

After downloading the SDK / NDK, within the folder directory structure:

 

4Cocos Creator

File -> Settings -> Native Development Environment

 

NDK path: E: \ AndroidStudio \ ndk \ 21.0.6113669

Android SDK path: E: \ AndroidStudio

 

5 Building publishing

 

 

—END—

Disclaimer: This article is posted for more knowledge transfer for the purpose of exchange of learning. If the source tagging error or a violation of your legal rights, please contact the author holds the ownership certificate with me, I will promptly correct, delete, thank you.

Author: Let me sleep

More notes and source code, please visit: [micro-channel public number] CocosCreator notes

发布了29 篇原创文章 · 获赞 1 · 访问量 3万+

Guess you like

Origin blog.csdn.net/u010799737/article/details/104226111