Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
211 views
in Technique[技术] by (71.8m points)

java - Android Studio - add ownCloud library from GitHub

I don't understand how to add this library (https://github.com/owncloud/android-library) to my project in Android Studio.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

enter image description here

2. Unzip library.

3. Start Android Studio.

4. Follow to File -> New -> Import Module .

enter image description here

5. Go to the path where your extracted library is located and select it.

enter image description here

6. Uncheck other modules and add 'androidlibrarymaster' described in below picture.

enter image description here

7. Add Gradle dependency and Its Done!

  compile project(':androidlibrarymaster');

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.9k users

...