Android studio cannot find aapt

后端 未结 5 1603
执笔经年
执笔经年 2020-12-13 06:22

Hi I am having trouble compiling, I get this error:

Gradle: Execution failed for task \':ElectronicComponentInventorySearch:mergeDebugResources\'.

相关标签:
5条回答
  • 2020-12-13 06:48

    You can try this :-

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

    0 讨论(0)
  • 2020-12-13 06:58

    Aapt is a 32bit application. I am running ubuntu 64bit. I needed some additional libraries. First thing I did was update to 13.04 from 12.10. It broke chrome but this should help.

    To get aapt working (this fixed my issues with the avd as well) just run these two commands:

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

    From this post.

    Now no more problems.

    0 讨论(0)
  • 2020-12-13 07:04

    Just open your Terminal & run this

    sudo apt-get install lib32stdc++6 lib32z1
    

    Actually it was a architecture problem. Aapt expects 32 bit binaries and my system is 64 bits.

    0 讨论(0)
  • 2020-12-13 07:06

    Using Android Studio 0.3.7 on 64-bit Debian 7... this worked for me:

    sudo apt-get install libc6-i386 sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install ia32-libs

    Building with Gradle is fine. Debugging and running the emulator is fine (although still slow as usual).

    0 讨论(0)
  • 2020-12-13 07:09

    The package (32-bit) you are looking for is libbz2-1.0:i386, its 64-bit version is libbz2-1.0:amd64.

    At first enable multi-arch support (if not done already):

    sudo dpkg --add-architecture i386
    

    Now run:

    sudo apt-get update
    

    You can now install the package by:

    sudo apt-get install lib32stdc++6
    sudo apt-get install lib32z1
    
    0 讨论(0)
提交回复
热议问题