Download and install Android Studio 3.0 +
Download JDK 1.7+
Configure SDK, JDK path in Android Studio
1.64K problem:
build.gradle
... dependencies { ...
implementation 'com.android.support:multidex:1.0.3' //add } ... android {
defaultConfig { ...
multiDexEnabled true //add
} }
ref url
2.http limit
Android P (version 27) limits the http network requests. However, http request is used in the SDK. if your application is target Android 9 (API level 28) or higher, you can modify AndroidManifest.xml like below:
AndroidManifest.xml :
<manifest ...> <application ... android:usesCleartextTraffic="true" //add ...>
ref url
https://stackoverflow.com/questions/45940861/android-8-cleartext-http-traffic-not-permitted
3.relase 编译问题 编译可能会出现没有配置Relaese_key 的错误提示,去app模块的build.gradle下注释release 配置即可。
3. After the compilation is complete, user can run the project to the virtual machine or mobile phone;
Note: The cocos-sdk module source code in the project can also be compiled and run following above steps.