Comments (3)
Hello @SimplisticApps,
The first thing to do is to download the Android app and then run it from scratch. It should compile as the configuration has been set up correctly to our systems. If you can confirm that the base project compiles then we can narrow down whether the error is coming from the project or some modifications you have made to it.
The next thing to do is watch the youtube video of adding the project to your project. You can find it here. This will go through adding the Android to your custom project. Once you have completed this you should be able to compile your project including the Android Chat SDK. The corresponding tutorial can be found on our wiki page here.
If you can go through those steps first and then comment back on this thread it will help narrow down a lot of the issues that might be causing this error.
Simon
from chat-sdk-android.
Hi, thanks for replying.
So after looking it was all the UIHelper code for facebook, at the momemnt i have removed that code from the onResume methods and now the app runs and works but if it's code that i genuinely need then i will re-add it.
Update: So i decided to do what you said and start from scratch and try everything again this time with everything right, nothing has been modified or added other than the setup code but I still get an error, this time the error is on line: 44 on ChatSDKLoginActivity
which is this line of code:
enableFacebookIntegration(getNetworkAdapter().facebookEnabled());
and it shows up in the log as:
E/AndroidRuntime:
FATAL EXCEPTION: main
Process: com.skintmedia.voice, PID: 13504
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.skintmedia.voice/com.braunster.chatsdk.activities.ChatSDKLoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.braunster.chatsdk.network.AbstractNetworkAdapter.facebookEnabled()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2434)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494)
at android.app.ActivityThread.access$900(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1356)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5551)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.braunster.chatsdk.network.AbstractNetworkAdapter.facebookEnabled()' on a null object reference
at com.braunster.chatsdk.activities.ChatSDKLoginActivity.onCreate(ChatSDKLoginActivity.java:44)
at android.app.Activity.performCreate(Activity.java:6272)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494)
at android.app.ActivityThread.access$900(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1356)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5551)`
Update 2: The app and SDK is now working as it should do!
Thanks for you're help Simon!
from chat-sdk-android.
Hello can you please tell me how you remove that error in lineenableFacebookIntegration(getNetworkAdapter().facebookEnabled());.
Because i also got same error please help me
the error is
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.braunster.chatsdk.network.AbstractNetworkAdapter.facebookEnabled()' on a null object reference
at com.braunster.chatsdk.activities.ChatSDKLoginActivity.onCreate(ChatSDKLoginActivity.java:44)
from chat-sdk-android.
Related Issues (20)
- Unable to login with chat sdk HOT 6
- How to integrate all public group search with group name HOT 1
- Can’t able to attach Photos from any folder except All Media after changing the AlbumSpinner from the toolbar HOT 1
- Big groupchats/chat rooms/channels support (around 5k participants)
- Push notifications doesn't work for app from play store
- looks like a bug in android 12: bottom messaging box does not appear when exiting a chat room and entering again
- Image Picker is not working in Andorid 13 HOT 1
- Android : Different firebase account need to be used. (Separate account for firebase for ChatSdk) HOT 1
- Can't Release Signed Bundle or Apk!
- Android: notification is not come (+ crash happened) when app process is killed HOT 2
- Android app crash HOT 6
- Crash when add threadFragment to compose android view
- Gradle could not fetch 5.5.3 and 5.5.6 version of library HOT 1
- Error when compiling when updating the android studio to the giraffe version HOT 1
- the host of libraries return 409 jfrog HOT 1
- App Crash When Moving on to ThreadDetailsActivity HOT 2
- Multiple issues and can not login to the account HOT 1
- Can not create account / Can not login HOT 1
- Sync and build are failed HOT 1
- Exception at sdk.chat.ui.keyboard.KeyboardAwareFrameLayout.onLayout on release builds HOT 1
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 chat-sdk-android.