nstudio / nativescript-cardview

:diamonds: :clubs: NativeScript widget for Material Design CardView
MIT License
282 stars 51 forks source link

CardView is not a constructor error #86

Closed anaszgh closed 6 years ago

anaszgh commented 6 years ago

Hello,

I'm using CardView with TNS 4 & Angular,

but i'm receiving this error upon initializing the page that has the CardView screenshot_1527162496

bradmartin commented 6 years ago

Looks like a build issue that the library did not get bundled. Make sure to give this a read: https://bradmartin.net/2016/07/20/ahhh-this-nativescript-plugin-doesnt-work/_

Vetm commented 6 years ago

Having the exact same problem as OP even after following the steps from your link.

bradmartin commented 6 years ago

Make sure to update your android build tools and support libs. I prefer android studio to manage the SDKs but can open the sdk manager via terminal also.

anaszgh commented 6 years ago

@bradmartin Thanks, that fixed it.

Vetm commented 6 years ago

That didn't do it for me. Using the nativescript angular template and newest Android SDK. EDIT: Okay, this did the trick.

carloscabral commented 6 years ago

Hi, @bradmartin. I'm facing this error in NS Playground site. It works fine for iOS only. Any thoughts?

bradmartin commented 6 years ago

Don't know if adding native deps is supported by the playground. I would assume no for security reasons and technical challenges of allowing libs to be pulled in at random by adding a dependency to the playground project which would need to be compiled. iOS is all in JS so no native deps. @carloscabral hope that helps and makes sense 😄

carloscabral commented 6 years ago

It does make sense. Thank you, @bradmartin.

marcossaore commented 5 years ago

It does make sense. Thank you, @bradmartin.

Fala @carloscabral , você conseguiu fazer isso funcionar no NS playground?