1

I have imported the jar files. I placed a copy in the libs folder too (just in case). I am just trying to subscribe to a channel.

And I get the error: Could not find class 'com.pubnub.api.Pubnub', referenced from method com.melloto.pubnubtest.MainActivity.onCreate

No clue why the error is popping up. Thanks in advance

Screen Shot

searcot jabali
  • 438
  • 6
  • 16
  • 1
    Have you referenced this libs in your project as libraries? And why you still use eclipse? The default gradle setup would automaticly include all jars inside the libs folder. – Rene M. Oct 26 '15 at 14:00
  • Thank you Rene. I got it up and running I am using eclipse because I am kinda used to it... – searcot jabali Oct 26 '15 at 14:31

1 Answers1

2

You have to register all library jar files in your project settings. Otherwise eclipse and adt will not use them.

Rene M.
  • 2,660
  • 15
  • 24