mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add instructions on how to set up IntelliJ in README
This commit is contained in:
parent
06ba377eb0
commit
02cd07ee21
1 changed files with 24 additions and 0 deletions
24
README.md
24
README.md
|
|
@ -14,6 +14,30 @@
|
|||
|
||||
**Note**: Currently uses a bunch of dependencies that are staged at `yuvi.in/blog/maven`. Will be migrated to either [Maven Central][4] or a Wikimedia staging server soon.
|
||||
|
||||
## Set Up IntelliJ for Commons App Development ##
|
||||
|
||||
### Import and Compile CommonApp ##
|
||||
|
||||
[Download IntelliJ] [6]
|
||||
|
||||
1. Clone the repository.
|
||||
2. Open IntelliJ.
|
||||
3. Import Project:
|
||||
File -> Import Project
|
||||
or
|
||||
Select 'Import Project' from the Quick Start menu
|
||||
4. Navigate to the folder with the cloned repository and press 'OK'.
|
||||
5. Select 'Import Project from external model' -> 'Maven' and press 'Next'.
|
||||
6. Make sure 'Search for projects recursively' and 'Import Maven projects automatically' are checked. Select 'Next'.
|
||||
7. This section needs no modification. Select 'Next'.
|
||||
8. This section needs no modification. Select 'Next'.
|
||||
9. Make sure the 'Android SDK home path' points to the 'android-sdk' folder. If the dropdown next to 'Java SDK' is empty, hit the '+' button avobe the sidebar and select 'JDK'. Navigate to your jdk folder, select it, and hit 'OK'. Now select the newly added JDK and hit 'Next'.
|
||||
10. This section needs no modifications. Select 'Next'.
|
||||
11. Select 'Finish'.
|
||||
12. After the program opens select 'Make project' - there should be errors.
|
||||
13. Neat 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.
|
||||
14. Select 'Make project' again. It should compile successfully.
|
||||
|
||||
## License ##
|
||||
|
||||
This software is licensed under the [Apache License][5].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue