Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't import your great job into my project #8

Closed
npes87184 opened this issue Nov 15, 2014 · 5 comments
Closed

I can't import your great job into my project #8

npes87184 opened this issue Nov 15, 2014 · 5 comments

Comments

@npes87184
Copy link

I use Eclipse to develop android and want to use your library, first I import it into Eclipse, second click right button and chose property then let it be a library.

finally, use the same method to add it as a dependency of my project, but it show me the "The constructor SweetAlertDialog(new Handler(){}, int) is undefined", I think my step is correct.

Is it can't use this way to import?

@pedant
Copy link
Owner

pedant commented Nov 15, 2014

But my library actually does not exist the constructor "SweetAlertDialog(new Handler()}, int)", never defined this one. Only "SweetAlertDialog(Context context, int alertType)", so strange?!

@npes87184
Copy link
Author

well, is my bad.
I use wrong Context parameter.
Thanks guy, you do a good project.

@pedant
Copy link
Owner

pedant commented Nov 15, 2014

Did you import my code according the library directors on github that for
gradle build specially? Imported it as a eclipse library, maybe you could
modify the dir level.
2014-11-15 下午7:04于 "APTX4869" notifications@github.com写道:

[image: image]
https://cloud.githubusercontent.com/assets/5494432/5057421/e77e2726-6cf9-11e4-8823-26a2a3bc4a96.png

Multiple markers at this line

  • SweetAlertDialog cannot be resolved to a
    variable
  • SweetAlertDialog cannot be resolved to a
    type
  • SweetAlertDialog cannot be resolved to a
    type

I do not why Eclipse give me this feedback, I copy your code direct.


Reply to this email directly or view it on GitHub
#8 (comment)
.

@npes87184
Copy link
Author

thanks a lot for your help, I have solved all the problem and I can use it happily, now.
btw, is it setContentView() method work?

@pedant
Copy link
Owner

pedant commented Nov 15, 2014

Do you mean “setContentText()”? I didn't implemented ”setContentView())" method.

@pedant pedant closed this as completed Nov 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants