# powervr example running in android studio

**URL:** <https://forums.imgtec.com/t/powervr-example-running-in-android-studio/2357>\
**Category:** PowerVR Insider\
**Created:** [August 26, 2015, 1:53pm UTC](https://forums.imgtec.com/t/powervr-example-running-in-android-studio/2357 "2015-08-26T13:53:00Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anusha](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@anusha](https://forums.imgtec.com/u/anusha)\
**Post date:** [August 26, 2015, 1:53pm UTC](https://forums.imgtec.com/t/powervr-example-running-in-android-studio/2357/1 "2015-08-26T13:53:00Z")

</div>

hello, I am having problem when running powervr example for android in android studio. Error:Execution failed for task ':ndkBuild’.\> A problem occurred starting process ’command ’ndk-build.cmd’’ is the error occurring for ndkBuidTools as well.  
can you suggest me any solution? i am trying to run powervr android example in windows.

---

<div class="post-metadata">

**Author:** ![anusha](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@anusha](https://forums.imgtec.com/u/anusha)\
**Post date:** [August 26, 2015, 5:27pm UTC](https://forums.imgtec.com/t/powervr-example-running-in-android-studio/2357/2 "2015-08-26T17:27:14Z")

</div>

I have set the ndk-build.cmd path correctly in local.properties and project structure in android studio in windows.! can anyone help please.!

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [August 27, 2015, 6:52am UTC](https://forums.imgtec.com/t/powervr-example-running-in-android-studio/2357/3 "2015-08-27T06:52:24Z")

</div>

Hi Anusha,

Which SDK example are you trying to build?  
Have you been following the instructions in our Getting Started guide?  
What version of Windows are you running?  
What version of Android Studio are you running?

Thanks,  
Joe

---

<div class="post-metadata">

**Author:** ![anusha](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@anusha](https://forums.imgtec.com/u/anusha)\
**Post date:** [August 27, 2015, 7:27am UTC](https://forums.imgtec.com/t/powervr-example-running-in-android-studio/2357/4 "2015-08-27T07:27:21Z")

</div>

Hello Joe,

yes I have followed the starting guide instructions…!

I am running Android studio 1.3.2 and Microsoft windows 8.1 enterprise version.!

Thanks

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [August 27, 2015, 9:09am UTC](https://forums.imgtec.com/t/powervr-example-running-in-android-studio/2357/5 "2015-08-27T09:09:09Z")

</div>

If you let us know which example you have encountered the issue with (and if you have modified it at all), we will investigate.

Thanks,  
Joe

---

<div class="post-metadata">

**Author:** ![anusha](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@anusha](https://forums.imgtec.com/u/anusha)\
**Post date:** [August 28, 2015, 3:37pm UTC](https://forums.imgtec.com/t/powervr-example-running-in-android-studio/2357/6 "2015-08-28T15:37:32Z")

</div>

No example is working unfortunately

---

<div class="post-metadata">

**Author:** ![anusha](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@anusha](https://forums.imgtec.com/u/anusha)\
**Post date:** [September 4, 2015, 12:32pm UTC](https://forums.imgtec.com/t/powervr-example-running-in-android-studio/2357/7 "2015-09-04T12:32:21Z")

</div>

Hello,

NDK doesn’t support Android studio and hence I started implementing in eclipse with ndk.

When I am running examples with powervr tools I am getting the following error.

Android NDK: ERROR:jni/OGLES2IntroducingPrint3D/Android.mk:ogles2tools: LOCAL\_SRC\_FILES points to a missing file  
C:/Users/480838/AppData/Local/Android/sdk/ndk-bundle/build/core/prebuilt-library.mk:45: \*\*\* Android NDK: Aborting . Stop.  
Android NDK: Check that C:/Users/480838/Downloads/Native\_SDK-3.5/Native\_SDK-3.5/Tools/OGLES2/Build/Android/obj/local/arm64-v8a/libogles2tools.a exists or that its path is correct

Can you please suggest me solution and check what source files are or can be missing in all the examples from Introducing powervr tools & give me any solution…!

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [September 4, 2015, 1:34pm UTC](https://forums.imgtec.com/t/powervr-example-running-in-android-studio/2357/8 "2015-09-04T13:34:36Z")

</div>

We tested the SDK Examples with the latest stable release of Android Studio on Windows before the 3.5 release. I’ve asked PaulL to look into this as I haven’t been able to allocate time to the investigation yet, but I suspect there may be a problem with your local configuration.

[blockquote]NDK doesn’t support Android studio and hence I started implementing in eclipse with ndk.[/blockquote]  
We no longer support SDK builds with Eclipse.

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [September 9, 2015, 3:32pm UTC](https://forums.imgtec.com/t/powervr-example-running-in-android-studio/2357/9 "2015-09-09T15:32:56Z")

</div>

Hi Anusha,

[blockquote]NDK doesn’t support Android studio[/blockquote]  
Following the instructions in the SDK Browser’s Getting Started guide, I was able to successfully build our 3.5 SDK’s OGLES2 02\_IntroducingPVRShell and OGLES Particles Examples with Android Studio v1.3. I’ve included the log of the OGLES Particles native library build for reference.

I’ve noticed in that the Eclipse output in your previous post you are trying to build for arm64-v8a. In my Particles build, it generated native binaries for the following ABIs; armeabi, armeabi-v7a, x86, mips, x86  
Have you modified your Application.mk file at all, or are you using it as-is?

Can you attach a log of the errors given when you build the OGLES version of the Particles example in Android Studio?

---

<div class="post-metadata">

**Author:** ![anusha](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@anusha](https://forums.imgtec.com/u/anusha)\
**Post date:** [September 10, 2015, 7:05am UTC](https://forums.imgtec.com/t/powervr-example-running-in-android-studio/2357/10 "2015-09-10T07:05:56Z")

</div>

Hi Joe,

I am now implementing OGLES2 particles examples and am having issues in eclipse. yes, t is not generating native builds. I did not modify anything in Application.mk and the whole application.  
I am able to run examples such as OGLES2IntroducingPVRShell that do not use olges tools .  
I am getting the error Android NDK: ERROR:jni/OGLESParticles/Android.mk:oglestools: LOCAL\_SRC\_FILES points to a missing file  
C:/Users/480838/AppData/Local/Android/sdk/ndk-bundle/build/core/prebuilt-library.mk:45: \*\*\* Android NDK: Aborting . Stop. Android NDK: Check that C:/Imagination/PowerVR\_Graphics/PowerVR\_SDK/Tools/OGLES/Build/Android/obj/local/arm64-v8a/liboglestools.a exists or that its path is correct.

The native binaries are not being generated as well in eclipse.

Can you please suggest me the solution.

Thanks

---

<div class="post-metadata">

**Author:** ![anusha](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@anusha](https://forums.imgtec.com/u/anusha)\
**Post date:** [September 10, 2015, 3:50pm UTC](https://forums.imgtec.com/t/powervr-example-running-in-android-studio/2357/11 "2015-09-10T15:50:45Z")

</div>

this is the content of the log file  
\*\*\*\* Build of configuration Default for project OGLES2MultipleRenderTargets \*\*\*\*

C:\Users\480838\AppData\Local\Android\sdk\ndk-bundle\ndk-build.cmd NDKDEBUG=1 all  
Android NDK: ERROR:jni/OGLES2MultipleRenderTargets/Android.mk:ogles2tools: LOCAL\_SRC\_FILES points to a missing file  
Android NDK: Check that C:/Imagination/PowerVR\_Graphics/PowerVR\_SDK/SDK\_3.5/Tools/OGLES2/Build/Android/obj/local/arm64-v8a/libogles2tools.a exists or that its path is correct  
C:/Users/480838/AppData/Local/Android/sdk/ndk-bundle/build/core/prebuilt-library.mk:45: \*\*\* Android NDK: Aborting . Stop.

\*\*\*\* Build Finished \*\*\*\*  
it is same to all the examples that use tools and when building the project is not generating the native binaries as well.

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [September 11, 2015, 7:12am UTC](https://forums.imgtec.com/t/powervr-example-running-in-android-studio/2357/12 "2015-09-11T07:12:20Z")

</div>

Hi Anusha,

[blockquote]The native binaries are not being generated as well in eclipse.[/blockquote]  
As mentioned previously, we no longer support Android builds in Eclipse. If you do not want to use Android Studio with the 3.5 SDK, you should be able to use Eclipse with the 3.4 SDK release. You can grab the legacy 3.4 SDK from GitHub: [https://github.com/powervr-graphics/Native\_SDK/tree/3.4](https://github.com/powervr-graphics/Native_SDK/tree/3.4)
