MergeDebugResources problem after updating to 0.5.+ and Android Studio 2.0

1,320 views
Skip to first unread message

Javier Tarazaga

unread,
Jul 15, 2013, 5:33:15 AM7/15/13
to adt...@googlegroups.com
Hello guys, 

Does anyone experienced a .mergeDebugResources problem with the new gradle build version 0.5.1 (or in mi case 0.5.+) and Android Studio 0.2.0? 

This is the exact problem I get when trying to build:

Gradle: Execution failed for task ':mergeDebugResources'.
> java.lang.RuntimeException: Running /Development/android-sdk-macosx/build-tools/17.0.0/aapt failed. See output

Here is the log using --debug mode. 


The strange thing is that just before upgrading to 0.5.+ and 0.2 was working perfect. 

Greg Freyenberger

unread,
Jul 16, 2013, 4:15:39 PM7/16/13
to adt...@googlegroups.com
I am experiencing the exact same issue now that I updated to Studio 0.2.  It has to be something with the new version of gradle.  I can build it just fine if I switch back to 0.4.+

I am trying to compile an application that uses the ActionBarSherlock library.

Xavier Ducrohet

unread,
Jul 16, 2013, 6:32:37 PM7/16/13
to adt...@googlegroups.com
I'm adding better error output for this case. I'll push a new version tomorrow probably to have you all run with the newer error reporting and see if we can track this down.


--
You received this message because you are subscribed to the Google Groups "adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

Greg Freyenberger

unread,
Jul 16, 2013, 6:35:28 PM7/16/13
to adt...@googlegroups.com
Thanks Xavier.  I will post a new error report after your push.

Greg Freyenberger

unread,
Jul 17, 2013, 1:39:24 PM7/17/13
to adt...@googlegroups.com
Ok it seems to be a path length issue with 0.5.+ as my project still compiles with 0.4.+.  I am now getting the following error with 0.5.+:

C:\Users\gfreyenberger\AndroidStudioProjects\HawkeyeFootballProject\HawkeyeFootball\build\exploded-bundles\HawkeyeFootballProjectLibrariesActionBarSherlockActionbarsherlockUnspecified.aar\res\drawable-hdpi\abs__textfield_search_right_selected_holo_light.9.png ERROR: Unable to open PNG file
:HawkeyeFootball:mergeDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':HawkeyeFootball:mergeDebugResources'.
> java.lang.RuntimeException: Running C:\Users\gfreyenberger\AppData\Local\Andro
id\android-studio\sdk\build-tools\android-4.2.2\aapt.exe failed. See output

I moved my project to D:\HawkeyeFootballProject and it builds just fine with that path.  I will just work off of my D drive as a workaround.

Daniel Yee

unread,
Dec 16, 2013, 10:48:19 AM12/16/13
to adt...@googlegroups.com
I used mklink to create a junction folder which works if you don't want to or can't change the actual location.
Reply all
Reply to author
Forward
0 new messages