Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Binary XML file #1: Error inflating class Test.Droid.CropImageView

$
0
0

I'm using the following segment in a cropimage.axml and when I choose an image this error appears, does anyone know what this is about?

<view
            class="test.droid.CropImageView"
            android:id="@+id/image"
            android:background="#55000000"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_x="0dip"
            android:layout_y="0dip" />

Here's the error:

Android.Views.InflateException: Binary XML file line #1: Error inflating class Test.Droid.CropImageView
  at at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <IL 0x00011, 0x00047>
  at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (intptr,intptr,intptr,Android.Runtime.JValue[]) [0x00084] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/49a04b96/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:896
  at Android.App.Activity.SetContentView (int) [0x00070] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/49a04b96/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.App.Activity.cs:4763
  at Test.Droid.CropImage.OnCreate (Android.OS.Bundle) [0x00011] in c:\Users\...\Droid\Crop Image\CropImage.cs:61
  at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) [0x00011] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/49a04b96/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.App.Activity.cs:2380
  at at (wrapper dynamic-method) object.7756dc03-4057-4a60-9c45-4015effd7e95 (intptr,intptr,intptr) <IL 0x00017, 0x0001f>
  at --- End of managed exception stack trace ---
  at android.view.InflateException: Binary XML file line #1: Error inflating class Test.Droid.CropImageView
  at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:698)
  at at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
  at at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
  at at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
  at at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
  at at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
  at at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:256)
  at at android.app.Activity.setContentView(Activity.java:1867)
  at at test.droid.CropImage.n_onCreate(Native Method)
  at at test.droid.CropImage.onCreate(CropImage.java:29)
  at at android.app.Activity.performCreate(Activity.java:5008)
  at at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
  at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
  at at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
  at at android.app.ActivityThread.access$600(ActivityThread.java:130)
  at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
  at at android.os.Handler.dispatchMessage(Handler.java:99)
  at at android.os.Looper.loop(Looper.java:137)
  at at android.app.ActivityThread.main(ActivityThread.java:4745)
  at at java.lang.reflect.Method.invokeNative(Native Method)
  at at java.lang.reflect.Method.invoke(Method.java:511)
  at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
  at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
  at at dalvik.system.NativeStart.main(Native Method)
  at Caused by: java.lang.ClassNotFoundException: Test.Droid.CropImageView
  at at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
  at at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
  at at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
  at at android.view.LayoutInflater.createView(LayoutInflater.java:552)
  at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
  at ... 23 more

Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>