Questions tagged [android-studio]
Use for questions about using Android Studio, an official IDE by Google targeted at Android app development. Do NOT use for questions about programming for Android in general; instead, use the [android] tag.
90,322
questions
0
votes
0
answers
4
views
Applying audio to video background using ffmpeg_kit_flutter package not working in flutter
I am trying to merge video and audio and downloading the video in a flutter app using ffmpeg_kit_flutter package, it works fine with the videos that recorded by screen recorder app which records the ...
0
votes
0
answers
9
views
cannot create AVD
Im installing Android Studio for the first time, and when Im trying to create a virtual device, it shows the error: An error occurred while creating the AVD. See idea.log for details. but i cant find ...
0
votes
0
answers
13
views
Can't connect to API with phone using Android Studio
When I try to call any API endpoint using retrofit it gives me error -> Failed to connect to /10.24.26.180:5294
If I try it on emulator with ip 10.0.2.2 it works fine.
My phone is connected to ...
0
votes
0
answers
5
views
Android Studio Emulator displays white screen
I have created an Android application with Android Studio which was compiling and running fine.
I had to switch laptops recently, and when I open the same project on the new laptop it compiles, but ...
0
votes
0
answers
3
views
Android Studio Device Manager loses the devices that i create after closing the program
Im getting the message "User mydevicename no longer exists as a device" whenever i reopen Android Studio after closing.
It looks like for some reason android studio is changing the format of ...
-2
votes
0
answers
17
views
Cannot resolve symbol 'appcompat' in the Main Activity
MainActivity.java file code:
import androidx.appcompat.app.ActionBarDrawerToggle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.view.GravityCompat;
import androidx.drawerlayout....
0
votes
0
answers
12
views
How to solve this Room "Not sure how to convert a Cursor to this method's return type": which method?
error: Query method parameters should either be a type that can be converted into a database column or a List / Array that contains such type. You can consider adding a Type Adapter for this.
kotlin....
0
votes
0
answers
18
views
Changing Android Studio IDE color per project?
currently I'm programming in more than two Android Studio projects at the same time, so when I try to switch between projects always select wrong one. I'm wondering if there is a way to identify each ...
0
votes
1
answer
32
views
Creating an android library compared to creating an app
I am wondering what are the difference when creating an android library compared to when creating an android app. What I mean by differences is basically what files would I need to keep compared to ...
0
votes
1
answer
21
views
Android studio - kotlin: Inconsistent JVM-target compatibility detected for tasks 'compileJava' (21) and 'compileKotlin' (1.8)
I'm doing a project in a course for multi module project and I walked into a problem.
when trying to sync the gradle it throw me the error:
Execution failed for task ':buildSrc:compileKotlin'.
...
-2
votes
0
answers
12
views
I can not fetch friend list for a user from face book. Can anyone help me how can I fetch a user's friend list from face book for android? [duplicate]
I can not fetch friend list for a user from face book .Many site show "The restriction on accessing a user's friend list means that developers using Facebook's Graph API can no longer retrieve ...
0
votes
1
answer
36
views
Open for editing in android studio is not working [closed]
After Click on "Open for editing in android studio", a windows is appearing for some millisecond but project is not opening in this. I uninstalled Android studio but it is not working. This ...
0
votes
0
answers
16
views
Is "Test subscription-specific features" limited to a maximum of six times to test subscriptions in Google Play test environment?
The following content comes from the article.
Test subscriptions renew more quickly than actual subscriptions, and test subscriptions can renew a maximum of six times.
A: Does this imply that Google ...
0
votes
0
answers
25
views
Android Studio: Error running 'myProject': The application could not be installed
My application does not run on an emulator and a real device, and there are no details of the error. I tried all the tips I found on ~20 google pages, but nothing helped. Does anyone have any idea ...
-4
votes
0
answers
26
views
App is crashing on foldable android device [closed]
I do not have much details on the crash logs yet, but app is crashing on Xiomi Mix fold 3 device. What could be the possible reason ? (App works fine on Samsung Galaxy Fold)
Suspecting the issue ...
0
votes
0
answers
6
views
How to move imageview in Jbox2d like in simple code setTranslationX(); getTranslationY type Movement
How to move imageview or any other view in jbox2d library used from jawnypoo PhysicsLayout a custom library from jbox2d I want to move objects views left right and up down I don't know how to do so ...
0
votes
0
answers
34
views
Error when integrating passkey with Android
I'm currently working on implementing passkey authentication for an Android application, using this documentation: https://developer.android.com/training/sign-in/passkeys#kotlin
For authentication, I'...
-2
votes
0
answers
25
views
The model.tflite produces different results on Python and Android
I couldnt exactly figure out what the problem is. I'm trying to make a prediction with a data input consisting of 145 numbers, and my model produces accurate results in Python. However, when I load ...
0
votes
0
answers
6
views
I can't log out in Android Studio
I was logged in Android Studio Giraffe | 2022.3.1 Patch 2 with some working google account but when a project was finished my account was deleted. So, when I hover a mouse over an profile icon in ...
0
votes
1
answer
9
views
Setting up Protobuf Android Studio Giraffe
I am encountering build errors trying to setup protobuf in my Android Studio project.
I’ve been trying to learn more about Datastores in Android development and am currently in the process of trying ...
0
votes
0
answers
21
views
How can I display the nickname from the database in the textview?
I know it kinda easy though ive been struggling since im new to the programming industry. I dont know how should I display the nickname from the database which it is already which is already stored in ...
0
votes
0
answers
12
views
Gradle downloading too slow how to download it manual?
"I am currently using Linux Mint LMDE6.
Android Studio: Hedgehog | 2023.1.1
Kotlin version: 231-1.9.10-release-459-AS9392.1.2311.11076708
I am working on a Kotlin project and encountering an ...
0
votes
1
answer
23
views
Rendering Problem on Samsung Devices with Android 14 and One UI 6
I am puzzled. I have done this layout in Android Studio. It is rendering fine on all devices except Samsung with Android 14 and One UI 6. Can you spot any problems in this XML causing the Text View to ...
0
votes
0
answers
14
views
Gradle not building android project due to failing to create Jar file
Whenever i try to build an android project in android studio via gradle i get this error (i'm using gradle 8.5) :
Cause: invalid entry CRC (expected 0x473cfe14 but got 0xa0ec9cbb)
and
java.util....
-3
votes
0
answers
24
views
La localisation sur le téléphone émulé fonctionne mal [closed]
Sur le téléphone émulé que je viens de créer, la connexion internet est ouverte ainsi que la localisation.
Quand je démarre la localisation dans les contrôles étendus du téléphone émulé la fenêtre ...
0
votes
0
answers
20
views
Hide tap jacking alerts on android app below Android 12
I want to hide tap-jacking alerts in my Android app. I was able to do it on Android 12 and above by using getWindow().setHideOverlayWindows(true);. Can someone help me achieve this on versions below ...
-1
votes
0
answers
17
views
Creating avd from command line
I am trying to create avd with avdmanager commands. First it was throwing an xml exception because I had JAVA 17. I downgraded JAVA to JAVA 8. Then ran the command:
avdmanager create avd --force --...
0
votes
0
answers
40
views
Android studio Could not resolve project :sdk
I hope someone can help me.
I can't start my app on Android Studio because it gives me the following error:
`Could not determine the dependencies of task ':app:mergeDebugAssets'.
Could not resolve ...
1
vote
1
answer
59
views
How to change the application launcher name with different build flavors and different locale of user in Android Studio?
I want to change the application launcher name by build flavors and the locale of user.
Assume, i build four application with different build flavors and locale and the match name :
+ First : Build ...
0
votes
0
answers
26
views
TextInputLayout as parallelogram
I wanna create TextInputLayout in shape parallelogram. I have it with ConstraintLayout.
I would like my textinputlayout to be in the shape of a parallelogram. I don't know how to enter such a slope... ...
0
votes
1
answer
17
views
Could not resolve all files for configuration ':app:debugCompileClasspath' android studio kotlin compose
When i click run app, shows this error
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:...
0
votes
0
answers
7
views
I'm experiencing problem of "Expecting element" in def nav_version = "2.7.5 for the creation of bottom navigation
My Android studio is complaining of "Expecting element" in "def nav_version = "2.7.5" after adding navigation dependency in build.gradle.kts.
Please, I want to know the ...
-1
votes
0
answers
14
views
Getting a black screen in Android Virtual Device in Android Studio
I use Android Studio for developing my Android apps. I often face a problem where the Android Virtual Device shows a black screen like the following:
Android Studio shows that the device is running ...
0
votes
0
answers
11
views
Android Studio not show build project or run button
I am working on a project and moving it from my old AS to the latest AS Hedgehog but it turned out to be hard for me. After opening my project from file, AS just showed make module under Build section ...
-1
votes
0
answers
14
views
Android Studio, what to import?
Im new in programing for android with Android Studio and some hours I have worked but need some tips to spent less hours when coding:)
-When Im using some code from net nobody write what module I ...
0
votes
1
answer
49
views
Android Studio Hedgehog | 2023.1.1 doesn't work "Open for Editing in Android Studio" in Flutter
The first execution at project creation is ok.
After adding Firebase it doesn't work "Open for Editing in Android Studio"
The error showing below....
0
votes
0
answers
7
views
package android.support.design.widget does not exist import android.support.design.widget.TextInputLayout;
package android.support.design.widget.TextInputLayout does not exit ,i got this problem even thought i refactor to android x can someone help me fix this
(https://i.stack.imgur.com/dM8qI.png)
and this ...
0
votes
0
answers
10
views
No signature of method android studio
Build file 'D:\PPB\GameTicTacToe\app\build.gradle' line: 5
A problem occurred evaluating project ':app'.
No signature of method: build_e64yibzjevz538uihm15zoqh2.android() is applicable for argument ...
0
votes
0
answers
24
views
Firebase Analytics not showing data
I made an app which is connected with firebase analytics. when i create my app first it was working fine and data is showing in firebase analytics dashboard, till nov 5 it was working fir but now ...
0
votes
0
answers
8
views
Package type "bundle" is not supported during cordova run
I am not able to generate bundle for android. APK is generated correctly but while exporring bundle for play store, I am getting the following errors.
Package type "bundle" is not supported ...
0
votes
1
answer
26
views
Android Studio error with colorpicker: Could not resolve all files for configuration :app:debugRuntimeClasspath
I am adding a color picker to my app. When I run the app with this dependency:
`implementation 'com.github.duanhong169:colorpicker:1.1.7'`
I am consistently getting the red font error messages:
...
0
votes
0
answers
15
views
Incomplete installation on Android Studio 2022.3
I'm trying to install Android Studio 2022.3, but after the installation is complete, the first time I use the ide, I'm
informed that Android SDK (unavaliable) and Performance (intel HAXM) (unavaliable)...
0
votes
0
answers
20
views
'gradlew.bat' is not recognized as an internal or external command React Native 0.72.7
I'm creating a fresh react native project and followed all the steps from their official docs: https://reactnative.dev/docs/environment-setup but it says that 'gradlew.bat' is not recognized as an ...
0
votes
0
answers
15
views
How to build android studio app from github? (if it's android studio app ?)
I tried to get a piano learning application from github, installed android studio but can't build the climprPianoPerformer.
Here is the github : https://github.com/Boman/ClimprPianoPerformer
I never ...
0
votes
0
answers
14
views
Why does my CPU utilization gets to 100% when I open Android Studio? [duplicate]
The Title is 70% of the total context here, even though I have Ryzen-5 7th gen and 16gb ram which are more than the specified requirements, but when I open android studio the CPU utilization in the ...
3
votes
2
answers
85
views
What the failure "Operation is not supported for read-only collection" in Android Studio is about?
Yesterday I updated the Andorid Studio to the latest one:
Android Studio Hedgehog | 2023.1.1
Build #AI-231.9392.1.2311.11076708, built on November 9, 2023
Runtime version: 17.0.7+0-17.0.7b1000.6-...
0
votes
1
answer
27
views
kotlin.UninitializedPropertyAccessException in Android Studio
When I use firebase auth in my project
I've got this error
com.example.blooms_broccoli, PID: 7900
kotlin.UninitializedPropertyAccessException: lateinit property auth has not been initialized
this is ...
0
votes
0
answers
11
views
android studio build failed because of AAPT2
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':ScrewAndBoltsPuzzle:processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal....
-1
votes
0
answers
16
views
Intel Mac Android Studio: ndk fails to install
When trying to add android ndk library, specifically version 23 or 26, through android studio SDK Manager, all I get is the following error
Preparing "Install NDK (Side by side) 23.1.7779620 (...
-1
votes
0
answers
8
views
Expand InputText if Switch button set to "yes" in Android Studio
I am trying to add line where user can write how many miles he has to travel (if he needs to travel) to next city, when toggled switch button. I am not that experienced in Android Studio and didn't ...