简体   繁体   English

Android:无法解析符号

[英]Android: Cannot resolve Symbol

I am currently trying implement a chat feature for my android app using the QuickBlox chat API. 我目前正在尝试使用QuickBlox聊天API为我的android应用实现聊天功能。 However, I'm having issues trying to import the sdk. 但是,我在尝试导入sdk时遇到问题。 I created a libs folder in my module hierarchy and placed the quickblox-android-1.1.0.jar file there and added it as a library without any issues and Gradle already put it as a dependency. 我在模块层次结构中创建了一个libs文件夹,并将quickblox-android-1.1.0.jar文件放置在此处,并将其添加为没有任何问题的库,并且Gradle已将其作为依赖项。

Here's where I'm having issues. 这是我遇到问题的地方。 Whenever I try to call an Object's function, it will throw an error saying "Cannot resolve symbol 'nameOfFucntion' " even though I have the import statement for which the object belongs to. 每当我尝试调用对象的函数时,即使我具有该对象所属的import语句,也会抛出一个错误:“无法解析符号'nameOfFucntion'”。

I have searched high and low for a solution without any success and I've been stuck on this for a few hours now. 我在高空寻找解决方案,但没有成功,而我在这个问题上停留了几个小时。 Any help would be greatly appreciated. 任何帮助将不胜感激。

我将此行添加到我的应用程序级别gradle文件中,并摆脱了许多红色错误...尽管仍在处理:

compile("com.quickblox:quickblox-android-sdk-chat:2.6.1")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM