Java.Lang.NoClassDefFoundError While init the Calendar Control

5 posts, 1 answers
  1. YUANTAO
    YUANTAO avatar
    6 posts
    Member since:
    Sep 2010

    Posted 25 Jan 2018 Link to this post

    Hi, here is the log:

    Java.Lang.NoClassDefFoundError: Failed resolution of: Lcom/telerik/widget/calendar/R$dimen; ---> Java.Lang.ClassNotFoundException: Didn't find class "com.telerik.widget.calendar.R$dimen" on path: DexPathList[[zip file "/data/app/TelerikXamarinApp3.Android-1/base.apk"],nativeLibraryDirectories=[/data/app/TelerikXamarinApp3.Android-1/lib/arm, /system/fake-libs, /data/app/TelerikXamarinApp3.Android-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]

     

    And the same problem occurs when I tap the ListView and maybe both in the other control, It looks like the JNI can not find the java telerik library.

    Could some one help me?

  2. YUANTAO
    YUANTAO avatar
    6 posts
    Member since:
    Sep 2010

    Posted 25 Jan 2018 Link to this post

    And I find the exception occurs when the stack trace looks like this:

    JNI RegisterNativeMethods: attempt to register 0 native methods for md5dddaf95de93343db08fc4c7d084fbbd7.AndroidRendererBase_2
    Unhandled Exception:

    It may go wrong when the JNI register the native methods by swith the dll to the jar, In other words the dll may be wrong.

  3. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    665 posts

    Posted 29 Jan 2018 Link to this post

    Hello,

    We have managed to replicate the first exception when creating a brand new project and simply adding a RadCalendar. Actually, after rebuilding the project a couple of times the issue got fixed. Furthermore, I have managed to observe the exception when creating a project through the "Telerik Xamarin UI Application" template. When creating a default Xamarin.Forms template and adding references to the Telerik libraries - no issues are observed. Could you provide more information on which approach you have taken or maybe you are adding the controls in an already existing app? In the meantime, we will investigate the issue further and I will update the thread once we have more information.

    Have a great week.

    Regards,
    Stefan Nenchev
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  4. Answer
    Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    665 posts

    Posted 31 Jan 2018 Link to this post

    Hello,

    We have performed different tests and it seems that the exception appears quite intermittently. Actually, I was able to replicate it the first time I have tested but could not in several others projects after that. Some other colleagues from the team could not replicate the issue at all. Furthermore, after rebuilding the project which was initially problematic - the exception has disappeared. It seems that the issue is somehow related to the compilation of the application as you have originally suggested. However, it does not seem that there is something we can do about it as it looks like technology related behavior. Are you able to replicate the behavior consistently at your end? My advice would be to try cleaning/rebuilding(deleting the generated bin/obj folders might be required as well) the project a couple of times and event restart the solution. 
    We believe the issue might be related to any third party assemblies and not only those provided by the Telerik UI for Xamarin suite.

    Regards,
    Stefan Nenchev
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. YUANTAO
    YUANTAO avatar
    6 posts
    Member since:
    Sep 2010

    Posted 07 Feb 2018 in reply to Stefan Nenchev Link to this post

    Thank you very much.
Back to Top