Skip to content

Commit 49712ec

Browse files
committed
Update README
1 parent 0a54444 commit 49712ec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Initially started by the Wikimedia Foundation, this app is now maintained by vol
2121

2222
### Import and Compile Commons Android App ##
2323

24-
[Download IntelliJ][6] or [Download Android Studio][7].
24+
[Download IntelliJ][6] or [Download Android Studio][7]. (Note: The steps below currently only work on Android Studio 1.5 and below)
2525

2626
1. Clone the repository.
2727
2. Open IntelliJ/Android Studio. Ensure Maven integration plugin is enabled (File > Settings > Plugins > Maven integration).
@@ -39,7 +39,9 @@ Initially started by the Wikimedia Foundation, this app is now maintained by vol
3939
11. Select 'Finish'.
4040
12. After the program opens select 'Make project' - there should be errors.
4141
13. Near the top of the file that is opened up, one of the offending lines should be "import android.support.v4.app.FragmentActivity;" - put your cursor on that line and hit 'alt'/'option'+'enter' to bring up the AutoFix dialog. Select the 'compatibility' option.
42-
14. Select 'Make project' again. It should compile successfully.
42+
14. File -> Project Structure -> Project and ensure the Project SDK is set to at least API 23. This is required for DocumentsContract to work.
43+
15. File -> Project Structure -> Modules and select 'commons'. Select the 'Dependencies' tab and click the green '+' button. Select 'JARs or directories' and navigate to the 'lib' folder. Select all the .jars in that folder and click 'OK'. This imports the QuadTree and GSON libraries.
44+
16. Select 'Make project' again. It should compile successfully.
4345

4446
## License ##
4547

0 commit comments

Comments
 (0)