Critical error in QML, module 'bb.data' is not installed, the application will not start

Hello

I'm trying to do something similar to the example here:

https://developer.BlackBerry.com/Cascades/reference/bb__data__xmldataaccess.html

I learned to expect problems with the QML preview, but this error occurs when you try to launch the application on my device of DevAlpha!  The exact errors are:

Critical: bb::cascades::QmlDocument: error when loading QML from:   QUrl( "file:///apps/com.example.rim/native/assets//main.qml" )
Critical:   --- errors:  (file:///apps/com.example.rim/native/assets//main.qml:3:1: module "bb.data" is not installed
    import bb.data 1.0
    ^)
Critical: bb::cascades::QmlDocument:createRootObject document is not loaded or has errors, can't create root

Note that I added the lbbdata - for the LIBS in my .pro file, so there should be no reason why the app cannont find bb.data!  Has anyone else seen this problem or found a solution?  It is essentially blocking any progress on my app!

Thank you

Nick

try to including this line in your hand:

BB::data:ataSource::registerQmlTypes();

the notes say that this has been deprecated in version gold but it doesn't seem to be the case... I created a new project using the sdk of gold and had the same problem you did if I used a data source class above the fixed line!

false documents:

https://developer.BlackBerry.com/Cascades/documentation/dev/upgrading/index.html

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • How do I delete the messages in the MOOD

    I use Windows 8 and I want to delete my mood message, how can I do? There is no x above message to delete. Thank you

  • How to get the brands of ink of my laptop screen?

    Hello Can someone tell me how to get the brands of ink of my laptop screen I tried everything that's happening we have you had twins boys lol

  • My computer shuts down randomly

    Original title: my computer turns off suddenly last night. When I tried to reboot, it began as he would start right to the top as usual, but when I open a session, you stop again. This time I gave a few minutes and tried again. He started upward, and

  • Unable to display jpeg files

    Having difficulties to view jpg files I have a jpg file which appears as a black square, until it is in the trash then you can see the picture, but it is not visible once it is restored

  • When you open the attachment get application not found message

    When you open a web address of an email or a box announces a sign comes up and says application not foundI have no CEF put viruses in one day everything worked before