0

What I want to do is to add this GitHub - Custom-Calendar-View Android Library Project created on Android Studio.

I read a lot of questions and answers about, on SO, but none fits my case. How can to this? Need to export a .jar from Android Library Project on Android Studio? if so, how? Also its important to me to use the resources of Custom-Calendar-View library.

Any help?

Universe
  • 1,527
  • 1
  • 15
  • 22
  • Sorry this is my small suggesting you can use the below link and this is the Calendar Control developed using eclipse. If possible you can use this one. https://github.com/Rajendhiran/AndroidCalendarWidgetLibrary – Rajendhiran Easu Aug 19 '16 at 10:31
  • @RajendhiranEasu I will give it a try, if I can't get a helpful answer. Thanks – Universe Aug 19 '16 at 10:43

2 Answers2

1

You can simply compile the library into a jar file and then import in Eclipse. By Default Gradle provides building a jar from source code. See the example,

// Include dependent libraries in archive.
mainClassName = "com.company.application.Main"

jar {
  manifest { 
    attributes "Main-Class": "$mainClassName"
  }  

  from {
    configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
  }
}

You can check other solutions for building a jar with dependencies using Gradle here!

Community
  • 1
  • 1
Prokash Sarkar
  • 11,723
  • 1
  • 37
  • 50
  • that way includes resources to jar too? this is important to me. Also be detailed where to run this? I'm not too familiar to Android Studio – Universe Aug 19 '16 at 11:58
  • Yes. You need to configure the files that are going to be included & excluded! To run the gradle commands see the reference here, http://stackoverflow.com/questions/4871656/using-gradle-to-build-a-jar-with-dependencies or simply use this plugin https://github.com/rholder/gradle-one-jar – Prokash Sarkar Aug 19 '16 at 12:03
  • where to run this? how to configure the files? I'm not too familiar to Android Studio. Please post a detailed answer so I can accepted – Universe Aug 19 '16 at 12:03
0

This is my small suggestion you can use the below link and this is the Calendar Control developed using eclipse. If possible you can use this one.

enter image description herehttps://github.com/Rajendhiran/AndroidCalendarWidgetLibrary

This has the swipe gesture feature as well.

Rajendhiran Easu
  • 273
  • 4
  • 14