Error running app : 'xxx multiply defined' - blackberry

What should one do to build blackberry apps for different OS versions? I've seen strange behavior when the same app runs well at 9700 OS 5.0, 9800 6.0 but gives an error at 9700 OS 6.0:
Error Starting jokes_480x360_: Class 'com.core.controller.LastMessages' multiply defined

A version of your application is already installed.
Remove it before installing.
Refer to this article in Blackberry Knowledge base

Related

net_rim_crypto error in blackberry

I'm developing a blackberry application to encode and decode some important information. For this I'm using the net.rim.device.api.crypto.* package in my application. I'm developing in blackberry OS 7.1 simulator but my blackberry device has OS 5.0 . When I try to download the app in my device, it gives me the following error:
"This application requires the following module, which is not installed: net_rim_crypto"
Also I'm not able to use the update site and install previous blackberry Os versions as the installation fails whenever I try to install it.
So, my question is mainly: How can I make my apps backward compatible in this case? Also, I'm not able to install and run my app (mentioned above) on the device. How can I accomplish this? Please help. Thanks in advance.
Please note that BlackBerry apps are not backward compatible, that is to say an app built on OS 7.0 will not work with OS 6.0 or OS 5.0. However, an same app built on OS 5.0 will work on handsets with OS 5.0+. Considering you are developing your app in OS 7.1 simulator indicates you are using BlackBerry JRE 7 and net_rim_crypto that you implemented seem to be missing in OS 5. In order to develop apps for OS 5, please work with JRE 5.

Regarding installation of iOS application in a real device

I've been fixing my application to run in real iOS device. I am using Xcode organizer. Now when i use it, it gives me this error:
xcode cannot find the software image to install this version
My iPhone version is: 6.0.1
My Xcode version is: 3.2.3
Any ideas how to solve this? I've already tried re-plugging the phone, I've also check some troubleshooting that other devs provided but it won't work.
Xcode 3.2.3 was released approximately when iOS 4 was out, so it won't support iOS 6.
Actual version is (at least) 4.5.1
Download it from the Mac App Store or here.

App not deploying on BlackBerry Simulator 4.2 with Eclipse 3.7

I am developing a BlackBerry application with Eclipse 3.7 (Indigo) and the BlackBerry Eclipse plugin. My application is not deploying on the BlackBerry Simulator 4.2.0.46.
If I close and clear the simulator and run the project, it is working but after all not deploying the app on the simulator.
BlackBerry OS 4.2 is very old. You really do not need to target OS 4.2. It is quite rare. Look at 4.5 or 4.6 as a minimum these days. WhatsApp, one of the most popular third party apps for BlackBerry, does not support anything earlier than OS 4.6.
In your question, you say "If I close and clear the simulator and run the project, it is working but after all not deploying the app on the simulator." When you say 'it is working' what do you mean? It seems it isn't working, as you want to deploy your app, so the wording there is confusing.

How to port BlackBerry Application from OS 5 to OS 6

I have developed application for BlackBerry OS 5 and now I want to port it to BB OS 6
While porting app, I am facing following issue --
I have added separate org.json.me package in OS 5 which is inbuilt in OS 6
When I add BB OS 6 library instead of OS 5 in the app it gives me error
Please suggest possible solution to run same app on both platforms
You can rename the package name of your json package to com.yourcompany.json instead of leaving it as org.json.me. This is a simple solution to your problem, there might be better solutions as well.
I have got answer to my question
I used BlackBerry OS 5 library to compile my application which is running excellent in OS 6 device also

I got net.rim.device.api.util.Arrays not found

when I run my application in blackberry that time it fire error
net.rim.device.api.util.Arrays not found
I think you are developing your app using target lower than OS 4.6 & net.rim.device.api.util.Arrays is supported since from OS 4.6

Resources