Skip to content

Commit 902fdd6

Browse files
author
Anirudh S
committed
Update README with instructions on how to download library from jcenter
1 parent 151317b commit 902fdd6

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,41 @@ Visit [helpstack.io](http://wwww.helpstack.io) to learn more.
2626

2727
Installating the HelpStack library is fairly straight-forward.
2828

29+
### [Eclipse/ADT]:
2930
1. Clone or download the library along with its dependencies from the Git repository.
3031
2. Import it as a library project into your Application.
3132
3. Set the flag for *manifestmerger.enabled* to *true* in your *project.properties* file:
3233

3334
manifestmerger.enabled=true
3435

36+
### [Android Studio]:
37+
38+
1. Add jcenter as a repository to your app's build.gradle
39+
2. Add com.tenmiles:helpstack:1.0 as a dependency
40+
41+
repositories {
42+
jcenter()
43+
}
44+
45+
dependencies {
46+
compile 'com.tenmiles:helpstack:1.0'
47+
}
48+
49+
You might face a few issues, depending on your app.
50+
51+
1. **Attribute is already present**: Follow the instructions suggested by Android Studio, which is along the lines of adding
52+
53+
tools:replace="android:label"
54+
55+
to your *application* tag.
56+
2. **Duplicate files copied in APK**, listing some library jars: HelpStack uses some libraries and your app might be using the same. To avoid using the library from HelpStack, exclude it when you add the dependency. For example, if the library is *httpmime*, import the library in the manner below:
57+
58+
59+
compile ('com.tenmiles:helpstack:1.0') {
60+
exclude group: 'org.apache.httpcomponents', module: 'httpmime'
61+
}
62+
63+
3564
## Using the Library
3665

3766
Broadly speaking, there are just 3 steps to begin using HelpStack within your app:

0 commit comments

Comments
 (0)