Friday, May 2, 2014

How to install Android Studio in Mac OS X


(3) Install JDK say jdk-7u51-macosx-x64.dmg from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

(2) Download the latest Android Studio IDE from http://tools.android.com/download/studio/canary/latest and install to /Applications/

(3) Download the Android Studio with SDK from http://dl.google.com/dl/android/studio/ide-zips/0.4.2/android-studio-ide-133.970939-mac.zip and extract the sdk subfolder to /Applications/Andriod Studio.app/sdk


or download the SDK here http://dl.google.com/android/android-sdk_r23.0.2-macosx.zip

(4) Change ownership for /Applications/Android Studio.app/sdk using sudo chown -R <yourid>:staff /Applications/Android Studio.app/sdk

(5) Launch Android Studio and change Project Structure to
SDK Location : /Applications/Android Studio.app/sdk
JDK Location : /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
(6) Tools -> Android -> SDK Manager to install the latest SDK packages Android 4.4.2 API-19

(7) Tools -> Android -> AVD Manager to add AVD

(8) Import Project to test build TouchCalculator.rar. This project has been modified from here and for test build on Android Studio API-19
Download -> http://www.2shared.com/file/XIswagFF/TouchCalculator.html



Another example on how to use Android Studio to create new app can be reference from the workflow demo in this video http://www.youtube.com/watch?v=K2lF862TjU8 The source file in the video page was dead. New project should be created in Android Studio with App Name as "PeamonCalculator" and packagename as "com.example.peamoncalculator.app" and using the default theme "Holo Light with Dark Action Bar" Download the project source from here and replace the following 2 files in the newly created project and use the Nokia X skin for this project source PeamonCalculator/app/src/main/java/com/example/peamoncalculator/app/MainActivity.java PeamonCalculator/app/src/main/res/layout/activity_main.xml unzip ~/Downloads/PeamonCalculator.zip -d ~/YourAndroidStudioProjectFolder/


No comments: