Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:Execution failed for task ':app:mergeDebugResources'. > java.lang.ArrayIndexOutOfBoundsException (no error message)

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!

like image 442
Noureddine Ouertani Avatar asked Nov 08 '22 13:11

Noureddine Ouertani


1 Answers

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 ;)

like image 122
Aref Bahreini Avatar answered Nov 14 '22 22:11

Aref Bahreini