Comments (16)
Looks like you have an issue with Eclipse classpath, so app doesn't see QB SDK classes in runtime
from quickblox-android-sdk.
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.
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.
@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.
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.
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.
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.
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.
This will help you in helping me solve my error. I am using Eclipse, not Android Studio
from quickblox-android-sdk.
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.
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.
I expect your early response. really in the midst of the work and i need to get it done. Thanks
from quickblox-android-sdk.
QBMessages and QBEnvironment are a part of QB SDK
did you import them in your file?
from quickblox-android-sdk.
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.
can you post a log
from quickblox-android-sdk.
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)
- Not Working push notifications with Latest Firebase bom HOT 3
- Unexpected signature in session api HOT 2
- Message send issue if use same device for two different login HOT 1
- Audio/Video call connection issue (Not calling onReceiveNewSession method when call coming) HOT 1
- Corner Radius in QBRTCSurfaceView HOT 1
- Private chat Notification receiving for all the users HOT 3
- How to assign admin ownership to the second participant in the group HOT 1
- Automatic push subscription doesn't work. HOT 2
- Cannot create push subscriptions for two applications on one device HOT 5
- Crash on call service in android 12 HOT 2
- Cannot upload document files on Quickblox android HOT 6
- Issue with calling when login on multiple devices HOT 9
- Push subscription HOT 12
- Failed to resolve: HOT 1
- App is crashing internally due to the error in the SDK HOT 2
- Send Location and Contacts in Chat HOT 5
- Push Notification not working for call HOT 1
- Dialog Name As my Contact Name HOT 3
- Could not download chat-message-adapter-2.0.aar HOT 5
- QuickBlox CallService Compatibility Issue on Android 14 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickblox-android-sdk.