Android Studio - add ownCloud library from GitHub
Maybe try jitpack website to import this project with build.gradle file.
You have to add this snippet to your build.gradle file :
repositories {
// ...
maven { url "https://jitpack.io" }
}
And this statement to your dependencies :
compile 'com.github.owncloud:android-library:oc-android-library-0.9.7'
I have tried to import this library as a module but found error while importing: Error: Module name is not valid
So I tried to find a solution and here it is:
1. Download library from Github here.
2. Unzip library.
3. Start Android Studio.
4. Follow to File -> New -> Import Module .
5. Go to the path where your extracted library is located and select it.
6. Uncheck other modules and add 'androidlibrarymaster' described in below picture.
7. Add Gradle dependency and Its Done!
compile project(':androidlibrarymaster');