如何使用Android库ExtendedCalendarView

时间:2015-04-02 10:23:05

标签: android

我是Android-Programming的新手,我和我的程序员团队必须为我们的大学编写一个小应用程序。所以我们需要ExtendedCalendarView-Library,我们已经在我们的AndroidStudio项目中导入了它,但我们总是遇到同样的失败:

Can not find the following classes com.tyczj.extendedcalendarview.ExtendedCalendarView
try to fix Build Path

等等。

我们的test.xml中的代码:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"          android:layout_height="match_parent">
    <com.tyczj.extendedcalendarview.ExtendedCalendarView
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        </com.tyczj.extendedcalendarview.ExtendedCalendarView>
</RelativeLayout>

但是我们以相同的方式导入了另一个库并且它可以工作。当我们打开&#39;&lt;&#39;时,我们也会从com.tyczj.extendedcalendarview.ExtendedCalendarView获得建议。在.xml文件中,但总是失败。

与此同时,时间紧迫,所以我们已经没有那么多时间了。

有人可以帮助我们吗?

1 个答案:

答案 0 :(得分:0)

您是否在Android清单中复制了提供者标签,如果没有,则将其复制到AndroidManifest的应用程序标签中:

<application>
...
    <provider
                android:name="com.tyczj.extendedcalendarview.CalendarProvider"
                android:authorities="com.tyczj.extendedcalendarview.calendarprovider" />

</application>