Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Runtime Development

Reply
New Contributor
Posts: 7
Registered: ‎04-20-2011
My Device: Bold
My Carrier: SFR
Accepted Solution

Pb converting to BAR: ClassNotFoundException

Hi all,

 

I'm struggling with the build process to port one of my company's android app into the Playbook's.

 

When I launch my app into the simulator, it crashes instantanously with the ClassNotFoundException.

The exception states that the runtime can't find the Main Activity class.

 

Now, my project relies on several (lib) projects.

 

With another project that also uses lots of libs, the app shows up just fine. The only difference I can see is that in the first project, the Main activity is located in a lib and not in the project itself.

 

I've tried all possiibilities in order to somehow force the inclusion of .class files, but I think this is needless since the Android version runs just fine.

 

Any help would be much appreciated.

 

Regards,

Emmanuel

Contributor
Posts: 11
Registered: ‎01-06-2012
My Device: Curve 8520
My Carrier: Generic

Re: Pb converting to BAR: ClassNotFoundException

increase version code and version name of your product...clean project then rebuild
New Contributor
Posts: 7
Registered: ‎04-20-2011
My Device: Bold
My Carrier: SFR

Re: Pb converting to BAR: ClassNotFoundException

Thanks but it didn't help.

 

I checked again and again and it seems that I accidently unchecked the "lib project" for my lib project.

Checking it back would allow the Runtime to find all classes... well for what I saw because the emulator is not so usable yet.

 

Thanks anyway.