{"id":8306,"date":"2020-01-07T14:53:56","date_gmt":"2020-01-07T14:53:56","guid":{"rendered":"https:\/\/www.scichart.com\/?post_type=blog_scichart&p=8306"},"modified":"2023-12-26T15:11:35","modified_gmt":"2023-12-26T15:11:35","slug":"setting-up-an-android-development-environment-on-osx","status":"publish","type":"blog_scichart","link":"https:\/\/www.scichart.com\/blog\/setting-up-an-android-development-environment-on-osx\/","title":{"rendered":"Setting up an Android Development Environment on OSX"},"content":{"rendered":"
The following guide will help you setup a\u00a0Development Environment for Android on Mac OSX.<\/strong> This is required if you wish to compile SciChart’s Android Charts<\/a> or Chart Examples \/ Demos<\/a> from source-code. You can skip this if you already have Android Studio and the Android NDK setup!<\/em><\/p><\/blockquote>\n
Installing the Java Development Kit<\/h2>\n
1.\u00a0Using safari, navigate to\u00a0https:\/\/www.java.com\/en\/download\/<\/a>\u00a0and download Java 8 for mac.<\/p>\n
2.\u00a0You will also need to install the Java Platform JDK from\u00a0http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html<\/a><\/p>\n
\nNOTE<\/i><\/b>: Make a note of your JDK Install path. For instance, \/Library\/Java\/JavaVirtualMachines\/jdk1.8.0_45.jdk\/Contents\/Home. This will be required later when setting environment variables<\/i><\/p><\/blockquote>\n
Installing Android Studio<\/h2>\n
Download Android Studio for MAC from the\u00a0https:\/\/developer.android.com\/studio\/index.html#downloads<\/a>. Follow the steps to install the application in OSX.<\/p>\n
<\/p>\n
You can start the application from the Applications folder, or from Spotlight, by searching CMD+SPACE and typing \u2018Android Studio\u2019<\/p>\n
<\/p>\n
On first start, Android Studio will try to download the Android SDK. This may take a while. Make a note of where the Android SDK was installed to, this is very useful for certain operations in Android!<\/p>\n
<\/p>\n
Once that\u2019s done, open Android Studio and go to Tools -> Android -> SDK Manager. Under SDK Platforms ensure you have selected the platform(s) you want to develop for. For instance, we require v4.4 \u2013 v6 for SciChart Android development.<\/p>\n
<\/p>\n
Next, under SDK Tools ensure \u2018Android SDK Build Tools\u2019 is up to date. Also download the Android NDK v12.<\/p>\n
<\/p>\n
Click OK to install all components.<\/p>\n
Installing the Android NDK<\/h2>\n