I am trying to open gallery in android to pick image and set as profile picture in unity game.
I have written the java code by following this link android pick images from gallery
Called above code from Unity c#, gallery opening but when I picked image the its crashing instantly, when looked on the logs in logcat then there was a message
java.lang.NoSuchMethodError: No static method checkSelfPermission(Landroid/content/Context;Ljava/lang/String;)I in class Landroid/support/v4/content/ContextCompat; or its super classes (declaration of 'android.support.v4.content.ContextCompat' appears in .....
I am sure there is android-support-v4.jar file in my Plugins/Android folder in unity3d.
Any recommendation ??