90,397 questions
0
votes
0
answers
25
views
WebView not allowed in privileged process — any safe alternative for system/priv apps?
I’m developing a system privileged app (installed under /system/priv-app) and I need to display a webpage inside the app UI.
However, when I try to use a WebView, the app crashes with:
java.lang....
0
votes
0
answers
30
views
Android LocationManager doesn't set speed to 0 when the device stops moving
I have a simple app that displays the user’s current speed, and I’m using FusedLocationProviderClient for this. When I start the app and begin moving, everything works fine the speed updates correctly....
0
votes
0
answers
66
views
Google Play warning about 16-KB page size — libgmm-jni.so not supported. How to fix?
Google Play is warning that my app does not support 16-KB page size. My app currently supports only 4-KB pages.
When I checked my AAB using the APK Analyzer, I found that the file libgmm-jni.so does ...
0
votes
0
answers
38
views
Unable to view screen mirroring on android studio with samsung device
I am using Android Studio's latest version, but when I connect my Samsung device with android os 15, then i'm unable to view the screen(via the screen mirroring feature) on Android Studio. What I am ...
0
votes
0
answers
21
views
Image is slightly tilted after exporting the image from Insta 360 Camera
When I export an image using my code, the resulting image in online view appears slightly tilted. However, when I export the same image using the official Insta360 app (from the Play Store), the image ...
1
vote
0
answers
33
views
Android Studio keeps on loading files in Android File Structure Tab
Everything works when viewing the file strucuture in Android Studio's Project window by selecting the "Project Files" view. However, when I switch to the "Android" view it shows &...
3
votes
1
answer
149
views
Error: Plugin [id: 'com.android.application', version: '8.13.0'] was not found in any of the following sources
I'm getting this error when I try to sync my Android project in Android Studio:
Plugin [id: 'com.android.application', version: '8.13.0', apply: false] was not found in any of the following sources:
...
0
votes
1
answer
53
views
Gradle says that existing distribution doesn't exist
Just trying to run (By that green 'play' button in upper panel) my android app via android studio and on build stage gradle throws up this error message:
The specified Gradle distribution 'https://...
1
vote
0
answers
62
views
Android emulator not running from Play button in both IntelliJ and Android Studio on Linux, but it does from command line, and logcat show nothing
PROBLEM
Hi, I have IntelliJ Ultimate 2025.2.4, and Android Studio 2025.2.1. When I create a new default project in either one > download all the sources it needs > sync gradle > then click ...
0
votes
2
answers
50
views
There are two style in Android studio logcat
Why there are two different logcat style in Android studio
I check any setting and filter text but cannot find the reasons.
How to remove the year and package name in logcat?
Why there are two ...
2
votes
1
answer
60
views
Sorting the file structure list (Ctrl+F12)
Pressing Ctrl+F12 displays the file structure with a list of all fields and methods. Is it possible to change the sorting of this list so that the fields are displayed first and then the methods?
The ...
0
votes
0
answers
28
views
how to add custom environment variables to use in build.gradle in Androidd Studio
I have build.gradle setup with signingConfigs as below:
SystemConfig90 {
storeFile file(System.getenv("KEYSTORE_PATH_90"))
//storeFile file('/Users/bhaskarrajaryal/...
1
vote
0
answers
88
views
Select configuration element in the tree to edit its settings
I am getting below error message in Android Studio Narwhal after update
Build, Execution, Deployment
Build Tools
-- Gradle
I am getting below message in settings window
Select configuration ...
0
votes
0
answers
85
views
Why does BottomNavigationView briefly switch to HomeFragment before returning to SettingsFragment after theme change?
I'm facing a weird UI flicker issue in my Android app when using BottomNavigationView and switching between light/dark modes.
Here’s the scenario:
I have a single MainActivity that hosts multiple ...
2
votes
0
answers
130
views
Imported target "react-native-nitro-modules::NitroModules" includes Error
Getting error in Android Studiio after installing below packages:
"react-native-iap": "^14.4.23",
"react-native-nitro-modules": "^0.29.6",
Error
CMake Error ...
0
votes
0
answers
61
views
while running a program in Android studio i am getting java.lang.nullpointerexception [duplicate]
while running a program in Android studio i am getting java.lang.nullpointerexception. xml, java and androidmanifest files all are error free but i am still getting this error tried several things ...
1
vote
0
answers
32
views
How to enable "dual clock" on Android Studio
I'm trying to profile my app on the latest Android Studio (2025.1.4). I tried profiling my app, but, when I tried to switch from "Wall Clock Time" to "Thread Time" it said, "...
0
votes
1
answer
87
views
How to debug code generator files (that runs with `build_runner`) in flutter dart and android studio?
I am crating a custom code generator with the source_gen package.
I want to add break points in the generator class and debug my code when I running dart run build_runner build command.
Is there any ...
0
votes
0
answers
27
views
Android MediaRecorder creates .m4a file with no audio
I'm using Android Studio trying to record audio in an Android foreground service using MediaRecorder. The file is created successfully, but when I play it, it contains no audio. Here's the relevant ...
3
votes
1
answer
65
views
Unresolved reference: implementation' in build.gradle.kts file when adding dependencies
I'm new to Android and I'm following this tutorial(https://developer.android.com/develop/connectivity/cronet/start#java)
It says to add this dependency in my build.gradle.kts file, it looks like this:
...
0
votes
0
answers
143
views
Jetpack Compose: PdfViewerFragment (androidx.pdf:pdf-viewer) not displaying PDF inside AndroidView
I am trying to display a PDF document with PdfViewerFragment from the library
androidx.pdf:pdf-viewer:1.0.0-alpha10 inside a Jetpack Compose UI.
I’m using AndroidView to host the fragment.
The problem:...
0
votes
0
answers
176
views
Error with gradle when running gamemaker project for android
This is the error i always get when i try to run my program with android studio:
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by net....
0
votes
0
answers
40
views
Google Maps iOS imports not recognized in Android Studio after switching from CocoaPods to Swift Package Manager in KMP project
I am building a KMP app, and I was using CocoaPods to integrate Google Maps into an iOS app. I have now switched to the Swift Package Manager, code is working in Xcode, the build succeeds, and it ...
2
votes
1
answer
53
views
Unresolved reference for BuildConfig field in Android Studio when using buildConfigField
I’m trying to pass a local environment variable into my Android project via Gradle and then access it in my Kotlin code. The idea is to configure Firebase Emulator host dynamically.
In my app/build....
2
votes
1
answer
402
views
Kotlin compiler error in Android Studio after using "Replace with new library catalog declaration" quickfix
NOTE: Scroll to the bottom for the exact reproduction steps.
When I add the dependency com.squareup.okhttp3:okhttp:5.1.0 to build.gradle.kts (app module), apply the "Replace with new library ...