openframeworks / openframeworks/openFrameworks

Android Studio for all of CPP files: This File is not part of the project...

Open
#6,153 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

After trying the latest release of oF I switched to the master branch and am still having the same problem:
Using the project generator I convert an Android example to Android Studio. Then loading into Android Studio I get for all oF cpp files: "This file is not part of the project. Please include it in the appropriate build file..." I'm not an Android Studio expert and it is not obvious to me how to move forward as CMakelists.txt doesn't exist etc.

Android Studio compiles the code fine but practically every line is marked as an error in the IDE as all the references are broken.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the problem by using the project generator to convert an Android example and opening the result in Android Studio. Inspect the generated Android project and its build files, noting that CMakeLists.txt is absent. Done means openFrameworks C++ files are recognized by the IDE without widespread false errors while the project still compiles.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.