This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
Android Quickstart with Android Studio
joshgav edited this page Nov 10, 2014
·
3 revisions
The simplest path to getting started from scratch is to utilize this repo. Here are the steps if you’re starting from scratch:
- Install latest version of JDK 7 from Oracle (link). (Don’t use JDK 8 for Android work, it’s not compatible.) Windows x64 version recommended.
- Under System Properties / Environment Variables, set JAVA_HOME environment variable to to root folder of JDK (e.g. “C:\Program Files\Java\jdk1.7.0_67”) and add “%JAVA_HOME%\bin” to PATH env var.
- Install Android Studio (link). After installation is complete, run Android Studio and go to Configure / Settings/ Updates to check for updates, and update to the latest version (0.8.14). If you have a project open, go to Help / Check for Updates instead.
- Install git for Windows (link).
- Run Git Bash, and at the command line clone the Android SDK repo with this command:
git clone https://github.com/OfficeDev/Office-365-SDK-for-Android
You may want to checkout the dev branch. CD to the folder where you've cloned the repo (Office-365-SDK-for-Android is the default) and execute this Git Bash command: `git checkout dev`
7. Open Android Studio and click “Import Project”. Navigate to the cloned repo and select the `samples/simple-exchange-sample` folder.
You should now have an Android Studio project open with required libs for the SDK in the app/libs folder and source code in the app/src folder. You can build and run the app using standard AS tools.