# Error in Android Gradle Plugin 4.1.1

**URL:** <https://community.sendbird.com/t/error-in-android-gradle-plugin-4-1-1/1530>\
**Category:** Android\
**Tags:** android, bug\
**Created:** [December 31, 2020, 2:44am UTC](https://community.sendbird.com/t/error-in-android-gradle-plugin-4-1-1/1530 "2020-12-31T02:44:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![brownsoo](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/brownsoo/32/793_2.png) [@brownsoo](https://community.sendbird.com/u/brownsoo)\
**Post date:** [December 31, 2020, 2:44am UTC](https://community.sendbird.com/t/error-in-android-gradle-plugin-4-1-1/1530/1 "2020-12-31T02:44:00Z")

</div>

This error occurs in ‘com.android.tools.build:gradle:4.1.1’. Android UIKit only runs in 3.5.0. Please check the library in higher than 3.5.0 of Android Gradle Plugin version.

### build error

```
/Users/brownsoo/.gradle/caches/transforms-2/files-2.1/8d361d960efcb8909bbba8e5892fedb5/uikit-2.0.0/res/values/values.xml:2077:5-2089:13: AAPT: error: expected reference but got (raw string) .

```

### env

Android Studio 4.1.1  
Build #AI-201.8743.12.41.6953283, built on November 5, 2020  
Runtime version: 1.8.0\_242-release-1644-b3-6915495 x86\_64  
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o  
macOS 10.16  
GC: ParNew, ConcurrentMarkSweep  
Memory: 2988M  
Cores: 12  
Registry: ide.new.welcome.screen.force=true, external.system.auto.import.disabled=true  
Non-Bundled Plugins: com.thoughtworks.gauge, org.intellij.plugins.markdown, com.intellij.marketplace, org.jetbrains.kotlin, Dart, io.flutter

---

<div class="post-metadata">

**Author:** ![Doo\_Rim](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/doo_rim/32/239_2.png) [@Doo\_Rim](https://community.sendbird.com/u/Doo_Rim)\
**Post date:** [January 4, 2021, 1:21am UTC](https://community.sendbird.com/t/error-in-android-gradle-plugin-4-1-1/1530/2 "2021-01-04T01:21:46Z")

</div>

Hi @brownsoo ,  
I am checking this issue. We’ll review and tell you how to fix it.

---

<div class="post-metadata">

**Author:** ![Doo\_Rim](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/doo_rim/32/239_2.png) [@Doo\_Rim](https://community.sendbird.com/u/Doo_Rim)\
**Post date:** [January 5, 2021, 12:16am UTC](https://community.sendbird.com/t/error-in-android-gradle-plugin-4-1-1/1530/3 "2021-01-05T00:16:31Z")

</div>

@brownsoo  
Thank you for your report. It will be improved in version 2.0.1. It will be released by next week. If we release it, I will leave a reply!

---

<div class="post-metadata">

**Author:** ![brownsoo](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/brownsoo/32/793_2.png) [@brownsoo](https://community.sendbird.com/u/brownsoo)\
**Post date:** [January 7, 2021, 3:50am UTC](https://community.sendbird.com/t/error-in-android-gradle-plugin-4-1-1/1530/4 "2021-01-07T03:50:00Z")

</div>

Thanks for fast action!!  
I am waiting…

---

<div class="post-metadata">

**Author:** ![Doo\_Rim](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/doo_rim/32/239_2.png) [@Doo\_Rim](https://community.sendbird.com/u/Doo_Rim)\
**Post date:** [January 11, 2021, 10:34am UTC](https://community.sendbird.com/t/error-in-android-gradle-plugin-4-1-1/1530/5 "2021-01-11T10:34:33Z")

</div>

@brownsoo We released V2.0.1.  
Please update UIKit.

---

<div class="post-metadata">

**Author:** ![brownsoo](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/brownsoo/32/793_2.png) [@brownsoo](https://community.sendbird.com/u/brownsoo)\
**Post date:** [January 11, 2021, 1:45pm UTC](https://community.sendbird.com/t/error-in-android-gradle-plugin-4-1-1/1530/6 "2021-01-11T13:45:03Z")

</div>

I applied but there are 2 binding errors. If you want to see our project, I can send you the sources for debugging.

```
Found 2 data binding error(s)
==================================================
Cannot find a setter for <androidx.appcompat.widget.AppCompatImageView bind:draw_user_profile> that accepts parameter type 'com.sendbird.android.BaseMessage'

If a binding adapter provides the setter, check that the adapter is annotated correctly and that the parameter type matches.

==================================================
Cannot find a setter for <androidx.appcompat.widget.AppCompatTextView bind:draw_message> that accepts parameter type 'com.sendbird.android.BaseMessage'

If a binding adapter provides the setter, check that the adapter is annotated correctly and that the parameter type matches.
```

---

<div class="post-metadata">

**Author:** ![Doo\_Rim](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/doo_rim/32/239_2.png) [@Doo\_Rim](https://community.sendbird.com/u/Doo_Rim)\
**Post date:** [January 11, 2021, 11:08pm UTC](https://community.sendbird.com/t/error-in-android-gradle-plugin-4-1-1/1530/7 "2021-01-11T23:08:12Z")

</div>

@brownsoo  
Did you implement your custom message type?!  
We have a break change for the message binding ways in V2.x.x.

Could you try to execute our UIKit sample?!

---

<div class="post-metadata">

**Author:** ![brownsoo](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/brownsoo/32/793_2.png) [@brownsoo](https://community.sendbird.com/u/brownsoo)\
**Post date:** [January 12, 2021, 4:11am UTC](https://community.sendbird.com/t/error-in-android-gradle-plugin-4-1-1/1530/8 "2021-01-12T04:11:57Z")

</div>

Yes I uses custom message channel list adapter. I know that reason. I added the binding adapters in my app module, and than these are resolved. I am mistake.

thank you.

* * *

I just upgraded UIKit sample but that is not works. There are also need the binding adapters in sample app module. You can see the trial.  
[forked UIKit sample](https://github.com/brownsoo/SendBird-Android/tree/issue-uikit2)

---

<div class="post-metadata">

**Author:** ![Doo\_Rim](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/doo_rim/32/239_2.png) [@Doo\_Rim](https://community.sendbird.com/u/Doo_Rim)\
**Post date:** [January 12, 2021, 4:58am UTC](https://community.sendbird.com/t/error-in-android-gradle-plugin-4-1-1/1530/9 "2021-01-12T04:58:17Z")

</div>

We will update our custom sample! Thank you!

---

<div class="post-metadata">

**Author:** ![Christian\_Nikolaj\_Th](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/christian_nikolaj_th/32/1034_2.png) [@Christian\_Nikolaj\_Th](https://community.sendbird.com/u/Christian_Nikolaj_Th)\
**Post date:** [March 4, 2021, 3:05pm UTC](https://community.sendbird.com/t/error-in-android-gradle-plugin-4-1-1/1530/10 "2021-03-04T15:05:53Z")

</div>

I also had this issue, but with Gradle Plugin 4.12. Updating to UIKit 2.0.2 solved the issue - thanks.

Suggestion: it would save devs a lot of sweat if you update the installation guide to suggest the latest release of your library here : [https://sendbird.com/docs/uikit/v1/android/getting-started/install-uikit#2-install-using-gradle](https://sendbird.com/docs/uikit/v1/android/getting-started/install-uikit#2-install-using-gradle)
