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

Strange java error #56

Closed
Thijmen opened this issue Nov 14, 2013 · 4 comments
Closed

Strange java error #56

Thijmen opened this issue Nov 14, 2013 · 4 comments

Comments

@Thijmen
Copy link

Thijmen commented Nov 14, 2013

Hi there!
First time I am using this, so please bear with me if this is a dumb question :)

Getting this error when I try to add a record;

11-14 14:52:18.154: E/AndroidRuntime(7415): FATAL EXCEPTION: main
11-14 14:52:18.154: E/AndroidRuntime(7415): java.lang.ClassCastException: android.app.Application cannot be cast to com.orm.SugarApp
11-14 14:52:18.154: E/AndroidRuntime(7415):     at com.orm.SugarRecord.<init>(Unknown Source)
@satyan
Copy link
Collaborator

satyan commented Nov 14, 2013

I believe you’ve missed specifying the application tag in android manifest file.

Please follow this link for details.
http://satyan.github.io/sugar/getting-started.html#configuration

  • Satya

On 14-Nov-2013, at 7:24 pm, Thijmen notifications@github.com wrote:

Hi there!
First time I am using this, so please bear with me if this is a dumb question :)

Getting this error when I try to add a record;

11-14 14:52:18.154: E/AndroidRuntime(7415): FATAL EXCEPTION: main
11-14 14:52:18.154: E/AndroidRuntime(7415): java.lang.ClassCastException: android.app.Application cannot be cast to com.orm.SugarApp
11-14 14:52:18.154: E/AndroidRuntime(7415): at com.orm.SugarRecord.(Unknown Source)

Reply to this email directly or view it on GitHub.

@Thijmen
Copy link
Author

Thijmen commented Nov 14, 2013

@satyan;
Ah, my fault! Thank you :D

@Thijmen Thijmen closed this as completed Nov 14, 2013
@afafelshafie
Copy link

i have the same problem .. But i specifying the aApplication tag ...:(

@superyass
Copy link

same problem here

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

4 participants