Does anyone of you guys know this exception in Gradle build?
Error:Execution failed for task ':app:mergeDebugResources'.
> java.lang.ArrayIndexOutOfBoundsException (no error message)
My project worked fine, until I implemented a Video player in a new activity that parses a MP4 file from the SD-Card. Then I got this exception. After that I updated Android Studio, I cleaned the project, I relocated it, I rebuilt it. This all didn´t solve the problem. Then I uncommented path calls for the case that this error happens because the generated build file path exceeds the windows max path length of 255 characters. This also didn´t work.
I would be thankful for any hint!
I just changed my libraries to latest version and problem solved. for me it was 25.1.1 and i changed them to 25.2.0
compile 'com.android.support:appcompat-v7:[latest-version]'
compile 'com.android.support:design:[latest-version]'
compile 'com.android.support:support-v4:[latest-version]'
compile 'com.android.support:cardview-v7:[latest-version]'
compile 'com.android.support:recyclerview-v7:[latest-version]'
Hope helps someone ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With