Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Object__JsonHelper is not recognized by the compiler but can be used #17

Closed
ignaciod opened this issue Jan 6, 2015 · 4 comments
Closed

Comments

@ignaciod
Copy link

ignaciod commented Jan 6, 2015

Hi everyone, using Android Studio I managed to generate the gen-src folder, with the generated Object_JsonHelper.
My project tree looks like this:

app
->gen-src
->main->java->com.mypackage
->src
->main->java->com.mypackage

The compiler show the Object_JsonHelper as an error but the fact is that when I press the play button the apk is deployed on the device/emulator. How can I get rid of the compiler error?

I'm very fond on implementing this solution.

Thanks

@ignaciod ignaciod changed the title Cannot see Object__JsonHelper Object__JsonHelper is not recognized by the compiler but can be used Jan 6, 2015
@ttung
Copy link
Contributor

ttung commented Jan 6, 2015

Before you build, the autogenerated source is not there, so it can't find it. Once the compiler has been invoked, it should generate the source and find it in the future.

@ttung ttung closed this as completed Jan 6, 2015
@ignaciod
Copy link
Author

ignaciod commented Jan 6, 2015

Hi ttung, but with the generated files the compiler can't resolve the the Object_JsonHelper. It would be nice if you don't close the issue before give me a hand? I can run the app but still not compiling. Thanks

image

@ttung
Copy link
Contributor

ttung commented Jan 6, 2015

It can't possibly run the app unless it can compile it. If you can run the app, it means the compiler succeeded. Android Studio may still be confused, but that's a different story.

Happy to help you debug this if you attach a sample project.

@ignaciod
Copy link
Author

ignaciod commented Jan 7, 2015

Ok I managed to make it work! Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants