Giter VIP home page Giter VIP logo

Comments (3)

simonsmiley64 avatar simonsmiley64 commented on August 20, 2024

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.

RyanElliott94 avatar RyanElliott94 commented on August 20, 2024

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.

sadhanareddy007 avatar sadhanareddy007 commented on August 20, 2024

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)

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.