在Android中初始化parse.com代码时出错 [英] Error to initialize the parse.com code in Android

查看:94
本文介绍了在Android中初始化parse.com代码时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Java/Android和Parse的初学者.今天我需要你的帮助.我不知道我在做什么错.看我的照片

I'm beginner with Java/Android and Parse. Today i need your help . I don't know what i'm doing wrong. Look to my picture

我的.jar文件位于库"中,但是我在项目中收到红线. 另外,如何在Parse.initialize中看到这似乎无法识别.

My .jar file is in "Lib" , but i'm receiving the red lines in my project. Also ,how can you see in Parse.initialize seems that this is not recognized.

推荐答案

您应该导入类

将此导入语句添加到您的代码中

add this import statement to your codes

import com.parse.Parse; 

并导入您需要的每个课程 您还可以导入所有类

and import every class you need you can also import all classes

 import com.parse.blablabla.....;

,如果您添加了.jar文件,则可以在android studio中修复导入.

and if you have added .jar files you can fix imports in android studio .check this one

遵循这些步骤

1)将解析库添加到您的项目中.

1) add parse libs to your project.

2)清理项目

3)添加导入语句

import com.parse.Parse; 

执行这些步骤后,您可以看到我没有错误

you can see i have no error after i did those steps

这是我的项目,没有错误

this is my project no errors

这篇关于在Android中初始化parse.com代码时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆