Questions tagged [aapt2]

128 questions
34
votes
18 answers

AAPT error: resource drawable/... not found

After recently upgrading my android studio, I am not able to build my project anymore. Every time I execute a build, I am struck with the following error: error: resource drawable/splash_screen (aka…
Lucas Romier
  • 901
  • 1
  • 12
  • 20
31
votes
7 answers

Could not find aapt2-proto.jar

See this link (as I suspected) has the POM file and no jar. Important Notes: I am using latest version of react native ... v0.57.3 and also latest version of react-native-cli ... v2.0.1 at this time. I have Java 11 installed in my computer. I am…
Harry
  • 833
  • 2
  • 11
  • 17
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
12
votes
1 answer

Where to find aapt2 logs?

When I try to build my project, I get the following error: In the end it is stated: "check logs for details". Where to find those aapt2 logs?
Eugene Chumak
  • 3,166
  • 7
  • 28
  • 50
10
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 Olavsen
  • 2,565
  • 3
  • 30
  • 50
10
votes
5 answers

Android resource linking failed

does anyone know what is this error and how can I fix this? I am trying to open a source code from Mumble and stucked with this error Android resource linking failed Output: …
Shakib Karami
  • 659
  • 1
  • 4
  • 11
9
votes
6 answers

FAILURE: Build failed with exception

> Executing tasks: [:app:assembleDebug] > > WARNING: The option 'android.enableAapt2' is deprecated and should not > be used anymore. Use 'android.enableAapt2=true' to remove this > warning. It will be removed at the end of 2018. :app:preBuild >…
royalapp
  • 163
  • 1
  • 3
  • 6
7
votes
8 answers

AAPT2 error in Android Studio 3.0.1

I'm trying to get a "hello world" application running using Android Studio 3.0.1 and get the following AAPT2 error output: Error:(16) error: not well-formed (invalid token). Error:(16) not well-formed (invalid…
Akshat Chawla
  • 71
  • 1
  • 1
  • 3
6
votes
4 answers

Why is Android Studio failing to build, with an AAPT2 error on images?

After a recent update, Android Studio fails to build an unmodified project with errors along these lines: > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-4.1.1-6503028-linux Daemon…
John Perry
  • 2,283
  • 1
  • 15
  • 25
6
votes
3 answers

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

I am trying to write an android app, which used to build once upon a time. Now, everytime I build, I get the following error: Caused by: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking…
jay p
  • 125
  • 1
  • 6
6
votes
5 answers

AAPT2 working abnormally in android studio 3.1 both for True and False flag

I am usingandroid.enableAapt2 = false in my gradle.properties file. After updating android studio to 3.1 my project showing a warning to update or remove AAPT2 flag like below: The option 'android.enableAapt2' is deprecated and should not be used…
0xAliHn
  • 16,415
  • 20
  • 78
  • 97
5
votes
2 answers

After Update Android Studio 3.3 to 3.4 AAPT2 error generated

After Update Android Studio 3.3 to 3.4 its getting error. it's getting an error that is AAPT2 and that provide me one suggested me to like this: Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use…
axita.savani
  • 415
  • 3
  • 19
5
votes
7 answers

How to solve Specified AAPT2 executable does not exist on Android Studio 3.2

I've an issue with Android Studio. I'm trying to use it on Windows but I've trouble during the project's build process. First, notice Android Studio is installed on my secondary HDD. When I try to build/run my project I get this error: Specified…
5
votes
0 answers

Android Studio 3.2 alpha 17 Build failed with error: Android resource linking failed

Android resource linking failed Output: /Users/$USER/$PROJECT_DIR/app/src/main/res/layout/main_fragment.xml:21: error: resource drawable/ic_search_24dp (aka $PACKAGE_NAME:drawable/ic_search_24dp) not found. …
Hossam Hassan
  • 595
  • 1
  • 7
  • 19
4
votes
2 answers

failed parsing overlays - Aapt2 - Android Studio

I'm trying to use dlib in Android Studio for my university's project. I did import all the .so files that I needed, but I can't import the shape_predictor_68_face_landmarks.dat... (I want to import it as a raw file) I get AAPT2 error: check logs for…
Cyril
  • 51
  • 1
  • 1
  • 6
1
2 3
8 9