[rabbitmq-discuss] ConnectionFactory error on Android

Kamran Afridi muhammad.kamrana at gmail.com
Fri Apr 20 11:10:44 BST 2012


Hi,

01-09 19:06:55.754: E/AndroidRuntime(3896): FATAL EXCEPTION: main
01-09 19:06:55.754: E/AndroidRuntime(3896): java.lang.NoClassDefFoundError:
com.rabbitmq.client.ConnectionFactory
01-09 19:06:55.754: E/AndroidRuntime(3896): at
com.example.IConnectToRabbitMQ.connectToRabbitMQ(IConnectToRabbitMQ.java:62)
01-09 19:06:55.754: E/AndroidRuntime(3896): at
com.example.MessageConsumer.connectToRabbitMQ(MessageConsumer.java:65)
01-09 19:06:55.754: E/AndroidRuntime(3896): at
com.example.ActivityHome.onCreate(ActivityHome.java:30)

But I found the solution sometimes when we update our eclipse or Android
SDK we might face this problem. Though if we right-click “lib” ->
build-path -> add as source folder…. then hopefully the application won’t
crash.

Regards,
Kamran

On Fri, Apr 20, 2012 at 11:43 AM, Matthias Radestock
<matthias at rabbitmq.com>wrote:

> On 17/04/12 17:48, Kamran wrote:
>
>> When I check the logcat of android there it gives an error related
>> to connectionfactory? Is there something specific that I should look
>> for?
>>
>
> What error shows up on the android device? Also, check the server log for
> errors.
>
> Regards,
>
> Matthias.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120420/83f51816/attachment.htm>


More information about the rabbitmq-discuss mailing list