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
8
votes
4 answers

Unparsed aapt error(s)!

I'm working with Android in Eclipse and was trying to combine code from a template project I found into the skeleton project that Android creates when you start a new project. This is not an initial setup; have gotten several projects running and…
PaulP
  • 2,325
  • 3
  • 17
  • 17
8
votes
1 answer

Why does Android aapt remove .gz file extension of assets?

When I add a GZIP-ed file to my Android project's assets, the ".gz" extension is stripped when the project is packaged. (So, for instance, "foo.gz" in my assets folder needs to be accessed in code using getAssets().open("foo").) This doesn't seem to…
Ted Hopp
  • 232,168
  • 48
  • 399
  • 521
8
votes
1 answer

Aapt dump badging of apk does not list any launchable activity for activity-alias

I recently changed my AndroidManifest.xml with the following changes: Changed my main launcher activity's name to NewMainActivity. Added an activity-alias with old activity name pointing to new activity. Now, when I do aapt dump badging…
thepace
  • 2,221
  • 1
  • 13
  • 21
8
votes
1 answer

Android Studio 3.0, AAPT2 compile failed - invalid dimen in resource file

I'm using Android Studio 3.0 Canary 3 on Arch Linux and I am playing around with it trying to make a small app. Made some research before posting the question but none of the solutions I found doesn't work for me. Any help would be much appreciated.…
Xhens
  • 804
  • 3
  • 13
  • 33
8
votes
2 answers

AAPT2 failing to merge resources on Docker

I'm trying to build an Android application inside a docker container on a CI server and aapt2 is failing to merge the resources. Base Docker Image is openjdk:8-alpine The packages being installed in my image from alpine repositories are: build-base…
Robert Estivill
  • 12,369
  • 8
  • 43
  • 64
8
votes
0 answers

android build tool adds v4 qualifier to drawable folders by default in generated apk

I have been confused for quite a long time. before build tool v21.0.0, the packaged apk contains the drawable folder structure as below: res/drawable-hdpi res/drawable-ldpi res/drawable-mdpi res/drawable-hdpi However, things changed since v21.0.0,…
Panda World
  • 1,704
  • 1
  • 20
  • 28
8
votes
3 answers

android aapt dump resources no output

When I try to dump an apk resources using the AAPT on Android Jellybean and pre-Jellybean versions, it works fine. It displays the expected output. aapt dump --values resources /system/framework/framework-res.apk But when I try to run this command…
Julian Paolo Dayag
  • 3,562
  • 3
  • 20
  • 32
7
votes
5 answers

Read less info of apk file with aapt tool

I'm using aapt tool to read content of apk file with: aapt d badging myapk.apk But the output is too much. I just need the package name and version name. Any way to limit it? Update: I got it to work on window cmd. Look like this: aapt d badging…
CodeBlue
  • 340
  • 2
  • 4
  • 9
7
votes
1 answer

How to solve Android Libraries custom attributes and package name remapping during build?

Over time our Android project has expanded a great deal, and these days we are creating multiple branded APKs from the same source tree. This has become challenging due to the package naming requirements of Android. We have all of our shared code in…
Neal Sanche
  • 121
  • 1
  • 6
7
votes
3 answers

how to compile/build android aapt on new platform?

I'd like to recompile android aapt for debian amd64 platform. We can have the source code on git but I don't understand how to compile it. There is a simili makefile (Android.mk) which seems not to be complete and dependant to others. There is a…
Jerome VDL
  • 3,376
  • 4
  • 32
  • 33
7
votes
1 answer

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':mergeDevOnlySlDebugResources' only on Jenkins

When I use Android Studio 3.0 Beta 7 and update my project with the Android Gradle 3.0.0-beta7 plugin my project builds fine in both the debug and rc (proguard enabled) variants. When I attempt to build on my Jenkins box, I get a bunch of:…
L7ColWinters
  • 1,342
  • 1
  • 14
  • 31
7
votes
2 answers

Google Play Android .apk Upload "Failed to run aapt dump badging"

It has been almost a year since I last uploaded an App to the Google Play Developer Console (it is a Cordova App that I have signed and zip aligned); follow the same process I have used successfully in the past I am now getting the following…
kris
  • 11,868
  • 9
  • 88
  • 110
7
votes
4 answers

My Commandline shell does not support aapt command

i am working on andriod development and trying to get the list of activities supported by an APK. Most of the answer that I come across talk about following command: aapt dump xmltree AndroidManifest.xml But when I run that command on my command…
Lost
  • 12,007
  • 32
  • 121
  • 193
6
votes
6 answers

Res' does not exist in Eclipse

I am having the issue in Eclipse: Unparsed aapt error(s)! Check the console for output. Output: [2011-08-23 07:57:04 - Penncat AQI] ERROR: resource directory 'C:\Users\Allison\Desktop\penncat app?\penncat app 822\res' does not exist The res folder…
iamallison123
  • 71
  • 1
  • 1
  • 2
6
votes
2 answers

Android resource linking failed AAPT: unknown option '--no-proguard-location-reference'

Getting issue when trying to build apk. Android studio version - 4.0 (recently updated AS) This process shows the error in build - :app:processDebugResources Android resource linking failed AAPT: unknown option…