AAPT2 fails to merge release resources with empty project created by Android Studio 4.1.2
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- android
- Área
- build-system, mobile
Línea de trabajo
Comienza reproduciendo la compilación de release del proyecto de Android Studio con una Activity vacía e inspecciona el fallo :app:mergeReleaseResources para los archivos de iconos indicados en app/src/main/res/mipmap-xxhdpi y mipmap-xxxhdpi. Compara el comportamiento de release y debug y revisa el archivo package.json o la salida de tns info. La tarea estará terminada cuando el proyecto vacío compile y pueda producir un APK de release firmado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
-
CLI:
Android Studio 4.1.2
Build #AI-201.8743.12.41.7042882, built on December 19, 2020
Runtime version: 1.8.0_242-release-1644-b3-6222593 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.19.0-12-amd64
GC: ParNew, ConcurrentMarkSweep
Memory: 733M
Cores: 2
Registry: ide.new.welcome.screen.force=true, external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin
Current Desktop: MATE
uname output:
Linux thrash 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux -
Cross-platform modules:
-
Android Runtime:
affects all runtimes (using 28) -
iOS Runtime (if applicable):
-
Plugin(s):
(default)
Describe the bug
AAPT2 fails to merge release results on an empty project created by Android Studio. Debug appears to work ok.
To Reproduce
- create a new project using an empty Activity
- Attempt to build a release version
Expected behavior
Should build properly, and allow me to sign the APK.
Sample project
Additional context
Running Devuan Linux (amd64)
(from dmesg)
Linux version 4.19.0-12-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.152-1 (2020-10-18)
CPU0: AMD Athlon(tm) Dual Core Processor 4450e (family: 0xf, model: 0x6b, stepping: 0x2)
Memory: 3816144K/4061672K available (10252K kernel code, 1247K rwdata, 3312K rodata, 1596K init, 2264K bss, 245528K reserved, 0K cma-reserved)
Execution failed for task ':app:mergeReleaseResources'.
Multiple task action failures occurred:
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> AAPT2 aapt2-4.1.2-6503028-linux Daemon #0: Unexpected error during compile '/home/bobf/AndroidStudioProjects//app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png', attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> AAPT2 aapt2-4.1.2-6503028-linux Daemon #1: Unexpected error during compile '/home/bobf/AndroidStudioProjects//app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png', attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> AAPT2 aapt2-4.1.2-6503028-linux Daemon #3: Unexpected error during compile '/home/bobf/AndroidStudioProjects//app/src/main/res/mipmap-xxhdpi/ic_launcher.png', attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> AAPT2 aapt2-4.1.2-6503028-linux Daemon #2: Unexpected error during compile '/home/bobf/AndroidStudioProjects//app/src/main/res/mipmap-xxxhdpi/ic_launcher.png', attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
I updated everything as of 3/16/2021. No changes in behavior. Was unable to import projects that were built successfully with earlier versions of Android Studio.
Seems similar to #1394, which has been closed.
All of the icons are defaults created along with the project. I merely created an empty project and attempted to build a release version of it. Normally you would expect this to work, but it's failing with the SAME errors I get when I attempt to build an existing project that built properly with an OLDER version of Android Studio.
- Lenguaje dominante
- C++
- Estrellas
- 563
- Forks
- 144
- Merge medio
- 10 h 46 min
- PR fusionados (30 d)
- 14
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de NativeScript/android
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
NativeScript/android#2039 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
NativeScript/android#2024 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
NativeScript/android#2020 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 42/100
NativeScript/android#2019 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
NativeScript/android#1986 ·
Todos los issues de NativeScript/android
Issues similares
-
AuTest Bug Tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/trafficserver#13714 ·
-
bug build
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
facebookincubator/velox#19143 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
tenstorrent/tt-metal#57393 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
objectionary/eo-graphs#74 ·