title: The app crashes when opening image_cropper in release mode
body: <p>My app keeps crashing when I try to open image cropper in release mode.</p>
  <p>I added everything in the <code>manifest</code> as directed in the <a href="https://pub.dev/packages/image_cropper" rel="nofollow noreferrer">documentation</a>:</p>
  <pre><code>&lt;activity
         android:name=&quot;com.yalantis.ucrop.UCropActivity&quot;
         android:screenOrientation=&quot;portrait&quot;
         android:theme=&quot;@style/Theme.AppCompat.Light.NoActionBar&quot;/&gt;
  </code></pre>
  <p>How I use it:</p>
  <pre><code>Future&lt;void&gt; _cropImage(File imageFile, int index) async {
  if(imageFile != null){
    File cropped = await ImageCropper.cropImage(
        sourcePath: imageFile.path,
        aspectRatio: CropAspectRatio(ratioX: 1.0, ratioY: 1.0),
        compressQuality: 100,
        maxHeight: height,
        maxWidth: width,
        androidUiSettings: AndroidUiSettings(
          toolbarTitle: &quot;&quot;,
          toolbarWidgetColor: Colors.black.withOpacity(0.6),
          statusBarColor: Colors.black,
          activeControlsWidgetColor: Colors.white,
        )
    );
  
    setState(() {
      compress(cropped, index);
    });
  }}
  </code></pre>
  <p>As soon as I start the app in release mode, the following error message appears:</p>
  <pre><code>E/AndroidRuntime(13412): FATAL EXCEPTION: main
  
  E/AndroidRuntime(13412): Process: com.packages.xxx, PID: 13412
  
  E/AndroidRuntime(13412): java.lang.NoSuchMethodError: No static method 
  asAttributeSet(Li/a/a/a;)Landroid/util/AttributeSet; in class Landroid/util/Xml; or its super classes (declaration of 'android.util.Xml' appears in /system/framework/framework.jar!classes3.dex)
  
  E/AndroidRuntime(13412):        at a.a.n.g.inflate(Unknown Source:21)
  
  E/AndroidRuntime(13412):        at com.yalantis.ucrop.UCropActivity.onCreateOptionsMenu(Unknown Source:6)
  
  E/AndroidRuntime(13412):        at android.app.Activity.onCreatePanelMenu(Activity.java:4212)
  
  E/AndroidRuntime(13412):        at androidx.fragment.app.d.onCreatePanelMenu(Unknown Source:2)
  
  E/AndroidRuntime(13412):        at a.a.n.i.onCreatePanelMenu(Unknown Source:2)
  
  E/AndroidRuntime(13412):        at androidx.appcompat.app.g$j.onCreatePanelMenu(Unknown Source:8)
  
  E/AndroidRuntime(13412):        at a.a.n.i.onCreatePanelMenu(Unknown Source:2)
  
  E/AndroidRuntime(13412):        at androidx.appcompat.app.j.m(Unknown Source:25)
  
  E/AndroidRuntime(13412):        at androidx.appcompat.app.j$a.run(Unknown Source:2)
  
  E/AndroidRuntime(13412):        at android.os.Handler.handleCallback(Handler.java:938)
  
  E/AndroidRuntime(13412):        at android.os.Handler.dispatchMessage(Handler.java:99)
  
  E/AndroidRuntime(13412):        at android.os.Looper.loop(Looper.java:233)
  
  E/AndroidRuntime(13412):        at android.app.ActivityThread.main(ActivityThread.java:7959)
  
  E/AndroidRuntime(13412):        at java.lang.reflect.Method.invoke(Native Method)
  
  E/AndroidRuntime(13412):        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
  
  E/AndroidRuntime(13412):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
  </code></pre>
  <p>How can I fix this?. Thanks.</p>