![]() Double check that you have everything you need installed from inside Android Studio. Note: It is important to note that Android Studio uses a location to install SDK versions and build tools that is not the same as if you were doing command-line development. Use the built in SDK Manager to install the SDK versions and build tools that you are targetting. Installing new SDK versions and build tools set signing information in gradle.propertiesįor lua projects, if you want to encrypt lua codes, you should set encrypt information in gradle.properties too.There are a few required steps to build in release mode: Starting with cocos2d-x v3.15, you can use Android Studio 2.3+ to debug c++ code by setting breakpoints where you wish. You can do this by modifying gradle.properties Next, you must specify what version of the Android SDK you are using. See the Cocos Command-line tool for additional help. Starting a new project requires a few steps: These errors may include: gradle version updates, installing missing build tools, agreeing to license agreements, etc. It may even throw errors that you just click to fix. Note: Android Studio is going to download many components. You can run cpp-tests by clicking on the Play button. Android Studio will do everything required. Import the cpp-tests project from cocos2d-x root/tests/cpp-tests/proj.android in Android Studio. Make sure to install the platforms and tools that your project requires.Ĭpp-tests is a project you can run to get familiar with how to code using Cocos2d-x. It is also possible to access the SDK Manager without opening a project by selecting it from the dialog box Android Studio presents at startup: SDK Manager is located in: Tools -> Android -> SDK Manager. These steps are necessary for Studio to run properly.Īfter the previous step is complete, it is necessary install the SDK and build tools. This may take quite some time as additional downloads and setup steps are completed. Android Studio Installation and Setup PrerequisitesĪ supported environment. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |