Reputation: 147
I am trying to use this ExtendedCalendarView from github: https://github.com/tyczj/ExtendedCalendarView but I am not clear on how to add this to my android studio project. I tried to create a libs folder in my project folder and then pulled to the libs folder. Then I tried to sync the project but it did not work.
Upvotes: 1
Views: 1305
Reputation: 232
As they not offer gradle support, you need to download their library, and import it in Android Studio.
Do to this :
And you're good to go, your library is imported.
But, the library does not compile, you will see this error :
Error:(11, 9) Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:11:9
is also present at XXXXXXXXXXXXXX:extendedCalendarView:unspecified:13:9 value=(@drawable/ic_launcher)
Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:8:5 to override
To fix it :
xmlns:tools="http://schemas.android.com/tools"
to your AndroidManifest file, in the manifest element, next to your existing xmlns:android="http://schemas.android.com/apk/res/android"
tools:replace="android:icon,android:theme"
to your < application > element as the error message suggest.Now the project compiles correctly !
Please ask me if you need any explanation or help.
Upvotes: 1
Reputation: 8992
Try cloning the library onto your computer then adding it as a module in Android Studio. Once you have completed that go to project settings and add the module as a dependency.
Upvotes: 1