如何获得编辑公共类CompactCalendarView.java文件的权限? (Android CompactCalendarView库)

时间:2016-05-08 10:34:22

标签: android view calendar

情况就是这样。我使用Android Studio并使用CompactCalendarView库(https://github.com/SundeepK/CompactCalendarView)创建日历应用程序,我将compile 'com.github.sundeepk:compact-calendar-view:1.8.3'添加到我的依赖项中,一切正常。但我的问题是我想将我的代码添加到public class CompactCalendarView extends View而我不能这样做,因为文件CompactCalendarView.java已被锁定。

我假设通过compile 'com.github.sundeepk:compact-calendar-view:1.8.3'我没有从我的库目录中添加该库,因此我无权编辑它?我尝试添加compile project ('libs:CompactCalendar'),是的,我在我的库上有项目,也包含在我的settings.gradle中,但它给了我一个错误:

Error:Configuration with name 'default' not found.

那么有可能编辑CompactCalendarView公共类吗?

1 个答案:

答案 0 :(得分:0)

  

我假设通过编译'com.github.sundeepk:compact-calendar-view:1.8.3'我没有从我的库目录中添加该库,因此我没有编辑它的权限?

正确。您正在从工件存储库(JCenter,很可能)下载该库的已发布打包版本(最有可能是AAR格式)。

  

但它给了我一个错误

我不知道你在:libs:CompactCalendar中究竟有什么。这应该包含the GitHub repository's library directory的内容。