Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

iOS porting android environment configuration under Mac OS


May 21, 2021 CrossApp



1. The following tools are required for the environment configuration of porting android:

ADT (eclipse+androidSDK)

http://pan.baidu.com/s/1nts4yet


androidNDK (recommended android-ndk-r9c)

http://pan.baidu.com/s/1o6KmBmq


JDK (jdk-7u45-windows-x64)

http://pan.baidu.com/s/1sjOQmMp


2. Install the java environment

Configuring an Android environment requires the java environment to be installed first, and the process of installing the JDK installation is not specifically required.


3. Transplant Android

Import the project into eclipse, File-gt; New-gt; Other-gt; Android Project from Existing Code Click Browse to find proj.android in CrossApp in our engine catalog.

Pictured:

iOS porting android environment configuration under Mac OS

Import engineering into eclipse, File-gt; New-gt; Other-gt; Android Project from Existing Code Click Browse to find proj.android in our newly created engineering catalog.

Pictured:

iOS porting android environment configuration under Mac OS


4. The following configuration needs to be confirmed after the import is complete:

1) Make sure that the Android version is the same as the engine version

iOS porting android environment configuration under Mac OS

The Android version in the figure is 4.4.2, if you don't have the right-click engine to select the same version of Android as the new project version.

2) Change the ndk path of the new project to the root of the ndk. Example: D: androidandorid-ndk-r9

iOS porting android environment configuration under Mac OS


5. After the above steps are complete, we directly right-click the project - run As Android Application and start compiling our project.


6. After the project imports eclipse, the exceptions and errors that occur during the compilation run and the corresponding work-outs are shown in the following table.


7. Environment configuration reference screen