# Auto-generated API 8 project fails to compile

**URL:** <https://forums.developer.nvidia.com/t/auto-generated-api-8-project-fails-to-compile/31867>\
**Category:** Nsight Visual Studio Edition\
**Created:** [January 3, 2014, 2:20am UTC](https://forums.developer.nvidia.com/t/auto-generated-api-8-project-fails-to-compile/31867 "2014-01-03T02:20:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![corysama](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@corysama](https://forums.developer.nvidia.com/u/corysama)\
**Post date:** [January 3, 2014, 2:20am UTC](https://forums.developer.nvidia.com/t/auto-generated-api-8-project-fails-to-compile/31867/1 "2014-01-03T02:20:29Z")

</div>

With NTVS 1.4

New Project → Android Application With Native Code  
Set Min Target to 2.2  
Build  
Android1.c(4,17): fatal error : jni.h: No such file or directory

The compile fails because of the C++ command-line directive -I"C:\NVPACK\android-ndk-r9b\platforms\arch-arm\usr\include" Under Configuration Properties: General, Target API level will be 8, but it is impossible to set min API level \<9

If there’s a good work-around for this, it would be nice. I have a legacy API 8 app that I still need to support and I’d like to migrate it to Nsight.

---

<div class="post-metadata">

**Author:** ![corysama](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@corysama](https://forums.developer.nvidia.com/u/corysama)\
**Post date:** [January 3, 2014, 2:29am UTC](https://forums.developer.nvidia.com/t/auto-generated-api-8-project-fails-to-compile/31867/2 "2014-01-03T02:29:29Z")

</div>

Text-editing the proj file seems to work. Is 2.2 supported? Will this lead me to problems down the road…?

```auto
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|Tegra-Android'">
    <AndroidTargetAPI>android-15</AndroidTargetAPI>
    <AndroidMinAPI>android-8</AndroidMinAPI>
  </PropertyGroup>
  <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|Tegra-Android'">
    <AndroidTargetAPI>android-15</AndroidTargetAPI>
    <AndroidMinAPI>android-8</AndroidMinAPI>
  </PropertyGroup>
  <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Profile|Tegra-Android'">
    <AndroidTargetAPI>android-15</AndroidTargetAPI>
    <AndroidMinAPI>android-8</AndroidMinAPI>
  </PropertyGroup>

```

---

<div class="post-metadata">

**Author:** ![DmitryPolyanitsa](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/dmitrypolyanitsa/32/16518_2.png) [@DmitryPolyanitsa](https://forums.developer.nvidia.com/u/DmitryPolyanitsa)\
**Post date:** [January 14, 2014, 3:02pm UTC](https://forums.developer.nvidia.com/t/auto-generated-api-8-project-fails-to-compile/31867/3 "2014-01-14T15:02:22Z")

</div>

Hi,

Currently, we don’t provide any support for API levels \< 9. Sorry for the inconvenience!
