Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8870639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:47:13+00:00 2026-06-14T17:47:13+00:00

I am trying to connect my android client to gmail server using asmack android

  • 0

I am trying to connect my android client to gmail server using asmack android jar but I am getting a runtime error NoClassDefFoundError on ConnectionConfiguration. I am using the following code

ConnectionConfiguration config = new ConnectionConfiguration("talk.google.com",5222,"gmail.com");
    XMPPConnection connection= new XMPPConnection(config);

Even I use only XMPPConnection connection= new XMPPConnection("gmail.com"); it still throws NoClassDefFoundError on XMPPConnection.
asmack-android-5.jar file in the project. I have even tried to run this application using different smack jars but could not succeed. There is no build error but a runtime error and visible in eclipse DDMS. By da way I am using eclipse.

I have read the other thread but still not able to solve the problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T17:47:14+00:00Added an answer on June 14, 2026 at 5:47 pm

    Make sure you have a folder in your project called libs and that the smack jar is in there. Android will automatically load libraries from the libs folder. The jars will automatically appear under “Android Dependencies” in your Eclipse project after refreshing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to connect to a FTP using Apaches FTPSClient but I keep getting
Im trying to connect mysql with android but it throw me an error. Error
I'm trying to get a PC client to connect to an Android server. This
I'm trying to start a very simple jWebSocket Client on Android and connect it
I am trying to connect to a MySQL Server using JDBC tool in java
I am trying to connect to a server from my app using the following
Getting the javax.net.ssl.SSLPeerUnverifiedException: No peer certificate error in an emulator running Android 2.3 but
I've been trying for days now to create an application client server,both on android,running
I am trying to establish a connection between Android Client and C# Server ..
I am trying to connect to MySQL using PHP from an Android Device. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.