Eclipse Import Error

Hello everyone

I have imported ODK into eclipse but resulted in the following errors.

Project project_name is missing required source folder:'gen'
The project cannot be built until build path errors are resolved

Can anyone assist me.

Kofi,

Eclipse doesn't always work, so you'll just have to try a bunch of stuff.

Make sure you can get Android hello world working.
https://developer.android.com/training/basics/firstapp/index.html.

Once that's working, then focus on the ODK Collect code. You'll
probably need to manually create the gen folder, clean/rebuild the
project, restart Eclipse. Some combination of that should probably
work. If all that fails, try IntelliJ.

In the future, questions about working with the code should be
directed to the opendatakit-developers@googlegroups.com list.

Yaw

ยทยทยท -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Fri, Apr 11, 2014 at 9:34 AM, kofi kofi853@gmail.com wrote:

Hello everyone

I have imported ODK into eclipse but resulted in the following errors.

Project project_name is missing required source folder:'gen'
The project cannot be built until build path errors are resolved

Can anyone assist me.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Kofi,

gen is one of the folders that eclipse should be maintaining on its own as
part of the build process. It doesn't come down when you clone the project.
If you look at the repository structure for our Android projects, you'll
see that gen isn't included there either. Here is the Collect repo as an
example:

https://code.google.com/p/opendatakit/source/browse/?repo=collect#hg

There are probably other errors that are keeping the project from building
at all, and that is keeping gen from being created. So, look for another
error, like an import error where eclipse is complaining it can't find a
class. I would guess that the missing gen folder is probably a symptom
rather than the cause.

Another thing to try is to make sure you have the project set up to "Build
Automatically", or you'll have to manually build. You can look at this in
the Eclipse Project menu. Project -> Build Automatically should be checked,
or you can just manually perform Project -> Build. If there are no other
errors, it might just not have been created yet, in which case building
might fix it.

Sam

ยทยทยท On Fri, Apr 11, 2014 at 10:19 AM, Yaw Anokwa wrote:

Kofi,

Eclipse doesn't always work, so you'll just have to try a bunch of stuff.

Make sure you can get Android hello world working.
https://developer.android.com/training/basics/firstapp/index.html.

Once that's working, then focus on the ODK Collect code. You'll
probably need to manually create the gen folder, clean/rebuild the
project, restart Eclipse. Some combination of that should probably
work. If all that fails, try IntelliJ.

In the future, questions about working with the code should be
directed to the opendatakit-developers@googlegroups.com list.

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Fri, Apr 11, 2014 at 9:34 AM, kofi kofi853@gmail.com wrote:

Hello everyone

I have imported ODK into eclipse but resulted in the following errors.

Project project_name is missing required source folder:'gen'
The project cannot be built until build path errors are resolved

Can anyone assist me.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

1 Like