Questions tagged [android-build]

For questions related to the build process of Android Applications, for all build tools.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

JavaMail for Android works for the debug version but not the release version [duplicate]

I am using javax.mail targeting Android: implementation 'com.sun.mail:android-mail:1.6.7' implementation 'com.sun.mail:android-activation:1.6.7' Code: try { // Create a Properties object ...
Hong's user avatar
  • 17.7k
1 vote
1 answer
45 views

Why does my Android build always attempt to download camera-mlkit-vision-1.3.0-rc01.pom etc

My android builds downloads section shows the multiple attempts are always made to download the following why does it do this for every build? how do i stop this behaviour? why does maven repo show 1....
Hector's user avatar
  • 3,966
0 votes
0 answers
125 views

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0

i am using latest version of android studio 2022.3.1 with gradle 8.3 and gradle plugin version 8.1.1 but getting this error: Deprecated Gradle features were used in this build, making it incompatible ...
Ahmed Ali Hashmi's user avatar
0 votes
0 answers
23 views

How can I solve the normal vertex problem in the Android Build Unity?

In my Unity 2022.3.2f1 project, I'm experiencing an issue with normals on a 3D object. The problem is that the normals appear to be incorrect, causing the material to render strangely in the current ...
ligary's user avatar
  • 1
-1 votes
0 answers
26 views

Unity game is getting crashed on the startup

Getting this error. I have tried multiple solutions but still getting the error. `FATAL EXCEPTION: main Process: com.GameOnn.GuessTheMovieQuiz, PID: 27569 java.lang.RuntimeException: Unable to get ...
Aditya kumar's user avatar
0 votes
0 answers
23 views

Android compilation error Task :app:checkDebugDuplicateClasses FAILED

I have requirement where Android App wants to include 2 third party libs e.g. LIB1.aar and LIB2.aar LIB1.aar and LIB2.aar are using the one common J2XX.jar for FTDI(USB) connectivity When we are ...
brajabasi padhy's user avatar
0 votes
0 answers
24 views

With Gradle 8+ and Android Gradle Plugin 8.0.0, how to obtain the GAV information for all the dependent JAR and AAR in project?

I am trying to upgrade a Gradle plugin under Gradle 8 and AGP 8. This plugin was originally compiled with AGP 3.5.4, and its registerTransform API can no longer be used in the new environment. While ...
pei wang's user avatar
0 votes
0 answers
12 views

Combine Azure DevOps AndroidSigning@2 tasks

I'm using Azure DevOps to build an Android app I have a pair of tasks to sign both the .apk and .aab outputs - task AndroidSigning@2 displayName 'Sign APK' inputs: apkfiles: '$(build....
Scott's user avatar
  • 45
0 votes
1 answer
25 views

GameObjects materials appearing in Editor but not in Build (disappearing) Problem

As you can see in the editor, I can see and control the player character, but in the build I can only move the player character, but I can't see it! also some other GameObjects materials doesn't ...
Amine Abourifa's user avatar
0 votes
0 answers
50 views

Unable to compile ramdisk with libcryptsetup in AOSP

I am trying to leverage cryptsetup functionality in a custom ramdisk image via AOSP. I would like to call cryptsetup to interact with a specified location during the early-init process of booting. I ...
user37385's user avatar
5 votes
1 answer
518 views

Error when minifying Android app with R8 after upgrading Android Gradle Plugin to 8.0.2

I recently upgraded the Android Gradle Plugin in my Android app project from version 7.4.2 to 8.0.2. However, I'm now encountering an error during the release build when the minifyReleaseWithR8 task ...
JBokMan95's user avatar
0 votes
0 answers
90 views

How to flash locally built aosp OS(built in local system) to raspberry pi/any embedded hardware

I am writing this question after searching a lot in google, there was no complete guide in how to flash android os on a embedded hardware. What i am trying to do, Build aosp with some modifications ...
A.G's user avatar
  • 3
0 votes
0 answers
47 views

Android app build error "Illegal char <:> at index 46: com.mydomain.foo.app-mergeDebugResources-63:/values/values.xml"

I have checked out a few similar posts. This seems to be related to conflicts in resource values. I know this is caused by a library aar. I would love to get a tip on how to find the conflict. I ...
Hong's user avatar
  • 17.7k
1 vote
0 answers
452 views

While generating as signed APK I got this Error :app:minifyReleaseWithR8 FAILED

AGPBI: {"kind":"error","text":"Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in D:\...
Pinkdia Banth's user avatar
2 votes
1 answer
1k views

Missing class org.slf4j.impl.StaticLoggerBinder (referenced from: void org.slf4j.LoggerFactory.bind() and 3 other contexts) when using Pusher library

with R8 enabled (isMinifyEnabled = true) and using "com.pusher.pusher-java-client:2.4.4" library I get the following error for release build: AGPBI: {"kind":"error",&...
user924's user avatar
  • 8,371
0 votes
0 answers
77 views

Any solutions to solve NoClassDefFoundError after upgrade to agp 7+?

As I upgraded agp version from 4.1.0 to 7.4.2 (gradle version 7.5.1), a NoClassDefFoundError exception got and the app crashed. Since I upgraded agp from 4.1.0 to 7.0, dx has deprecated by default and ...
lx94569456's user avatar
0 votes
1 answer
46 views

Build aosp davinci failed

I tried command "lunch aosp_davinci-userdebug" but got the same error. what should i do? In file included from build/make/core/config.mk:353: In file included from build/make/core/envsetup....
hello_world's user avatar
0 votes
1 answer
555 views

I build apk using command eas build -p android but apk not opening in phone

I build apk using command eas build -p android but apk not opening in phone when i open the app showing this page only. please help! i tried build command eas build -p android and am expecting ...
Satyam Choudhary's user avatar
0 votes
1 answer
186 views

Can't set targetSdkVersion = 29

I am developing an Android application which use a native library and native library supports targetSDKVersion = 29 only. I created a new Android project has default targetSDKVersion =31, I tried to ...
Zappy.Mans's user avatar
2 votes
1 answer
67 views

CN1 Android Build not Uploading

I have an older (>2 yrs.) Android app that I need to resubmit to the Play Store. The platform I am working on is Arch and I was using Eclipse for this application. Uploading a newly generated apps ...
rainer's user avatar
  • 3,305
1 vote
0 answers
63 views

Android SDK Build Tool - how to find which dependencies use it?

Context: I am moving our org's infrastructure to Graviton which has arm64 architecture. Our Android build requires multiple build-tool versions. The lowest best build-tools;30.0.3 Problem: I cannot ...
OLIVER.KOO's user avatar
  • 5,664
0 votes
1 answer
219 views

Can I convert an app configured in AOSP to an app using gradle in Android Studio?

I have my legacy version System App which consists of mk files from AOSP. However, debugging or modifying this app is time-consuming and tedious because you have to port it after building the entire ...
asdf9797's user avatar
0 votes
1 answer
249 views

implementation error in android studio gradle

I'm android beginner I want to imlementation file in 'top.fighter-lee:mqttlibs:1.0.1'(github) but I got error. Is there any solution? and I would like to know the cause of the error. It said it couldn'...
kyesia's user avatar
  • 25
1 vote
1 answer
571 views

How to list all possible packages / modules in AOSP via command line?

In AOSP, I often use the following to setup my environment and build target and build the entire image: $ cd ~/aosp $ source build/envsetup.sh $ lunch sdk_phone_x86_64 $ m I also like to use the ...
code's user avatar
  • 5,344
1 vote
1 answer
472 views

Why is there a problem with my JDK even though I installed it with Unity?

JDK Problems I am making a mobile game in Unity 2022.2.2f1 and every time I open the editor, or press play it shows the error: "Unable to find java in the system path. This tool is required to ...
Ethan Tuininga's user avatar
2 votes
0 answers
451 views

Error while specifying compileSdkversion in React Native Expo App

I have built a React Native app using Expo. Testing works fine in the emulator, but when I try to do an Android build I have errors. When I use the command npx expo run:android, I get the following ...
Thviakar's user avatar
0 votes
0 answers
144 views

How can I cache a local copy of Google's Maven Repo?

I'm trying to download a stable version of Google's Maven Repo (https://maven.google.com/web/index.html#) on my local machine. This is part of a larger effort for offline Android Development. The ...
Aaron Zack's user avatar
0 votes
0 answers
91 views

AOSP build error of "AID "vendor_qti_diag" must be prefixed with a partition name"

When I try to build AOSP, I have met the erros as the follows: `Environment variable DIST was set, regenerating... [ 0% 397/86637] build out/target/product/kalama/obj/KERNEL_OBJ/usr ninja: outputs ...
BowinChow's user avatar
1 vote
1 answer
1k views

How to skip Android setup UI by command line CLI after flashing Android AOSP?

How can one skip the Android setup UI by command line CLI (e.g. via adb shell) after flashing a local build of Android AOSP on a physical device? Extra question: how can one automatically sign into a ...
code's user avatar
  • 5,344
1 vote
1 answer
368 views

How to test and debug changes to a local AOSP build using the emulator?

I am interested in building AOSP locally and running it inside of an emulator locally. Is this possible? If so, how can one test and debug the changes locally while running the emulator? Where can one ...
code's user avatar
  • 5,344
0 votes
0 answers
146 views

How to create a persistent service in AOSP Framework that can communicate to native layer in HAL?

How to create a persistent service in AOSP to communicate with the native layer in HAL? For example, I am interested in having a 3rd party application communicate through a persistent service in AOSP ...
code's user avatar
  • 5,344
0 votes
1 answer
170 views

How to modify AOSP to run a bash script on device boot?

How can AOSP be modified to run a bash script on device boot? Which directory should the script be placed in and what defines the order that the scripts are run? Would any permissions need to be added?...
code's user avatar
  • 5,344
0 votes
1 answer
175 views

Is it possible to make gradlew to work with nexus?

I have a build machine for Android app. This machine has no access to the Internet. There is a local nexus repository. Application gradle set up to load dependencies from this nexus repository and it ...
RusArtM's user avatar
  • 1,116
0 votes
0 answers
185 views

How to remove warning: unknown enum constant ISO.DATE_TIME warning in android studio?

There are two warning:- warning: unknown enum constant ISO.DATE_TIME reason: class file for org.springframework.format.annotation.DateTimeFormat$ISO not found One or more classes has class file ...
Jeevan Rupacha's user avatar
0 votes
0 answers
57 views

Android JDK 11 upgrade: package name coming as Android instead of actual package name

When I migrated my app from JDK 1.8 to 11, I am getting apk package name as 'Android' Gradle used: 7.5 aapt output. When i revert my changes, package name is coming as application id which is correct. ...
ravipardeshi02's user avatar
0 votes
0 answers
264 views

Error running cuttlefish on Ubuntu 18.04: failed to set tss addr

I am running into issues running cuttlefish on a physical host running Ubuntu 18.04. This is the error I am seeing when I run launch_cvd: [ERROR:external/crosvm/src/main.rs:2003] crosvm has exited ...
full-of-questions's user avatar
0 votes
0 answers
180 views

copying the file into data/vendor/gnss folder at build time creating problem at boot time

I am trying to copy a file from AOSP vendor/*/hardware/interfaces/gnss/file.txt to /data/vendor/gnss/file.txt using PRODUCT_COPY_FILES in Android.mk file. At build there is no problem and even i can ...
Rajeev's user avatar
  • 147
0 votes
0 answers
46 views

Android - What is the Build.MANUFACTURER name for Transsion

Transsion has two brand names infinix and techno I am trying to filter in Android using Build.MANUFACTURER devices that belong to those brand names in the following list https://developers.google.com/...
BennyP's user avatar
  • 1,737
0 votes
0 answers
46 views

Cordova Android Build Error: CordovaLib:parseDebugLocalResources FAILED

My Cordova Android Project is not building anymore on my new System (MacOS 13.0.1, M1). I pretty sure, that i have installed all necessary requirements (Android Studio, SDK Tools and Platforms(32), ...
f_up's user avatar
  • 23
0 votes
0 answers
22 views

Unable to open application files as eclipse project , Gradle script is also missing (it has manifest))

I received a few application files to rebuild but neither I can open it as an eclipse project nor I can see any Gradle script showing (it has manifest). I want to open it in Android Studio to rebuild ...
Gohil Dhruv's user avatar
1 vote
0 answers
655 views

Android Cuttlefish - Building the Docker image

I'm trying to build Android Cuttlefish based Docker containers and following the official guide here: https://github.com/google/android-cuttlefish/tree/main/docker OS: Ubuntu 22.04.1 LTS Command: ./...
Diego Kvara's user avatar
1 vote
1 answer
1k views

> Task :react-native-camera:generateGeneralDebugRFile FAILED. How to resolve this?

I have added all the configuration as per the docs said. But this error is showing now. What to do? the app should install on simulator on android without error
Muhammad Ahmad's user avatar
1 vote
1 answer
849 views

Android Automotive OS (API 31+) on Raspberry Pi stuck on startup

I am trying to build an Android image for Raspberry Pi 4B with Android Automotive OS instead of the usual Android. Following the instructions on this repository worked from the repo sync down to the ...
Grey's user avatar
  • 116
1 vote
1 answer
283 views

Generate signed bundle errors (Unresolved references) only in release mode

I finalized my app and it ran successfully in debug mode without any errors. I also tried to generate signed apk/abb in debug mode, and all went well. Now, my issue is that whenever I try to generate ...
Mena's user avatar
  • 3,039
1 vote
1 answer
5k views

Unity build does not work in Android 13 (api 33)

When I got the build from the project, the game worked fine on all Androids. But the game crashes on Android 13! And it says that the program has stopped. First, I said that the problem might be with ...
Ali's user avatar
  • 11
1 vote
1 answer
116 views

Android Teamcity error: "The system cannot find the file specified"

I started setting up Teamcity for my Android project. I am doing this for the first time. I am getting this error in the build step: C:\TeamCity\buildAgent\work\5466jhg2a9111046\local.properties (The ...
Droidme's user avatar
  • 1,223
0 votes
1 answer
132 views

Android after adding viewBinding true app can't build

I've fully working application, then I've decided to migrate to viewBinding and it does not build anymore. Here is my error - My gradle setup -
Vaclovas Rekašius Jr.'s user avatar
8 votes
4 answers
1k views

Gradle task to take a build of specific build flavors (more than one)

In my app, I have more than 30 build variants. Every time when I release the app, I need to publish it to different platforms, therefore I build 5 different build variants. Currently, I am doing this: ...
amira's user avatar
  • 416
5 votes
0 answers
997 views

How to detect the invalid position to debug gradle Illegal char errors from index?

I have received this gradle build error: java.nio.file.InvalidPathException: Illegal char <:> at index 43: com.myapp.android-mergeDebugResources-31:/values/values.xml The error points to a ...
AndreaF's user avatar
  • 12k
0 votes
1 answer
1k views

Unable to receive push notification from Firebase console in android release build

I am able to receive FCM notifications from Firebase console in debug build but unable to receive FCM push notification in Android release build. I have added the SHA-1 Key in firebase console and ...
Abhishek Jha's user avatar

1
2 3 4 5
18