This is a migrated thread and some comments may be shown as answers.

Java.Lang.NoClassDefFoundError While init the Calendar Control

4 Answers 21 Views
This is a migrated thread and some comments may be shown as answers.
YUANTAO
Top achievements
Rank 1
YUANTAO asked on 25 Jan 2018, 06:55 AM

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?

4 Answers, 1 is accepted

Sort by
0
YUANTAO
Top achievements
Rank 1
answered on 25 Jan 2018, 02:08 PM

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.

0
Stefan Nenchev
Telerik team
answered on 29 Jan 2018, 12:56 PM
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
0
Accepted
Stefan Nenchev
Telerik team
answered on 31 Jan 2018, 01:11 PM
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
0
YUANTAO
Top achievements
Rank 1
answered on 07 Feb 2018, 08:14 AM
Thank you very much.
Asked by
YUANTAO
Top achievements
Rank 1
Answers by
YUANTAO
Top achievements
Rank 1
Stefan Nenchev
Telerik team
Share this question
or