Android Studio 1.0.2 Not Building App:Mergedebugresources Error

Android studio 1.0.2 not building app:mergeDebugResources error

I solved the problem by running those commands

$ sudo apt-get install lib32stdc++6
$ sudo apt-get install lib32z1

Ubuntu can't run the aapt on 64 bit before installing this packages

EDIT 19-04-2016 :

Android Studio 2 have the installation guide updated with those packages and bunch more to compile on 64-bit machines correctly

$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

Android Studio 1.0.2 fails build Build tools revision 21.1.2 on Ubuntu 14.04 64bit OS

Ok a work around was to lower the build tools version used. This can be done in the Android Studio under

File>Project Structure

Click on the "app" option on left hand menu and select the 20.0.0 build tools and no errors seen on building basic hello world project.

Libpng error at :app:mergeDebugResources - Gradle Error 42

SOLUTION

I tried opening my file (img_myImage.png) in Adobe Fireworks, which wouldn't open the file, so I opened it in Photoshop which did work, and then I re-saved it as a .png file, which seemed to solve the issue.

Android studio get Error Execution failed for task ':app:mergeDebugResources'. Error Duplicate resources

This error is telling you that you have the same string resource defined in 2 different files. The entry

<string name="test">...</string>

exists in both

  • app\src\main\res\values\strings_sizing.xml AND
  • app\src\main\res\values\strings_conversion.xml

(Note that I simulated this scenario in my Android Studio environment and the build produced the exact same error message that you have posted.)

Error : Execution failed for 'app:mergeDebugResources'

You created res\layout\layout-land

When you should have created res\layout-land.

The landscape XML files should be the same name as their counterpart portrait mode files.

Android Studio: Adding Kotlin to existing Java app ends up in Internal error: unexpected lint return value -1 when building

OK, don't know why, but after removing

apply plugin: 'kotlin-android'

from my 'Core' and 'Global' modules build.gradle now the app builds successfully.

I don't know why the other modules accept the apply plugin: 'kotlin-android' in build.gradle and not 'Core' and 'Global' and I don't even know if I'll be able to use Kotlin in those two modules then, but for the moment the app builds just fine.



Related Topics



Leave a reply



Submit