title: Android Emoji App Compat Text View not rendering some emojis such as
body: <p>I'm trying to use the <a href="https://developer.android.com/reference/kotlin/androidx/emoji/widget/EmojiAppCompatTextView" rel="nofollow noreferrer">Emoji App Compat Text View</a> but I don't understand what I'm doing wrong on my implementation.</p>
  <p>I'm trying to render these three emojis <code></code>, it works fine on Android Q, but it is not working on Android Lollipop, take a look at the screenshots:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th style="text-align: center;">Screenshot on Android Q</th>
  <th style="text-align: center;">Screenshot on Android Lollipop</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td style="text-align: center;"><a href="https://i.stack.imgur.com/Ybdjd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ybdjd.png" alt="Screenshot on Android Q" /></a></td>
  <td style="text-align: center;"><a href="https://i.stack.imgur.com/S5uru.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S5uru.png" alt="Screenshot on Android Lollipop" /></a></td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>As far as I understood the idea of using the Emoji App Compat Text View is to get the emoji set working fine from android API 21 and later, so please take a look at my implementation, is there anything missing, wrong or maybe Emoji App Compat Text View does not work as I thought?</p>
  <p>You can get the <a href="https://github.com/ademar111190/SOQ-EmojiAppCompatTextView" rel="nofollow noreferrer">complete code here at github</a> or read the main parts below:</p>
  <p>Application's onCreate, set up the EmojiCompat, I'm not using the bundled version:</p>
  <pre class="lang-kotlin prettyprint-override"><code>EmojiCompat.init(
      FontRequestEmojiCompatConfig(
          this,
          FontRequest(
              &quot;com.google.android.gms.fonts&quot;,
              &quot;com.google.android.gms&quot;,
              &quot;Noto Color Emoji Compat&quot;,
              R.array.com_google_android_gms_fonts_certs
          )
      ).setReplaceAll(true)
      // I did remove the callback for brevity, but I got the `onInitialized` called.
  )
  </code></pre>
  <p>Activity, just set the layout, get the View and set the text:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;androidx.constraintlayout.widget.ConstraintLayout 
  …
      &lt;androidx.emoji.widget.EmojiAppCompatTextView
          android:id=&quot;@+id/text_view&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:textSize=&quot;60sp&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
          app:layout_constraintRight_toRightOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt;
  …
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  <pre class="lang-kotlin prettyprint-override"><code>class MainActivity : AppCompatActivity() {
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_main)
          findViewById&lt;EmojiAppCompatTextView&gt;(R.id.text_view).text = getString(R.string.three_emojis)
      }
  }
  </code></pre>
  <p>Strings</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;string name=&quot;three_emojis&quot;&gt;&lt;/string&gt;
  </code></pre>
  <p>gradle</p>
  <pre><code>plugins {
      id &quot;com.android.application&quot;
      id &quot;kotlin-android&quot;
  }
  
  android {
      compileSdkVersion 29
      buildToolsVersion &quot;30.0.2&quot;
  …
      defaultConfig {
          minSdkVersion 21
          targetSdkVersion 29
  …
      }
  …
  }
  
  dependencies {
      implementation &quot;androidx.emoji:emoji-appcompat:1.1.0&quot;
      implementation &quot;androidx.emoji:emoji:1.1.0&quot;
      implementation &quot;org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version&quot;
      implementation &quot;androidx.appcompat:appcompat:1.2.0&quot;
      implementation &quot;androidx.constraintlayout:constraintlayout:2.0.4&quot;
      implementation &quot;androidx.core:core-ktx:1.3.2&quot;
      implementation &quot;com.google.android.material:material:1.2.1&quot;
  }
  </code></pre>