简体   繁体   English

将android连接到本地解析服务器无法解析符号配置

[英]connecting android to local parse server cannot resolve symbol Configuration

I have created a chat app for android, and I just installed Parse Server on my local machine. 我已经为Android创建了一个聊天应用程序,并且刚刚在本地计算机上安装了Parse Server。 I am trying to connect the app to my parse server but... 我正在尝试将应用程序连接到我的解析服务器,但是...

Parse.initialize(new Parse.Configuration.Builder(this)
            .applicationId("@string/parse_app_id")
            .clientKey("@string/parse_client_key")
            .server("xxxxxxxx")
            .build());

At Parse. 在解析。 Configuration .Builder... I am getting the unresolved symbol error. 配置 .Builder ...我得到了未解决的符号错误。 Using Parse 1.4 使用解析1.4

compile files('libs/Parse-1.4.0.jar')

Is there anything I'm missing? 有什么我想念的吗? Any dependencies I should add? 我应该添加任何依赖项吗? Thank you in advance! 先感谢您!

I just fixed that by removing the Parse 1.4.0 jar, and instead, compiling 我只是通过删除Parse 1.4.0 jar来解决此问题,而是进行编译

compile 'com.parse:parse-android:1.13.1'

Hope this helps someone :) 希望这可以帮助某人:)

Also if Parse 1.4.0 is present when you compile, it won't work. 同样,如果在编译时存在Parse 1.4.0,它将无法正常工作。 I had to delete that completely. 我不得不完全删除它。

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

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