apradanas / simple-linkable-text

Simple way to create linked text, such as @username or #hashtag, in Android TextView and EditText
Other
74 stars 13 forks source link

Build Failed - Merging attribute on Manifest #6

Open dsdebastiani opened 8 years ago

dsdebastiani commented 8 years ago

There are a conflict with theme attribute in manifest of my project and this lib.

Error:(14, 9) Attribute application@theme value=(@style/MyProjectTheme) from AndroidManifest.xml:14:9 is also present at com.apradanas.simplelinkabletext:library:1.0.3:15:9 value=(@style/AppTheme)
Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest.xml:9:5 to override Error:Execution failed for task ':app:processDevDebugManifest'.
rijkhan commented 8 years ago

As suggested, add tools:replace="android:theme" to the element and xmlns:tools="http://schemas.android.com/tools" in the element. Then in your build.gradle move this library to the top of your dependencies{}.