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

Android Crop Image Issue.

$
0
0

Hi, I have Working on Crop Image process in xamarin forms. I have created Renderer for both ios and android. in ios Crop image functionality is working fine, but i have facing problem in android when "SetContentView(Resource.Layout.CropImage);" . it show exception

Java.Lang.RuntimeException: Unable to start activity ComponentInfo{SocialPhoto.SocialPhoto/md5c84db53735a523929a80e918f79c4277.CropImage}: android.view.InflateException: Binary XML file line #1: Error inflating class socialphoto.android.CropImageView
at --- End of managed exception stack trace ---
at java.lang.RuntimeException: Unable to start activity ComponentInfo{SocialPhoto.SocialPhoto/md5c84db53735a523929a80e918f79c4277.CropImage}: android.view.InflateException: Binary XML file line #1: Error inflating class socialphoto.android.CropImageView
at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1968)
at at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1993)
at at android.app.ActivityThread.access$600(ActivityThread.java:127)
at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1159)
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:4507)
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:978)
at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
at at dalvik.system.NativeStart.main(Native Method)
at Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class socialphoto.android.CropImageView
at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:691)
at at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
at at android.view.LayoutInflater.rInflate(LayoutInflater.java:742)
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:272)
at at android.app.Activity.setContentView(Activity.java:1835)
at at md5c84db53735a523929a80e918f79c4277.CropImage.n_onCreate(Native Method)
at at md5c84db53735a523929a80e918f79c4277.CropImage.onCreate(CropImage.java:29)
at at android.app.Activity.performCreate(Activity.java:4469)
at at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1052)
at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1932)
at ... 11 more
at Caused by: java.lang.ClassNotFoundException: socialphoto.android.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:680)
at ... 23 more

also in CropImage.axml show me error

image

I already update Xamarin studio. Xamarin Studio Version is 5.4.6(build 5), and SDK Tool is 24.3.4

Please help
Thanks


Viewing all articles
Browse latest Browse all 75885

Trending Articles



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