How to import an Android Library Project created o

2019-09-09 06:07发布

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?

2条回答
我只想做你的唯一
2楼-- · 2019-09-09 06:50

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!

查看更多
劳资没心,怎么记你
3楼-- · 2019-09-09 06:53

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.

查看更多
登录 后发表回答