05-24-2013 10:59 PM
I have NDK v10.1 installed on my PC and I have successfully build an App that runs on Z10 and Q10. I want to now port this app to also run on PlayBook, however when I try to run my native app on PlayBook hardware I get the following message:
The application you are launching is built against a newer version of the Native SDK (10.1.0.1020) compared to your device version (184.108.40.2066). Using a newer Native SDK will cause issues when running and debugging your application. How would you like to proceed? [Cancel Launch] [Find matching SDK] [Continue]
When I try to find a matching SDK, nothing is found. If I Continue, the PlayBook app doesn't install and run on my PlayBook.
Is there any way to use the 10.1 NDK to build apps for the PlayBook? Or do I need to install NDK v2.1 on my PC and use it for PlayBook development?
Is it okay to have 2 versions of the NDK installed on the same PC (v2.1 and 10.1) ?
Solved! Go to Solution.
05-25-2013 08:49 AM
You need to install the 2.1 SDK in order to build for the playbook.
What I ended up with is the 10.x IDE with a drop down box towards the top that lets you choose which version of the compiler to use. And then you can switch back and forth.
Also, although you can't use the 10.x to build for the playbook, you can use the 2.1 to build for BB10. You have to be careful with this as you obviously can't use any 10.x api's when you do it this way.
This is the way I've done it. My biggest problem was with dialog boxes. as they don't allow for all of the options for sizing in 10.x as they did in 2.1.
Be sure to test if you go down this route of using 2.1 for 10.x.
Naturally, the alternative is to manage 2 different source codes.
05-26-2013 08:56 AM
Did you install the 2.1 NDK into the same directory as the 10.1 NDK? Or do they have to be in separate directories so that files don't get over written?