06-21-2013 01:25 PM
Creating a simple/demo apps natively under BB Z10 using the Momentics IDE and testing it out on the device works fine, but, now I am trying do the same with a simple java app. built for android is failing, while testing it on the device. This app. works fine using a android simulator, but fails testing it on the Z10 device.
Two things here,
1. It fails to create the debug tokens, when I tell it to use the debug tokens that is available in the device, it worked fine using the NDK under Momentics IDE. But fails for the Java android runtime.
For the above, I installed the latest eclipse and followed the procedure/instructions listed in the below link:
while installing the Android SDK, I selected both the latest Android SDK 4.2.2 API 17 and 2.3.3 API 10 with android support library in the extras and all if android sdk tools, everything got installed correctly including the ADT plugin for eclipse and the BB plugin for android development. tools. The app is built with Anroid 2.3.3 API 10 and my BB z10 device is running 10.1.0.2006 provided by my service provider.
Here is the error I get creating debug tokens:
"Error loading certificate: java.io.IOException: subject key, java.security.InvalidKeyException: Invalid EC key
2. Accepting this and continue executing with "BB Android launch", I get the below error:
[2013-06-21 12:41:38] Entering BBconnect()
[2013-06-21 12:41:49 - HelloWorld] Status ERROR: net.rim.ajde code=0 A network error occurred while communicating with the target. null
Any ideas, what is going on? looks like a simple error to me, definitely, someone may have come across this error?
any help is greatly apperciated, thanks!
06-24-2013 11:09 AM
I'll take a guess here and assume that you've got JDK7 installed. You'll need to switch your IDE's to use JDK6.