-
Notifications
You must be signed in to change notification settings - Fork 5
Installation guide
keith yau edited this page Dec 3, 2013
·
12 revisions
Since android studio currently not support import modules from UI, we can only do it with gradle settings.
- Create a new project
- Copy drupalForAndroidSDK module in this SDK to your project directory
- at settings.gradle, add ':DrupalForAndroidSDK' -> include ':YourApplicationName', ':DrupalForAndroidSDK'
- Click the Sync gradle project button
- current Android Studio 0.3.6 will modify your build.gradle file in DrupalForAndroidSDK, so you need to modify it back to the SDK provided one by copy and paste the build.gradle again
- Copy and paste demo source code to your Application from drupalForAndroidSDKDemo
- Import required library by alt+enter
- Add <uses-permission android:name="android.permission.INTERNET"/> to your AndroidManifest.xml
- Modify the Android version you are using like below
compileSdkVersion 19 buildToolsVersion "19.0.0"
defaultConfig { minSdkVersion 14 targetSdkVersion 19 }
Compile your project again and done !