Questions tagged [aapt]

Android Asset Packaging Tool is the resource compiler for Android apps.

The Android Asset Packaging Tool (aapt) takes your application resource files, such as the AndroidManifest.xml file and the XML files for your Activities, and compiles them. An R.java is also produced so you can reference your resources from your Java code.

Reference: http://developer.android.com/tools/building/index.html

473 questions
37
votes
14 answers

aapt not found under the right path

I just updated ADT, than the SDK and now I have in only one project the issue, that my aapt isn't found Error executing aapt. Please check aapt is present at /opt/android/platform-tools/aapt The path is correct, I checked twice and more…
WarrenFaith
  • 57,492
  • 25
  • 134
  • 150
37
votes
5 answers

Android studio cannot find aapt

Hi I am having trouble compiling, I get this error: Gradle: Execution failed for task ':ElectronicComponentInventorySearch:mergeDebugResources'. java.io.IOException: Cannot run program "/opt/android-studio/sdk/build-tools/android- 4.2.2/aapt":…
omegacore
  • 1,712
  • 2
  • 12
  • 16
35
votes
12 answers

Cannot build android project using Android Studio - Gradle 1.7

I'm having lots of problems with Gradle and Android Studio. Making changes in any resource in the project can randomly give an exception during compilation, this is what i see in Android Studio: Gradle: Error while executing aapt command Gradle:…
Luca Vitucci
  • 3,674
  • 4
  • 36
  • 60
33
votes
4 answers

Override layout xml from android framework

Problem I want to override a layout file from android namespace, e.g. R.layout.popup_menu_item_layout (which is referenced from code as com.android.internal.R.layout.popup_menu_item_layout). By saying override, I assume declaring an xml file in the…
azizbekian
  • 60,783
  • 13
  • 169
  • 249
26
votes
14 answers

getting " 'android:icon' attribute: attribute is not a string value” error while uploading an APK to the play store

Background After so many hours of my free time, I'm ready to publish my very first app to the play store, but sadly I'm having difficulties uploading the signed app. I've successfully exported the app with the keystore I've created (all via Eclipse…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
25
votes
8 answers

Error: Cannot run aapt

When I compile an android application ( I tried with the sample ones from the sdk). I get this error: >Error executing aapt: Cannot run program "/home/roel/projects/sdk/build-tools/18.0.1/aapt": >error=2, No such file or directory: error=2, No such…
user1104939
  • 1,395
  • 2
  • 13
  • 25
23
votes
4 answers

ADT 22 - missing aapt.exe after upgrading

At work, I need to use maven with Android. maven uses appt.exe for its own compiling process. ever since I've upgraded to ADT 22 , maven says it can't find this file, and it's right- the file is gone from "...\platform-tools" . I've tried to…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
22
votes
15 answers

Resource drawable not found but they exist in drawable folder

I'm working on an android application for about 2 months. Almost each time I created custom drawable when I tried to build project I got Android resource linking failed error and after that the name of drawables that couldn't located by android…
Mr.Sha1
  • 530
  • 1
  • 3
  • 18
22
votes
2 answers

How can I use Android aaptOptions?

What are the meaning of the aaptOptions.noCompress, etc.; can anybody explain them to me? android { aaptOptions { noCompress 'foo', 'bar' ignoreAssetsPattern…
snowdream
  • 933
  • 2
  • 13
  • 27
19
votes
14 answers

Android Packaging Problem: resources.ap_ does not exist

I am trying to fix a problem in Eclipse for like 3 hours and I haven't made any progress. Tomorrow is the customer coming to look at my app, and I have no time left. This is really frustrating! This morning when I was coding and I wanted to run my…
Galip
  • 5,435
  • 10
  • 37
  • 47
19
votes
1 answer

aapt not found when building new Android app in NetBeans

I just installed NetBeans and the Android SDK following the instructions here. I am running Ubuntu 9.10 (Karmic). NetBeans is 6.7.1. The Android SDK is version 7. When I try to compile a new project it gives me the following error: Execute failed:…
Oz.
  • 5,299
  • 2
  • 23
  • 30
18
votes
3 answers

How to use aapt2, where is the documentation?

I have used aapt p to package resources and generate R.java. But when I upgraded to Android 24, I found aapt2.exe. Should I use aapt2.exe? How do I use it? I could not find any documentation about it.
chenie
  • 195
  • 1
  • 1
  • 5
17
votes
4 answers

com.android.ide.common.process.ProcessException: Failed to execute aapt! What can I do?

I’m getting error when I'm trying to run on Android Device! I have no idea what is happening! What can I do to solve it? FAILURE: Build failed with an exception. BUILD FAILED Total time: 7.791 secs * What went wrong: Execution failed for task…
Caio Frota
  • 185
  • 1
  • 1
  • 7
17
votes
2 answers

Command aapt is not found

I wanted to use the aapt command on a Mac with the android sdk (folder /build-tools/24.0.1). But whenever I try to use the command I get the message that the command is not found (aapt/aapt2). This doesn't work neither in the Terminal nor in Android…
Eve
  • 1,153
  • 1
  • 15
  • 34
16
votes
7 answers

How to preserve line breaks in xml resources in Android?

I'm trying to use multi-line constants (defined in .xml file under /res/values/ folder), but it seems it's impossible to preserve line breaks there - they all being converted in spaces. I've tried to play with "formatted" attribute of strings…
Denys Avilov
  • 427
  • 1
  • 4
  • 8
1
2
3
31 32