90,298 questions
1
vote
2
answers
163
views
Using kotlin.sourceSets DSL to add Kotlin sources is not allowed with built-in Kotlin
I'm trying to update gradle dependencies and use android.sourceSets DSL. I can't seem to find what is wrong with my configuration. How do I correct the gradle files so that I don't use the kotlin....
0
votes
1
answer
60
views
Can you debug your app with a second user?
On various devices you can create additional users. On my device I encounter a strange storage issue: An app I develop cannot access it's external files dirs (while it works on another device). So I ...
-2
votes
0
answers
70
views
Getting the wireless network list with Android Studio [duplicate]
we are developing APKs with Android Studio, and we want to list nearby Wi-Fi networks when a button is clicked within this APK. How can we do this? In other words, we want a window to open displaying ...
-1
votes
0
answers
93
views
How to exclude packages from build
I want to use a part of my Java project as a module for Android app.
My settings.gradle include:
rootProject.name = "APref"
include ':AndroidPref'
include ':JPref'
project(':JPref')....
0
votes
0
answers
37
views
AAPT2 TLS Handshake Failure After Upgrading to Android SDK 35, AGP 8.2.2, and JDK 17 on Windows
I recently upgraded my old Android project (previously targetSdkVersion 28 and compileSdkVersion 28) to API 35.
Here’s what I changed:
1: Installed JDK 17 (Temurin 17.0.18)
2: Installed Android Studio ...
Advice
0
votes
3
replies
46
views
Looking for mobile app design platform like old school Visual Studio 2010
About a decade ago I used and became proficient in using Visual Studio 2010 for development of large Windows Forms Applications. I recently was asked to develop a small smartphone app and am looking ...
0
votes
0
answers
46
views
How to run Ktor server and Compose Android app at the same time in Android Studio (Gradle keeps syncing)
I'm working on a Kotlin Multiplatform (KMP) project that contains:
A Ktor server
An Android app using Jetpack Compose
Problem
When I try to run both the Ktor server and the Android app from Android ...
0
votes
1
answer
36
views
Android Studio (Panda) refactor rename package breaks imports and project compilation in multi-module project with KSP/Hilt
I am experiencing a very frustrating issue when renaming packages in a large multi-module Android project.
Environment:
Android Studio Panda 1 | 2025.3.1 Patch 1
Gradle 9.x
Kotlin 2.x
KSP
Hilt
...
-1
votes
0
answers
58
views
Jetpack Compose: Scaffold bottomBar reserves space when using MainScaffold with NavHost
UI Image For Reference
I refactored my app from a single-screen Scaffold to a shared layout using a MainScaffold that hosts a NavHost and a common BottomNavigationBar.
After this change, the bottomBar ...
4
votes
1
answer
73
views
App crashes with "Activity class not found" error
Previously I could compile and run the official DessertClicker example app without any issues. I'm not sure what changed, but neither my old copy of that project, nor a newly checked out version work ...
-3
votes
0
answers
52
views
How to suppress useless warnings in Android Studio?
The commit code-analysis in Android Studio is in principal a terrific help, but frequently comes up with useless warnings, that are not applicable using my currently specified API-level.
E.g. I keep ...
0
votes
0
answers
76
views
How to enable "hardware input" by default for all emulators in Android Studio?
I would like the Escape button on my keyboard to trigger the Android BackButton on each Emulator by default. This can be achieved by pressing the button Hardware Input.
However, when Android Studio ...
0
votes
1
answer
90
views
After Android studio upgrade, not able to see list of devices in 'Select device' list
I was using an older version (Flamingo 2022) of Android studio. Due to a plugin dependency I upgraded it to Otter (2025), below issue persisted and downgraded to Android Studio Ladybug | 2024.2.1 RC 1 ...
3
votes
2
answers
243
views
"Suspicious receiver type; this does not apply to the current receiver of type ApplicationExtension" after upgrading to AGP 9
In build.gradle.kts (app),
Suspicious receiver type; this does not apply to the current receiver
of type ApplicationExtension. This will apply to a receiver of type
Project, found in one of the ...
-1
votes
1
answer
45
views
Commit-view in Android Studio is showing all files twice
Since a while the Commit-view inside Android Studio always shows me all modified files of my project TWICE:
once under a tree C:\Users\mmo\AndroidStudioProjects\MyProject\x\y\z and a second time under ...