chat21 / chat21-android-sdk

Android Chat SDK built on Firebase
http://www.chat21.org
MIT License
233 stars 98 forks source link

Chat 21 SDK Issues. #43

Closed LokiRathod closed 4 years ago

LokiRathod commented 4 years ago

When i am adding the Chat21 Dependencies ("implementation 'org.chat21.android:chat21:1.0.15'") I am getting below error. and My Project is in AndroidX.

Users/userName/.gradle/caches/transforms-2/files-2.1/fb96de9b363d9f480ff6012a7b07edf6/jetified-chat21-1.0.15/res/layout/layout_custom_notification.xml:29: AAPT: error: resource style/TextAppearance.AppCompat.Notification.Title (aka com.testdemo.projectname:style/TextAppearance.AppCompat.Notification.Title) not found.

Please help me here.

zaprogrammer commented 4 years ago

When i am adding the Chat21 Dependencies ("implementation 'org.chat21.android:chat21:1.0.15'") I am getting below error. and My Project is in AndroidX.

Users/userName/.gradle/caches/transforms-2/files-2.1/fb96de9b363d9f480ff6012a7b07edf6/jetified-chat21-1.0.15/res/layout/layout_custom_notification.xml:29: AAPT: error: resource style/TextAppearance.AppCompat.Notification.Title (aka com.testdemo.projectname:style/TextAppearance.AppCompat.Notification.Title) not found.

Please help me here.

Same here, any solution ?

gab-95 commented 4 years ago

Hi @zaprogrammer, try to add this in your style.xml file:

<style name="TextAppearance.AppCompat.Notification.Title" parent="@android:style/TextAppearance.StatusBar.EventContent.Title"/>

Tell me if it works properly.

LokiRathod commented 4 years ago

Hi @gab-95 , I have tried this, But same issue.

zaprogrammer commented 4 years ago

Hi @zaprogrammer, try to add this in your style.xml file:

<style name="TextAppearance.AppCompat.Notification.Title" parent="@android:style/TextAppearance.StatusBar.EventContent.Title"/>

Tell me if it works properly.

Thanks a lot @gab-95, it worked, just had to duplicate for the Time and Info styles too as below:

<style name="TextAppearance.AppCompat.Notification.Title" parent="@android:style/TextAppearance.StatusBar.EventContent.Title" />
<style name="TextAppearance.AppCompat.Notification.Time" parent="@android:style/TextAppearance.StatusBar.EventContent.Title" />
<style name="TextAppearance.AppCompat.Notification.Info" parent="@android:style/TextAppearance.StatusBar.EventContent.Title" />

Thanks again :)