chatbot's People
Forkers
mayursolanki repoforks prashantwosti rushabh13 wlun001 darshanclevertap physicx101 yobozorle rbparson kaiyiuw joshuasart joeclinton xeot95 ugokwehenry prashu94 peopleman1 smyt0058 sergiujec ashishietcs ankit1057 raphaelsaojudas arun-wekancode jamilhossain manjunathpm jobgetabu sreegandh vasanthhv saksham1211 rahat-noman fenyroy geekhack keerthim95 mvenkata-rathnam chetanmahajan850 santosvilela dasirahul7 zeshraja1326 quran123 sabmike duongngocthach nvnpsplt segunfrancis rellikjaeger ranit7 valdyrtorres akk-techchatbot's Issues
Can i see your console project in Dialogflow(api.ai) and firebase?
i'm build a chat bot to serve for my last project in school, and many thanks to you for sharing this example about this.
I want to see what you do and data which you used in console project. So can you share with me it? or if impossible, you can take me some pictures about it, can't you?
the last, thank you so much for reading! (smile)
Messages isnt displayed ? / Does it add add dialogflow chatbot to our project ?
I followed your method and it does have some issue ?
But the messages are not being displayed ?
Chat messages do not show.
Hi Divyanshu,
A great job on writing this code for the chatbot. Helped me a lot. I've got a little problem on my end. The chat messages do not show on the app but when I check my training log for my dialog flow agent, the training messages I put from the app appear there. I think it has something to do with the recycler adapter. Could you check and let me know?
Also, how do I fix the memory leak warning in the Async task section of the code on MainActivity.java?
NOTE: I update all the firebase libraries to the latest and update the changes in code functions as suggested in their documentation.
Below is my updated code
This is your original code
_adapter = new FirebaseRecyclerAdapter<ChatMessage, chat_rec>(ChatMessage.class,R.layout.msglist,chat_rec.class,ref.child("chat")) {
@OverRide
protected void onBindViewHolder(chat_rec viewHolder, ChatMessage model, int position) {
if (model.getMsgUser().equals("user")) {
viewHolder.rightText.setText(model.getMsgText());
viewHolder.rightText.setVisibility(View.VISIBLE);
viewHolder.leftText.setVisibility(View.GONE);
}
else {
viewHolder.leftText.setText(model.getMsgText());
viewHolder.rightText.setVisibility(View.GONE);
viewHolder.leftText.setVisibility(View.VISIBLE);
}
}
};_
**My Update Code begins here**
_FirebaseRecyclerOptions<ChatMessage> options =
new FirebaseRecyclerOptions.Builder<ChatMessage>()
.setQuery(ref, ChatMessage.class)
.build();
adapter = new FirebaseRecyclerAdapter<ChatMessage, chat_rec>(options) {
@NonNull
@Override
public chat_rec onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.msglist, parent, false);
return new chat_rec(view);
}
@Override
protected void onBindViewHolder(@NonNull chat_rec holder, int position, @NonNull ChatMessage model) {
if (model.getMsgUser().equals("user")) {
holder.rightText.setText(model.getMsgText());
holder.rightText.setVisibility(View.VISIBLE);
holder.leftText.setVisibility(View.GONE);
}
else {
holder.leftText.setText(model.getMsgText());
holder.rightText.setVisibility(View.GONE);
holder.leftText.setVisibility(View.VISIBLE);
}
}_
};
Issue with device running Oero.
Tried compiling and running this code in Oreo but got NoClassDefFoundError. Runs without any issue on devices below oero.
09-23 11:02:28.842 3041-3041/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.beast.chatbot, PID: 3041 java.lang.NoClassDefFoundError: org.apache.logging.log4j.core.lookup.JmxRuntimeInputArgumentsLookup at java.lang.reflect.Constructor.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:334) at org.apache.logging.log4j.core.util.ReflectionUtil.instantiate(ReflectionUtil.java:185) at org.apache.logging.log4j.core.lookup.Interpolator.<init>(Interpolator.java:65) at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:346) at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:161) at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:359) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:420) at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:138) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:147) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:41) at org.apache.logging.log4j.LogManager.getContext(LogManager.java:175) at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:426) at ai.api.AIDataService.<clinit>(AIDataService.java:59) at ai.api.android.AIService.<init>(AIService.java:81) at ai.api.services.GoogleRecognitionServiceImpl.<init>(GoogleRecognitionServiceImpl.java:89) at ai.api.android.AIService.getService(AIService.java:68) at com.example.beast.chatbot.MainActivity.onCreate(MainActivity.java:70) at android.app.Activity.performCreate(Activity.java:6975) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/lang/management/ManagementFactory; at org.apache.logging.log4j.core.lookup.JmxRuntimeInputArgumentsLookup.<clinit>(JmxRuntimeInputArgumentsLookup.java:35) at java.lang.reflect.Constructor.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:334) at org.apache.logging.log4j.util.LoaderUtil.newInstanceOf(LoaderUtil.java:138) at org.apache.logging.log4j.util.LoaderUtil.newCheckedInstanceOf(LoaderUtil.java:163) at org.apache.logging.log4j.core.util.Loader.newCheckedInstanceOf(Loader.java:311) at org.apache.logging.log4j.core.lookup.Interpolator.<init>(Interpolator.java:103) at org.apache.logging.log4j.core.config.AbstractConfiguration.<init>(AbstractConfiguration.java:104) at org.apache.logging.log4j.core.config.NullConfiguration.<init>(NullConfiguration.java:30) at org.apache.logging.log4j.core.LoggerContext.<clinit>(LoggerContext.java:61) at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.locateContext(ClassLoaderContextSelector.java:145) at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:70) at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:57) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:142) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:41) at org.apache.logging.log4j.LogManager.getContext(LogManager.java:175) at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:426) at ai.api.AIDataService.<clinit>(AIDataService.java:59) at ai.api.android.AIService.<init>(AIService.java:81) at ai.api.services.GoogleRecognitionServiceImpl.<init>(GoogleRecognitionServiceImpl.java:89) at ai.api.android.AIService.getService(AIService.java:68) at com.example.beast.chatbot.MainActivity.onCreate(MainActivity.java:70) at android.app.Activity.performCreate(Activity.java:6975) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) 09-23 11:02:28.842 3041-3041/? E/AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "java.lang.management.ManagementFactory" on path: DexPathList[[zip file "/data/app/com.example.beast.chatbot-stW_tU5Q_ZBhHjdS6Jx3dg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.beast.chatbot-stW_tU5Q_ZBhHjdS6Jx3dg==/lib/arm64, /system/lib64, /vendor/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
More than one file was found with OS independent path 'META-INF/INDEX.LIST'
Earlier i had issue of annotation , and now the persisting issue is this .Can you help me.
modules
i am unable to find the modules after opening this repo
Followed your procedures for building one. But i doesn't display any message ? Why ?
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.