# Android Studio project generation and c files

**URL:** <https://forum.juce.com/t/android-studio-project-generation-and-c-files/19569>\
**Category:** Android\
**Created:** [October 21, 2016, 10:00am UTC](https://forum.juce.com/t/android-studio-project-generation-and-c-files/19569 "2016-10-21T10:00:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunitoki](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kunitoki/32/15_2.png) [@kunitoki](https://forum.juce.com/u/kunitoki)\
**Post date:** [October 21, 2016, 10:00am UTC](https://forum.juce.com/t/android-studio-project-generation-and-c-files/19569/1 "2016-10-21T10:00:28Z")

</div>

It seems the latest projucer fails generating AndroidStudio 2.2 projects correctly (gradle 2.14.1), i have those problems:

- source files for importing modules in JuceModules folder refers to an include path not reachable (after it has been symlinked to the jni folder)
- preprocessor defines are not picked up in c files (when they are in modules) don’t know exactly why
- some of my modules have \*.inc files, but those are not copied over the jni folder

i’m actually trying to understand what’s going on

---

<div class="post-metadata">

**Author:** ![adamwilson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/adamwilson/32/1387_2.png) [@adamwilson](https://forum.juce.com/u/adamwilson)\
**Post date:** [October 21, 2016, 11:47am UTC](https://forum.juce.com/t/android-studio-project-generation-and-c-files/19569/2 "2016-10-21T11:47:12Z")

</div>

Sounds like it might be an issue with your source or module locations?

---

<div class="post-metadata">

**Author:** ![kunitoki](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kunitoki/32/15_2.png) [@kunitoki](https://forum.juce.com/u/kunitoki)\
**Post date:** [October 21, 2016, 12:13pm UTC](https://forum.juce.com/t/android-studio-project-generation-and-c-files/19569/3 "2016-10-21T12:13:25Z")

</div>

modules are made respecting the juce standard so it should not be a problem, it could be that it is a studio or gradle specific problem tho

it is strange that the module include generated by the jucer is like this (like for any other platform):

```
/*

IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!

*/

#include "AppConfig.h"
#include <benchmark/benchmark.cpp>

```

but no includepath of the jni folder is set in the gradle script or generate the file with a relative path to the jni symlinked folder like this:

```
/*

IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!

*/

#include "AppConfig.h"
#include "JuceModules/benchmark/benchmark.cpp"

```

different stuff for the plain c files. no mater what i set in the additional preprocessor macros in the projucer: they are never set in c files (even if i can see them in android.ndk section of the gradle).
