抱歉我的英文。我尝试包含libruary ExtendedCalendarView,但在android studio中我不能这样做。 Android studio输出错误:
D:\work\pc\test\app\src\main\AndroidManifest.xml:369:9-371:85 Warning:
Element provider#com.tyczj.extendedcalendarview.CalendarProvider at
AndroidManifest.xml:369:9-371:85 duplicated with element declared
at AndroidManifest.xml:312:9-314:85
D:\work\pc\test\app\src\main\AndroidManifest.xml:31:9-38 Error:
Attribute application@icon value=(@drawable/icon) from AndroidManifest.xml:31:9-38
is also present at [test:ExtendedCalendarView:unspecified]
AndroidManifest.xml:15:9-45 value=(@drawable/ic_launcher).
Suggestion: add 'tools:replace="android:icon"' to
<application> element at AndroidManifest.xml:29:5-376:19 to override.
D:\work\pc\test\app\src\main\AndroidManifest.xml:32:9-46 Error:
Attribute application@label value=(@string/app_name_main) from AndroidManifest.xml:32:9-46
is also present at [test:ExtendedCalendarView:unspecified] AndroidManifest.xml:16:9-41 value=(@string/app_name).
Suggestion: add 'tools:replace="android:label"'
to <application> element at AndroidManifest.xml:29:5-376:19 to override.
D:\work\pc\test\app\src\main\AndroidManifest.xml:33:6-59 Error:
Attribute application@theme value=(@android:style/Theme.Black.NoTitleBar) from AndroidManifest.xml:33:6-59
is also present at [test:ExtendedCalendarView:unspecified] AndroidManifest.xml:17:9-40 value=(@style/AppTheme).
Suggestion: add 'tools:replace="android:theme"' to
<application> element at AndroidManifest.xml:29:5-376:19
to override. See http://g.co/androidstudio/manifest-merger for more
information about the manifest merger.
:app:processDebugManifest FAILED
在Manifest中我添加了行tools:replace="android:icon, android:label, android:theme, android:name"
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.tyczj.extendedcalendarview"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
<application
android:name=".Application"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
tools:replace="android:icon, android:label, android:theme, android:name" >
<provider
android:name="com.tyczj.extendedcalendarview.CalendarProvider"
android:authorities="com.tyczj.extendedcalendarview.calendarprovider" />
</application>
</manifest>