Question

I am trying to get this code working: http://quickblox.com/developers/Android_XMPP_Chat_Sample Even though the library is present in the project folder. I have already tried to clean and build the project but that does not work. No jar is provided by Quickblox in the sample. It is just present in the folder.
Both these cannot be resolved:

import com.handmark.pulltorefresh.library.PullToRefreshBase;
import com.handmark.pulltorefresh.library.PullToRefreshListView;

enter image description here

Was it helpful?

Solution

The PullToRefresh library is a Library Project. These Library Projects need to be imported projects into the workspace, and then your app must identify the project as a library to reference it.

Here's the instructions from the quickblox website on how to do this.

Here is another post explaining how to import these projects into your workspace: How to add a Library Project to a android project?

OTHER TIPS

Those step's are required : (Jar file should be included!) From http://quickblox.com/developers/Android_XMPP_Chat_Sample#Eclipse_IDE

Import “appcompat” lib project from /extras/android/support/v7

Configure appcompat and pull-to-refresh: Project->Properties->Android:

  • set Project Build Target 4.4.2
  • check “Is Library” should be set

Configure sample. Project->Properties->Android:

  • add pull-to-refresh and appcompat
  • set Project Build Target 4.4.2

Project->Properties->Java Build Path->Libraries, “Add External JARs…” /jar/quickblox-android-1.0.1.jar

Go to Order&Export tab and check quickblox-android-1.0.1.jar

Clean and rebuild project

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top