title: app crash while using firebase phone Auth in android
body: <p>This question is not similar to any of the others. I've already tried many solutions from <a href="https://stackoverflow.com/questions/49237350/app-crashes-with-firebase-phone-auth">App crashes with firebase phone auth</a>, <a href="https://stackoverflow.com/questions/64720643/error-while-geting-firebase-phone-auth-otp">error while getting firebase phone auth OTP</a></p>
  <p><a href="https://stackoverflow.com/questions/50289788/android-app-crashes-on-firebase-phone-authentication">Android app crashes on firebase phone authentication</a>, but nothing works.</p>
  <p>In my flutter app(android) I am using firebase phone authentication. When I call the 'verifyPhoneNumber' method of firebase to send OTP, my app getting crashes and exits leaving no error message.</p>
  <p>Here's my code</p>
  <pre><code> final FirebaseAuth _auth = FirebaseAuth.instance;
   Future sendOTP(String mobNo, BuildContext context, UserData _userData) async {
   try {
    _auth.verifyPhoneNumber(
        phoneNumber: mobNo,
        verificationCompleted: (val) {
          print(&quot;verification completed val = $val&quot;);
        },
        verificationFailed: (val) {
          print(&quot;verification failed val = $val&quot;);
        },
        codeSent: (String verificationId, [int forceResendingToken]) {
          print(&quot;code sent to $mobNo&quot;);
          Navigator.pushNamed(context, '/get_otp', arguments: {
            'verificationId': verificationId,
            'UserData': _userData,
          });
        },
        codeAutoRetrievalTimeout: (val) {
          print(&quot;code auto retrieval timeout val = $val&quot;);
        });
  } catch (e) {
    print(&quot;auth error = $e&quot;);
    }
  }
  </code></pre>
  <p>I added my SHA-1, SHA-256 certificates in my firebase project, I tried changing versions of firebase_auth, fiebase_core. But, nothing works. I tried adding breakpoints in all the lines. The app exits when the reaches this line.
  <code>_auth.verifyPhoneNumber(</code> It is not proceeding further.
  Please help me to solve this!!</p>
  <p>Here's my debug console log</p>
  <pre><code>E/AndroidRuntime(17712): java.lang.NoClassDefFoundError: Failed resolution of: 
  Landroidx/browser/customtabs/CustomTabsIntent$Builder;
  E/AndroidRuntime(17712):    at                     
  com.google.firebase.auth.internal.RecaptchaActivity.zza(com.google.firebase:firebase- 
  auth@@20.0.2:13)
  E/AndroidRuntime(17712):    at com.google.android.gms.internal.firebase-auth- 
  api.zztw.zzb(com.google.firebase:firebase-auth@@20.0.2:7)
  E/AndroidRuntime(17712):    at com.google.android.gms.internal.firebase-auth- 
  api.zztw.onPostExecute(Unknown Source:2)
  E/AndroidRuntime(17712):    at android.os.AsyncTask.finish(AsyncTask.java:755)
  E/AndroidRuntime(17712):    at android.os.AsyncTask.access$900(AsyncTask.java:192)
  E/AndroidRuntime(17712):    at 
  android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:772)
  E/AndroidRuntime(17712):    at android.os.Handler.dispatchMessage(Handler.java:107)
  E/AndroidRuntime(17712):    at android.os.Looper.loop(Looper.java:228)
  E/AndroidRuntime(17712):    at 
  android.app.ActivityThread.main(ActivityThread.java:7826)
  E/AndroidRuntime(17712):    at java.lang.reflect.Method.invoke(Native Method)
  E/AndroidRuntime(17712):    at 
  com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
  E/AndroidRuntime(17712):    at 
  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:981)
  E/AndroidRuntime(17712): Caused by: java.lang.ClassNotFoundException: Didn't find 
  class &quot;androidx.browser.customtabs.CustomTabsIntent$Builder&quot; on path: DexPathList[[zip 
  file &quot;/data/app/com.creda.location_project- 
  1fyv3Q9ek4vLZKMcRkGyDQ==/base.apk&quot;],nativeLibraryDirectories= 
  [/data/app/com.creda.location_project-1fyv3Q9ek4vLZKMcRkGyDQ==/lib/arm64, 
  /data/app/com.creda.location_project-1fyv3Q9ek4vLZKMcRkGyDQ==/base.apk!/lib/arm64-v8a, 
  /system/lib64, /system/product/lib64]]
  </code></pre>