twilio / twilio-chat-demo-android

Chat API Demo Application for Android
MIT License
62 stars 51 forks source link

Completely broken with many classes missing #65

Closed amigax closed 6 years ago

amigax commented 6 years ago

almost all classes are missing example:

import com.twilio.chat.Channel; import com.twilio.chat.StatusListener; import com.twilio.chat.CallbackListener; import com.twilio.chat.ChatClientListener; import com.twilio.chat.ChatClient; import com.twilio.chat.ErrorInfo; import com.twilio.chat.User; import com.twilio.chat.internal.HandlerUtil;

when trying to sync error comes up

No matching client found for package name 'com.twilio.chat.demo.debug'

berkus commented 6 years ago

Which SDK version?

Did you change anything in the manifest? Did you generate google-settings.json file for your app? Did you call the app com.twilio.chat.demo.debug in firebase console?

amigax commented 6 years ago

Just tried example code straight from github, i put in google-settings.json, not entered it into firebase yet because it wont compile. How to get the code to compile ?

berkus commented 6 years ago

Follow the steps outlined in the readme file.

amigax commented 6 years ago

ok "build gradle", this now gives error:

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1s 21 actionable tasks: 17 executed, 4 up-to-date

amigax commented 6 years ago

In Android Studio compile errors now gone but i always get "No matching client found for package name 'com.twilio.chat.demo.debug'" when i try to run it.

amigax commented 6 years ago

Actually R wont generate or import on most files either.

amigax commented 6 years ago

Wasted 5 hours on this, does not work. Please upload working code.

berkus commented 6 years ago

Please try removing google-services.json from the project and disabling proguard:

  1. Do a fresh git clone https://github.com/twilio/twilio-chat-demo-android
  2. Remove this line and these lines.
  3. Run ./gradlew build
  4. Don't forget that you will need token generator as well, for this after you have completed step 4 turn to Twilio quickstart for Chat, without the token generator your app won't be able to connect to Twilio Chat.

The uploaded code is tested regularly and I've verified that again just now.

berkus commented 6 years ago

Closing as there's no response.