# Android VideoPlayer 0 size texture

**URL:** https://discourse.libcinder.org/t/android-videoplayer-0-size-texture/1530
**Category:** Uncategorized
**Created:** [June 17, 2019, 9:40pm UTC](https://discourse.libcinder.org/t/android-videoplayer-0-size-texture/1530 "2019-06-17T21:40:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)
#### Post date: [June 17, 2019, 9:40pm UTC](https://discourse.libcinder.org/t/android-videoplayer-0-size-texture/1530/1 "2019-06-17T21:40:49Z")

</div>

Hi,

I’m trying to load a movie from and android tablet sdcard, and the video size and the size of the returned texture is (0, 0). Has anyone encountered this issue before? The video can be played on the tablet, so I assume it is not a codec issue. Any suggestions would be appreciated how to tackle this problem.

-Gabor

---

<div class="post-metadata">

### Author: ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)
#### Post date: [June 19, 2019, 9:19am UTC](https://discourse.libcinder.org/t/android-videoplayer-0-size-texture/1530/2 "2019-06-19T09:19:21Z")

</div>

It seems that Cinder on Android assumes that your videos are stored as assets. I’m trying to change the libcinder java sources similarly to @eight_io’s solution ([Files cannot be read in Documents directory by Android Cinder?](https://discourse.libcinder.org/t/files-cannot-be-read-in-documents-directory-by-android-cinder/368/3)).

I had to change the paths in `proj/android/libcinder_java/build.gradle` to `"${projectDir}/../../../tools/android/CinderAppBuild/repo"` and `/proj/android/libcinder_java/libcinder/build.gradle` to `"${projectDir}/../../../../src/cinder/java"`.  
Now the project almost builds:

```auto
BUILD SUCCESSFUL

Total time: 5.307 secs

FAILURE: Build failed with an exception.

* What went wrong:
Failed to notify build listener.

```

I tried to update gradle, but I got an error:

```auto
* Where:
Build file '.../cinder/proj/android/libcinder_java/app/build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
   > Gradle version 2.2 is required. Current version is 4.4.1. If using the gradle wrapper, try editing the distributionUrl in ...cinder/proj/android/libcinder_java/gradle/wrapper/gradle-wrapper.properties to gradle-2.2-all.zip

```

changing this to gradle-4.4.1-all.zip results in the same error.

build tools: 28.0.3  
android studio: 3.4.  
ndk 15c  
sdk 19 and 21

Any help or suggestions would be really appreciated.

-Gabor

---

<div class="post-metadata">

### Author: ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)
#### Post date: [June 19, 2019, 10:28am UTC](https://discourse.libcinder.org/t/android-videoplayer-0-size-texture/1530/3 "2019-06-19T10:28:17Z")

</div>

Managed to find a way to solve this. The output lib path was wrong and also had to update gradle. I post the changes that worked for me in case someone would like to build the java classes in the future.

> <https://gist.github.com/gaborpapp/1b0a5d3a595126c0a3b7dac6eb8d17f6>
