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

java.lang.ClassNotFoundException: Didn't find class "android.support.v7.widget.RecyclerView" on path: DexPathList

9 Answers 224 Views
ListView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Randy
Top achievements
Rank 1
Randy asked on 12 Mar 2017, 12:21 AM

Hello,

I have incorporated the radListView into my app.  It works great on the geny emulator but when I build the app and install on my phone I get the following error when I load the page with the listview

 

Error: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/widget/RecyclerView;

....

Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.widget.RecyclerView" on path: DexPathLis

.....

File: "file:///data/data/com.myapp.nativescript/files/app/tns_modules/nativescript-telerik-ui/listview/listview.js, line: 168, column: 24

.....

StackTrace: 
Frame: function:'RadListView._createUI', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/nativescript-telerik-ui/listview/listview.js', line: 168, column: 25
Frame: function:'View._onContextChanged', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/core/view.js', line: 202, column: 14
Frame: function:'View._onAttached', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/core/view.js', line: 153, column: 14
Frame: function:'eachChild', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/core/view.js', line: 158, column: 23
Frame: function:'LayoutBase._eachChildView', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/layouts/layout-base-common.js', line: 144, column: 22
Frame: function:'View._onAttached', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/core/view.js', line: 165, column: 18
Frame: function:'eachChild', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/core/view.js', line: 158, column: 23
Frame: function:'ContentView._eachChildView', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/content-view/content-view.js', line: 65, column: 13
Frame: function:'View._onAttached', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/core/view.js', line: 165, column: 18
Frame: function:'eachChild', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/core/view.js', line: 158, column: 23
Frame: function:'LayoutBase._eachChildView', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/layouts/layout-base-common.js', line: 144, column: 22
Frame: function:'View._onAttached', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/core/view.js', line: 165, column: 18
Frame: function:'eachChild', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/core/view.js', line: 158, column: 23
Frame: function:'ContentView._eachChildView', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/content-view/content-view.js', line: 65, column: 13
Frame: function:'Page._eachChildView', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/page/page-common.js', line: 317, column: 41
Frame: function:'View._onAttached', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/core/view.js', line: 165, column: 18
Frame: function:'View._addViewCore', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/core/view.js', line: 126, column: 18
Frame: function:'View._addView', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/core/view-common.js', line: 1163, column: 14
Frame: function:'onFragmentShown', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 40, column: 11
Frame: function:'FragmentCallbacksImplementation.onCreateView', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 612, column: 13
Frame: function:'FragmentClass.onCreateView', file:'file:///data/data/com.myapp.nativescript/files/app/tns_modules/tns-core-modules/ui/frame/fragment.js', line: 23, column: 38

 

Any ideas?

 

 

 

9 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 13 Mar 2017, 08:30 AM
Hi,

Thanks for writing and for the provided stack trace. It seems rather strange for your app to work on an emulator but not on a real device. Can you share with us some details on the API Level of the device and the API Level of the emulator you are running on. It seems that the AppCompat library's types are missing.

Regards,
Deyan
Telerik by Progress
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
0
Randy
Top achievements
Rank 1
answered on 15 Mar 2017, 01:34 PM

My device reads API Level 25  and the emulator reads API Level 24

-Randy

0
Deyan
Telerik team
answered on 16 Mar 2017, 09:39 AM
Hello,

Thanks for writing back.

Can you please ZIP your project and send it to us for further investigation?
You can do that by opening a new support ticket and attaching your ZIP archive there.

Regards,
Deyan
Telerik by Progress
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
0
Randy
Top achievements
Rank 1
answered on 17 Mar 2017, 06:48 PM
Do you want me to include the node_modules and platforms folder?
0
Deyan
Telerik team
answered on 20 Mar 2017, 11:49 AM
Hello,

Yes - that would be useful. If our system doesn't allow you to upload the ZIP, you may use Dropbox or Google Drive and paste me the link here.

Thanks a lot.

Regards,
Deyan
Telerik by Progress
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
0
Randy
Top achievements
Rank 1
answered on 22 Mar 2017, 10:42 AM
Cool.  I will post this evening.
0
Deyan
Telerik team
answered on 23 Mar 2017, 08:30 AM
Hi,

This is a quick follow-up to inform you that we have tried to reproduce the issue on our side without success. Can you please try deleting the `platforms` folder of your app and rebuilding?

Anyway, a ZIP of your whole project would be helpful.

Regards,
Deyan
Telerik by Progress
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
0
Randy
Top achievements
Rank 1
answered on 24 Mar 2017, 12:27 AM

Ticket Submitted.  Thank You for your help.

Randy

0
Deyan
Telerik team
answered on 24 Mar 2017, 08:44 AM
Hello Randy,

A couple of our customers reported similar issues and they all came down to a missing RecyclerView reference in the Android's platform build.gradle file. Can you take a look at this file, see if there's is a commented RecyclerView reference and uncomment it? This should resolve the issue.

Regards,
Deyan
Telerik by Progress
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
Tags
ListView
Asked by
Randy
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Randy
Top achievements
Rank 1
Share this question
or