title: How to access AlertDialog's Message and Title in Unity Android Plugin Library? (I am using custom Font in AlertDialog)
body: <p>I want to use custom font in my android plugin library while using <code>AlertDialog</code>. Now here is the code to display <code>AlertDialog</code> using custom font.</p>
  <pre class="lang-cs prettyprint-override"><code>AlertDialog alertDialog = new AlertDialog.Builder(mainActivity).setTitle(&quot;Title&quot;).setMessage(&quot;Message Text&quot;).create();
  alertDialog.setButton(AlertDialog.BUTTON_NEGATIVE, &quot;Cancel&quot;, dialogOnClickListener);
  
  TextView alertMessageTextView = (TextView) alertDialog.findViewById(R.id.message); // I am getting error here
  TextView alertTitleTextView = (TextView) alertDialog.findViewById(android.R.id.title); // I am getting error here
  
  Typeface customFont = Typeface.createFromAsset(mainActivity.getResources().getAssets(), &quot;fonts/lobster-regular.ttf&quot;);
  
  alertMessageTextView.setTypeface(customFont);
  alertTitleTextView.setTypeface(customFont);
  
  alertDialog.show();
  </code></pre>
  <p>I am getting error:</p>
  <blockquote>
  <p><code>Error Unity AndroidJavaException: java.lang.NoSuchFieldError: No static field message of type I in class Lcom/cptech/pluginexample/R$id; or its superclasses (declaration of 'com.cptech.pluginexample.R$id' appears in base.apk)</code></p>
  </blockquote>
  <p>I have placed my font file in Unity's <strong>&quot;Assets/Resources&quot;</strong> Folder. Hence in final apk the font resources appear in <strong>&quot;assets/fonts&quot;</strong> folder. But however, this doesn't matter as, I can use custom font in other <code>TextView</code>(s).</p>
  <p>The only problem is that it cannot find AlertDialog's message and title, as I believe. Any help would be appreciated.</p>