Questions tagged [aapt2]

146 questions
5
votes
2 answers

AAPT2 warning about "Unknown chunk type"

I'm building an Android app targeting Android API 33 (Android 13). When I build the app on the command line using gradlew, I see the following warning: aapt2 W 09-02 02:57:09 6715 6715 LoadedArsc.cpp:682] Unknown chunk type '200'. What on earth…
rmtheis
  • 5,992
  • 12
  • 61
  • 78
5
votes
2 answers

Android Build in docker container

I try to run android build on docker container. My dockerfile's contents is here: FROM openjdk:8-jre-alpine RUN mkdir -p /myapp WORKDIR /myapp COPY . . RUN apk add --update nodejs nodejs-npm RUN apk add git RUN apk add zip RUN apk --no-cache add…
zakjma
  • 2,030
  • 12
  • 40
  • 81
5
votes
8 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
  • 665
  • 1
  • 8
  • 22
4
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
  • 406
  • 1
  • 6
  • 21
4
votes
3 answers

Build fails with error: expected reference but got (raw string) #000000

After upgrade to androidx and SDK 28 I get the following error when building my project: .../app/src/main/res/values/styles.xml:90:5-93:13: AAPT: error: expected reference but got (raw string) #000000. The relevant lines of…
olegstepanov
  • 157
  • 2
  • 7
4
votes
1 answer

AAPT error: resource android:attr/lightRadius is private

Android resource linking failed Output: D:\MyApp\app\src\main\res\layout\activity_main.xml:65: error: resource android:attr/lightRadius is private. error: failed linking file resources. Command:…
Alex Tsypurdei
  • 51
  • 1
  • 1
  • 4
4
votes
1 answer

How to build runnable apk with aapt2?

I have a simple android project. This commands compile resources and build apk without dex: aapt2 compile project/res/values/strings.xml project/res/layout/activity_main.xml -o project/compiled_res aapt2 link -o project/apk/unsigned_app.apk -I…
illuzor
  • 615
  • 9
  • 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
4
votes
3 answers

Aapt2 error in Android Studio 3.1.1

I updated android studio from 2.2 to 3.1 and it always give me aapt2 error and build failed. I added android.enableAapt2=false in gradle.properties and my project build successfully with a warning: The option 'android.enableAapt2' is deprecated and…
Libra Tang
  • 73
  • 1
  • 2
  • 7
4
votes
0 answers

Aapt2 error : Using ormlite and while running OrmLiteConfigUtil getting below error after upgrading to Android studio 3 and gradle 3

Normally i am able to build my project but whenever there is a database change i need to run OrmLiteConfigUtil and after running it i get error as below. it never succeeds. I tried exploring other question and found below solution but still it…
3
votes
1 answer

why aapt2 does not generate the same ID than aapt? and what the purpose of Ids located inside R.java?

With the equivalent command line, why aapt.exe output different ids than aapt2.exe? also how work exacly the r.java? I use aapt and aapt2 to produce the r.java like this : "aapt.exe" package -f -m -M "AndroidManifest.xml" -I "android.jar" -S "\res"…
zeus
  • 12,173
  • 9
  • 63
  • 184
3
votes
1 answer

Build android inside docker

Im trying do build an android app made with ionic angular inside a docker image built and im getting the following error The image is build correctly however when i try to run the command ./gradlew bundle i get the bellow error BUILD FAILED in…
3
votes
1 answer

Updated to Android Studio and now receiving AAPT: error: resource attr/type not found error for Navigation

I just updated to Android Studio 3.6.1 and the most up-to-date gradle versions and now my project won't build with the error .gradle/caches/transforms-2/files-2//navigation-common-1.0.0-alpha01/res/values/values.xml:16:5-21-25:…
BlondeSwan
  • 772
  • 5
  • 26
3
votes
0 answers

AndroidManifest error in android or in flutter app also

Whenever i run the flutter run -v i get error in aapt dump xmltree. so now i separately run the aapt dump command so i get the erro in AndroidManifest.xml which is not able to open.…
1
2
3
9 10