Leogreen
Leogreen

Reputation: 701

Error to initialize the parse.com code in Android

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

enter image description here

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.

Upvotes: 1

Views: 667

Answers (1)

Madhawa Priyashantha
Madhawa Priyashantha

Reputation: 9872

you should import classes

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.....;

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

follow these steps

1) add parse libs to your project.

2)clean your project

3) add import statement

import com.parse.Parse; 

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

this is my project no errors

enter image description here

Upvotes: 1

Related Questions