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™ Development

Posts: 1
Registered: ‎10-29-2013
My Device: BlackBerry Z10
My Carrier: Wd
Accepted Solution

java.lang.NoClassDefFoundError: com.androidquery.AQuery

[ Edited ]

Hi everybody, i have some trouble converting my app from Android to Blackberry (10.2)


I use some external libraries to load asynchronously some images in a simple list: android-query


The app run and works fine until i call 


AQuery aq = new AQuery(v);


at this time I got this exception:


10-28 12:58:44.247: E/AndroidRuntime(81154176): FATAL EXCEPTION: main

10-28 12:58:44.247: E/AndroidRuntime(81154176): java.lang.NoClassDefFoundError: com.androidquery.AQuery

10-28 12:58:44.247: E/AndroidRuntime(81154176): at com.android.PrimoPianoAdapter.getView(PrimoPianoAdapter.java:92)


10-28 13:00:33.926: E/dalvikvm(86839498): Could not find class 'com.androidquery.AQuery', referenced from method com.android.PrimoPianoAdapter.getView


While this works pretty fine in Android, Blackberry seem not recognize the external libraries containing the Aquery class


I got also a similar problem using a ViewPager, an object of Android support libraries: “android.support.v4”


10-28 13:38:10.245: E/AndroidRuntime(103928021): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.PagerContainer" on path: /data/app/com.android-1.apk


(PagerContainer is a class using a ViewPager inside)


I need to make a particular process for include external libraries in my app?


I'm deploying on a Z10 with Blackberry v10.2


Sorry for my bad english, and thanks everyone for your help Smiley Happy

Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: java.lang.NoClassDefFoundError: com.androidquery.AQuery

Hey fmei,


If you reference our Unsupported Software Features for the Android Runtime on BlackBerry 10, you'll see that (unfortunately) all add-on libraries are currently not supported.



Justin Jasmann | Android Application Development Consultant
Developer Relations