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
6
votes
2 answers

How do I troubleshoot/fix React Native compile error: AAPT: No resource identifier found for attribute 'appComponentFactory' in package 'android'?

We were able to successfully compile our iOS and Android App, Nov 9 in the morning. We compile using: cd android; ./gradlew assembleRelease Between then and now (Nov 14) we added a couple typo-fix commits and when we compiled, the iOS app compiles…
Beau Smith
  • 33,433
  • 13
  • 94
  • 101
6
votes
1 answer

unescaped apostrophe in string

I have searched alot, but nowhere found the answer/solution for following: In Android Studio, I hava a project that works without problems for many years. After updating in 'build.grandle' file compileSdkVersion to '28', buildToolsVersion to…
Bosancero
  • 61
  • 1
  • 3
6
votes
3 answers

app:mergeDebugResources error in Android Studio after upgrade

I am getting a error on build/execution of the Android Studio project. Error: :app:mergeDebugResources FAILED Error:Execution failed for task ':app:mergeDebugResources'. Some file crunching failed, see logs for details I have gone through the…
6
votes
1 answer

Compiling error with Android Studio

I'm trying compile a android application with Android Studio in linux. But I'm get the following errors: Error:org.gradle.process.internal.ExecException: A problem occurred starting process 'command '/home/user/Android/Sdk/build-tools/19.1.0/aapt''…
lfbrandao
  • 61
  • 1
  • 3
6
votes
6 answers

Eclipse: please check aapt is present at "..\sdk\build-tools\23.0.0_rc1\aapt.exe"

Recently, I upgraded my android-SDK to Android M (API 22, MNC Preview). After this, every project reported errors when Eclipse was opened. The error said: "Error executing aapt. please check aapt is present at…
SilentKnight
  • 13,761
  • 19
  • 49
  • 78
6
votes
2 answers

Packaging "hidden" asset files

I'm placing the file '.nomedia' into a folder in order to avoid Android's MediaScanner from detecting the media files in the folder. I need to copy this folder (including '.nomedia') from the APK's assets to the SD card (so other apps can make use…
ChaimKut
  • 2,759
  • 3
  • 38
  • 64
6
votes
1 answer

Xamarin Studio 2 - latest stable update - Error executing task Aapt: The source sequence is empty

I am using the trial version of Xamarin Studio for my final year project consisting an android application. Everything went smooth initially. But today right after updating to the latest stable version, i encountered an error (as stated on the title…
Haziman
  • 63
  • 1
  • 3
5
votes
2 answers

ERROR: Unknown option '--no-crunch' - AAPT error

I have downloaded latest revision (r14) yesterday. but getting this error while running any application ERROR: Unknown option '--no-crunch' Please help...
himanshurb
  • 1,115
  • 1
  • 12
  • 22
5
votes
1 answer

AAPT Error: attribute 'package' in tag is not a valid Android package name

I have looked at the previous answers for this question but the AAPT error still occurs. error: attribute 'package' in tag is not a valid Android package name: 'org.emarti202.gcu.mpd-cw-em'. Despite my applicationId in the build.gradle…
RoxyM
  • 53
  • 5
5
votes
4 answers

Unable to install apk

I am using Eclipse Ganymede with ADT 10.0 plugin and Android3.0 SDK to build my application. When i try to deploy the application on my phone I get the following written on my console: [2011-05-06 10:35:38 - MyProject] Failed to install…
Samuh
  • 36,316
  • 26
  • 109
  • 116
5
votes
3 answers

Cannot install app built on CLI, outside Android Studio – "failed to delete" errors/base.apk code missing

I'm quite new to Android native development and lately experimenting with building directly from CLI without Android Studio (really don't like the IDE and find Gradle overly complex, although I can't get my toolchain running yet...) Using guidance…
Ilmiont
  • 2,032
  • 4
  • 27
  • 44
5
votes
3 answers

BuildException: Failed to execute aapt in Android Studio 3.1 Canary 6

I am facing this issue during gradle build: org.gradle.tooling.BuildException: Failed to execute aapt at…
Malwinder Singh
  • 6,644
  • 14
  • 65
  • 103
5
votes
2 answers

Android xml bundle format doesn't recognize aapt properties

I have tried using Android xml bundle format with example provided in Android Docs, but Android Studio keeps saying that 'drawable' or 'animation' attribute should be defined (See the screenshot) What can be done in this case to fix the…
arslancharyev31
  • 1,801
  • 3
  • 21
  • 39
5
votes
2 answers

Programs running aapt in android sdk from shell and from sbt

I have a weird problem where I cannot run aapt from an sbt command as well as from the shell. I run this command: sbt update package-debug And everything hums along until I get this error: java.io.IOException: Cannot run program…
egervari
  • 22,372
  • 32
  • 121
  • 175
5
votes
3 answers

Process 'command 'F:\android-sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1

Here is the content of my build.gradle file: // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { maven { credentials { username artifactoryUserName …
vikifor
  • 3,426
  • 4
  • 45
  • 75