title: Custom fonts Array not found in Android Studio 3
body: <p>I'm using <strong>Android Studio 3 Stable</strong>.
  Following <a href="https://developer.android.com/topic/instant-apps/getting-started/index.html" rel="nofollow noreferrer">this</a></p>
  
  <p>tutorial i was creating a demo <strong>instant app</strong>. After finishing all the steps it was running in my emulator without any problem.
  Then i wanted to use custom fonts. I have set custom font for TextView from Layout Editor. <br><br>
  <strong>TextView XML:</strong> <br>
  `</p>
  
  <pre><code> &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Hello World!"
          android:fontFamily="@font/dancing_script"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintLeft_toLeftOf="parent"
          app:layout_constraintRight_toRightOf="parent"
          app:layout_constraintTop_toTopOf="parent" /&gt;
  </code></pre>
  
  <p>` <br>
  <strong>Font XML :</strong> </p>
  
  <pre><code>    &lt;font-family xmlns:app="http://schemas.android.com/apk/res-auto"
          app:fontProviderAuthority="com.google.android.gms.fonts"
          app:fontProviderPackage="com.google.android.gms"
          app:fontProviderQuery="Dancing Script"
          app:fontProviderCerts="@array/com_google_android_gms_fonts_certs"&gt;
  &lt;/font-family&gt;
  </code></pre>
  
  <p><br>
  <strong>Manifest</strong><br></p>
  
  <pre><code> manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.myfirstinstantapp.feature"&gt;
  
      &lt;application&gt;
          &lt;activity android:name=".MainActivity"&gt;
              &lt;intent-filter android:order="1"&gt;
                  &lt;action android:name="android.intent.action.VIEW" /&gt;
  
                  &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
  
                  &lt;data
                      android:host="myfirstinstantapp.example.com"
                      android:pathPattern="/hello"
                      android:scheme="https" /&gt;
              &lt;/intent-filter&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;meta-data
              android:name="preloaded_fonts"
              android:resource="@array/preloaded_fonts" /&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p><br>
  <strong>Folder Structure</strong><br>
  <a href="https://i.stack.imgur.com/PwyFW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PwyFW.png" alt="enter image description here"></a></p>
  
  <p><br>
  But When i try to build i get <strong>following error:</strong> <br></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Error:(52) resource array/preloaded_fonts (aka com.example.myfirstinstantapp:array/preloaded_fonts) not found.
  Error:(52) error: resource array/preloaded_fonts (aka com.example.myfirstinstantapp:array/preloaded_fonts) not found.
  Error:failed processing manifest.
  D:\Android\AndroidStudioProjects\MyFirstInstantApp\base\build\intermediates\manifests\full\feature\debug\AndroidManifest.xml
  Error:java.util.co`enter code here`ncurrent.ExecutionException: java.util.concurre`enter code here`nt.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
  Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
  Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
  Error:Execution failed for task ':base:processDebugFeatureResources'.
  &gt; Failed to execute aapt
  Information:BUILD FAILED in 2s
  Information:7 errors</code></pre>
  </div>
  </div>
  </p>
  
  <p>Am i missing something ?</p>