481 questions
0
votes
0
answers
69
views
AAPT: error: resource @drawable/logo not found Even after Clean Install & All Fixes
I am having a persistent build error in a new Android Studio project and I have tried every possible solution.
The error is:
ERROR: C:\Users\ITsupport\AndroidStudioProjects\Ana\app\src\main\res\layout\...
0
votes
0
answers
34
views
Cordova AAPT error resource drawable/notification_icon not found
I have just recently upgraded my cordova environment and now when I compile my app I am getting the following error:
Execution failed for task ':app:processDebugResources'.
> A failure occurred ...
0
votes
0
answers
88
views
Could not find aapt2-8.0.2-9289358-windows.jar (com.android.tools.build:aapt2:8.0.2-9289358)
I am using Android Studio Flamingo
build.gradle(:app) :
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}
android {
namespace 'com.example.guardian'
...
0
votes
1
answer
329
views
Flutter build fails with "Execution failed for task ':sign_in_with_apple:verifyReleaseResources'." AAPT: error: resource android:attr/lStar not found
* What went wrong:
Execution failed for task ':sign_in_with_apple:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
&...
1
vote
1
answer
52
views
AAPT: error: attribute pageColor (aka com.package:pageColor) not found in JakeWhorton/viewpagerindicator
This issue persists in the JakeWharton/ViewPagerIndicator, specifically in the CirclePageIndicator.
<com.viewpagerindicator.CirclePageIndicator
android:id="@+id/blogindicator"
android:...
0
votes
1
answer
260
views
How to use aar file manually and properly?
I've read How can I build an Android apk without Gradle on the command line? and How to compile an Android app with aapt2 without using any build tools?, but both answers don't seem to align with my ...
5
votes
0
answers
708
views
Is it possible to obtain the aapt2 binary file built for the arm64 architecture?
I was trying various methods to use apktool on my Android-based server.
My Android server runs on an arm64 architecture, but when I extracted the aapt2 binary file required for APK building from ...
1
vote
0
answers
125
views
How to disable new JVM resource compiler in Android Gradle plugin for release apk
As per Android Gradle Plugin 4.2.0 (March 2021) release notes
New JVM resource compiler
A new JVM resource compiler in Android Gradle plugin 4.2 tool replaces portions of the AAPT2 resource compiler, ...
1
vote
0
answers
155
views
Prevent resource drawable name obfuscation in release build apk
Since I've upgraded to
gradle-8.2
android.tools.build:gradle:8.2.1
kotlin_version = "1.8.0"
But release apk has resources renamed which is undesired for some post processing of the apk
The ...
1
vote
1
answer
693
views
A timeout exception thrown by AAPT2 during the packaging of React Native application on Android
My react-native project has a 10mb image that I import through "require" with TypeScript.
When building the Android package, an error occurs with message:
> Task :app:...
0
votes
0
answers
121
views
Map Strings to Android Drawable Resource ID, without affecting resource shrinking
My Android library contains ~1300 drawables. For server driven UI, applications need to efficiently retrieve each drawable using a backend specified string ID (assume it's the resource name for ...
0
votes
1
answer
262
views
How to force adding a custom attribute in the android namespace to a resource xml file of an android app
I tried to add a custom attribute in the android namespace to a view in a resource xml file in android app as follows:
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/...
0
votes
2
answers
87
views
Are Android XML namespaces used to locate specific resources? What are they used for in Android aapt?
In an Android XML layout file, we can specify multiple unique namespaces, like so:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom-...
1
vote
0
answers
658
views
Android background's image errors: AAPT error file failed to compile
I have a problems with background's images. I have the same width and height from the last React Native app, which works, but when I edit and paste new image, always I get error:
`* What went wrong:
...
0
votes
1
answer
115
views
How to set custom font for my entire application
I wanted to set custom font for app but I'm receiving an error
I tried to set custom font for my app using the method I saw from google. I added a font resource folder but I got an error saying ' aapt ...