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
15
votes
3 answers

Illegal char <:> at index 40: com.recognize.app-mergeDebugResources-33:/values/values.xml)

I can't compile my app because of this error com.android.aaptcompiler.ResourceCompilationException: Resource compilation failed (Failed to compile values resource file…
thewolf1119
  • 141
  • 1
  • 12
15
votes
4 answers

Automatically solve Android build Error:Frame pixels must be either solid or transparent (not intermediate alphas). - Found at pixel #4 along top edge

Android Studio (using SDK 19, 21 or 22) shows an error that Eclipse ADT (using SDK 19) does not: Error:9-patch image D:\Workspaces....\res\drawable-hdpi\btn_bg_common_press.9.png malformed. Error:Frame pixels must be either solid or transparent…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
14
votes
2 answers

Android style Resources compile (aapt) failing : Bad resource table: header size 0xc

I just spent a few hours with a horrible Android Resource pre compile problem to do with styles and was wondering could anyone explain what caused it. I fixed it but dont know whats the problem. Not helped by Android saying the error was in…
brian.clear
  • 5,277
  • 2
  • 41
  • 62
14
votes
4 answers

error executing aapt, all of the sudden

I know there are a lot of these topics around but none seem to help in my case, nor describe it exactly. The best similar one is aapt not found under the right path. My problem is that I can be using Eclipse for a whole evening programming,…
pjv
  • 10,658
  • 6
  • 43
  • 60
14
votes
2 answers

AAPT2 compile failed: invalid dimen on Android 3.0 Canary 1 on Windows

I have this problem after upgrade AndroidStudio to 3.0 Canary 1 Error:D:\Project\Freelance\Andoid\sosokan-android\sosokan-android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:911 invalid…
Linh
  • 57,942
  • 23
  • 262
  • 279
14
votes
8 answers

android build splash.9.png error

I have a build fail due to the following error [aapt] res/drawable-xhdpi/splash.png:0: error: Resource entry splash is already defined. [aapt] res/drawable-xhdpi/splash.9.png:0: Originally defined here. Any ideas? Thanks!
sbs
  • 4,102
  • 5
  • 40
  • 54
13
votes
3 answers

aapt.exe crashes when I try to export my Android application from Eclipse

Since I updated two days ago my Android SDK to version API 14 I'm getting troubles using Eclipse Helios on my Windows 7 x64 laptop. When I try to export a project everything is ok until I get to press the "finish" button: then a popup appears saying…
Mangusto
  • 1,505
  • 1
  • 13
  • 29
12
votes
3 answers

What limits are there on the number of Android resources?

One of our apps has several thousand small data files that we're currently packaging as assets. It would help our code if we could package them as raw resources. I have tried to track down what the limits are for the number of resources an app can…
Ted Hopp
  • 232,168
  • 48
  • 399
  • 521
12
votes
8 answers

aapt.exe has stopped working in eclipse 4.3 kepler SDK 22.3 API level 19

when i compile android program in Eclipse4.3 kepler with SDK version 22.3 API level 19 than it throws an error as aapt.exe has stopped working log shows this Problem signature: Problem Event Name: APPCRASH Application Name: aapt.exe …
jabir jazz
  • 187
  • 1
  • 2
  • 10
12
votes
1 answer

Android aapt high processor utilization (and slow!)

I'm having an issue with Android's aapt tool. I run two development environments. Each one is on a quad core rig with 8gb of RAM. One is Windows 7, the other is Ubuntu 10.04. Both are running Eclipse 3.7r2 and ADT 18.0. I build with maven. My…
Jon O
  • 6,532
  • 1
  • 46
  • 57
11
votes
7 answers

Android Studio - AAPT: error: file failed to compile with PNG images

I was working on Ubuntu linux and recently i pulled my project and started working on Win10. From now on i cannot Build/Run my app. There must be a problem with those PNG files in the resources folder. That is the Error output while trying to build…
Panagiss
  • 3,154
  • 2
  • 20
  • 34
11
votes
2 answers

how to set the path to where aapt add command adds the file

I'm using aapt tool to remove some files from different folders of my apk. This works fine. But when I want to add files to the apk, the aapt tool add command doesn't let me specify the path to where I want the file to be added, therefore I can add…
philtz
  • 227
  • 6
  • 14
11
votes
5 answers

Android - resource linking failed / failed linking references

I checked the Local history of my XML files and double checked my Manifest file and found nothing wrong. Before posting the question I went through a lot of similar posts and suggested answers but found nothing relevant to my issue. Down below you…
Thorvald
  • 3,424
  • 6
  • 40
  • 66
11
votes
4 answers

Use XML attribute paddingHorizontal on pre API 26 devies?

Is the XML attribute android:paddingHorizontal that was introduced in API 26 (Android O) only available in 26 and above? Is there a support version of it? I require my minSdkVersion to be much lower than 26. I’m under the impression that the Android…
Sakiboy
  • 7,252
  • 7
  • 52
  • 69
11
votes
5 answers

aapt error 138 processDebugResources

Ran in to this frustrating error today when building/making project, this seems to be since installing Android SDK 22.6 (have tried the 22.6.1 too) using build tools 19.0.1,19.0.2 and 19.0.3. The aapt error is causing R.java not to be generated. I…
scottyab
  • 23,621
  • 16
  • 94
  • 105
1 2
3
31 32