Giter VIP home page Giter VIP logo

Comments (16)

soulfly avatar soulfly commented on July 28, 2024

Looks like you have an issue with Eclipse classpath, so app doesn't see QB SDK classes in runtime

from quickblox-android-sdk.

trietbui85 avatar trietbui85 commented on July 28, 2024

Hmmm, I also think about Eclipse classpath, so I do include 2 jars (quickblox-android-sdk-chat-2.0.jar and quickblox-android-sdk-core-2.0.jar) manually. Follow by http://quickblox.com/developers/Android_XMPP_Chat_Sample#Eclipse_IDE step 5, 2 jars are checked too.

from quickblox-android-sdk.

soulfly avatar soulfly commented on July 28, 2024

Okay,

I have checked a chat sample and updated the Eclipse guide http://quickblox.com/developers/Android_XMPP_Chat_Sample#Eclipse_IDE

I used OS X Eclipse Luna - Chat sample ran without any problems

from quickblox-android-sdk.

amitsharmahimcs avatar amitsharmahimcs commented on July 28, 2024

@soulfly i have completley dun all these things but got error

java.lang.NoClassDefFoundError: com.quickblox.chat.QBChatService
at com.quickblox.sample.chat.ui.activities.SplashActivity.onCreate(SplashActivity.java:41)

from quickblox-android-sdk.

anumighty avatar anumighty commented on July 28, 2024

I have added all libraries as others said earlier, but i still have error in the com.sample.chat.pushnotifications package. It says GoogleCloudMessaging cannot resolve to a type.
Thanks for your quick responce

from quickblox-android-sdk.

anumighty avatar anumighty commented on July 28, 2024

I have added all libraries as others said earlier, but i still have error in the com.sample.chat.pushnotifications package. It says GoogleCloudMessaging cannot resolve to a type.
Thanks for your quick responce

from quickblox-android-sdk.

soulfly avatar soulfly commented on July 28, 2024

The GoogleCloudMessaging class is in com.google.android.gms.gcm.GoogleCloudMessaging, which is part of the Google Play Services.

You'll need to download the Play Services through the SDK manager and then add that to your project as well.

http://developer.android.com/google/play-services/setup.html

from quickblox-android-sdk.

anumighty avatar anumighty commented on July 28, 2024

I really appreciate your quick responce. Thanks.
com.google.android.gms.gcm.GoogleCloudMessaging is in my m2repository folder. Also I have installed the google play services through my SDK manager. I have imported Google Play Services and I have added it as a library to my project.
what else do you suggest could cause the error GoogleCloudMessaging?
The target for my project is API 18.
Thanks for the quick response.

from quickblox-android-sdk.

anumighty avatar anumighty commented on July 28, 2024

This will help you in helping me solve my error. I am using Eclipse, not Android Studio

from quickblox-android-sdk.

anumighty avatar anumighty commented on July 28, 2024

Yes, I got it resolved now! Thanks
But it still shows 2 errors, QBMessages and QBEnvironment cannot be resolved.
Expecting your quick response. Thanks ahead

from quickblox-android-sdk.

anumighty avatar anumighty commented on July 28, 2024

Yes, I got it resolved now! Thanks
But it still shows 2 errors, QBMessages and QBEnvironment cannot be
resolved.
Expecting your quick response. Thanks ahead

On Wed, May 20, 2015 at 3:49 PM, Igor Khomenko [email protected]
wrote:

The GoogleCloudMessaging class is in
com.google.android.gms.gcm.GoogleCloudMessaging, which is part of the
Google Play Services.

You'll need to download the Play Services through the SDK manager and then
add that to your project as well.

http://developer.android.com/google/play-services/setup.html


Reply to this email directly or view it on GitHub
#28 (comment)
.

from quickblox-android-sdk.

anumighty avatar anumighty commented on July 28, 2024

I expect your early response. really in the midst of the work and i need to get it done. Thanks

from quickblox-android-sdk.

soulfly avatar soulfly commented on July 28, 2024

QBMessages and QBEnvironment are a part of QB SDK

did you import them in your file?

from quickblox-android-sdk.

anumighty avatar anumighty commented on July 28, 2024

Yes I have added the QB SDK as you said. Now no more error. The sample installs on emulator, but crashes at launch, QBSetting class cannot be found. How do i correct this?
Thanks for your reply.

from quickblox-android-sdk.

soulfly avatar soulfly commented on July 28, 2024

can you post a log

from quickblox-android-sdk.

krishnanbose avatar krishnanbose commented on July 28, 2024

Even am getting the same error, log as follows
note: all necessary jars has been added
06-25 11:25:19.769: E/AndroidRuntime(1740): FATAL EXCEPTION: main
06-25 11:25:19.769: E/AndroidRuntime(1740): java.lang.NoClassDefFoundError: com.quickblox.core.QBSettings
06-25 11:25:19.769: E/AndroidRuntime(1740): at com.quickblox.q_municate.App.initApplication(App.java:43)
06-25 11:25:19.769: E/AndroidRuntime(1740): at com.quickblox.q_municate.App.onCreate(App.java:27)
06-25 11:25:19.769: E/AndroidRuntime(1740): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000)
06-25 11:25:19.769: E/AndroidRuntime(1740): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391)
06-25 11:25:19.769: E/AndroidRuntime(1740): at android.app.ActivityThread.access$1300(ActivityThread.java:141)
06-25 11:25:19.769: E/AndroidRuntime(1740): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
06-25 11:25:19.769: E/AndroidRuntime(1740): at android.os.Handler.dispatchMessage(Handler.java:99)
06-25 11:25:19.769: E/AndroidRuntime(1740): at android.os.Looper.loop(Looper.java:137)
06-25 11:25:19.769: E/AndroidRuntime(1740): at android.app.ActivityThread.main(ActivityThread.java:5039)
06-25 11:25:19.769: E/AndroidRuntime(1740): at java.lang.reflect.Method.invokeNative(Native Method)
06-25 11:25:19.769: E/AndroidRuntime(1740): at java.lang.reflect.Method.invoke(Method.java:511)
06-25 11:25:19.769: E/AndroidRuntime(1740): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
06-25 11:25:19.769: E/AndroidRuntime(1740): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
06-25 11:25:19.769: E/AndroidRuntime(1740): at dalvik.system.NativeStart.main(Native Method)

from quickblox-android-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.