Category "android-studio"

Always make the prefix text in text input layout visible like the hint

I am having a prefix text in a Text Input Layout but it only shows when i click inside the Text Input Edit Text which is inside the Text Input Layout that has m

Android Studio: Installation failed due to: 'device 'xxxxxxxx' not found'

I'm struggling with an issue connecting Android Studio to my Google Pixel 2. When I plug my phone into my laptop, Android Studio now recognizes the physical de

ImageButton to show image of ImageView onClick

I want an ImageButton to change its image when clicked on it. But the image that it changes to has to be the image from an ImageView. Is this possible? EDIT: in

How to display .svg Image URL in JetPack Compose? [duplicate]

I have svg image Url, I want to display the image in Jetpack Compose.

HAXM can't be installed

When I tried to install HAXM it stopped and prompted me The system requirements are not satisfied. I have checked the log file for errors. I found that the vmx

Android studio can not recognize manifest file

My Android Studio Chipmunk can not recognize AndroidManifest.xml files in all projects. Other .xml files are correctly recognized. AndroidManifest is recognized

Saving an AnimationDrawable object to a file

I am very new to android development and trying to make an application that will convert a video to GIf using MediaMetadataRetriever and AnimationDrawable. I am

Unable to make field private final java.lang.String java.io.File.path accessible

Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @786f3609

Unable to import any library in Android Studio after updating it to Chipmunk

I have recently updated my Android Studio to Chipmunk and I am unable to import any library in it. Here is my build.gradle project level file. App level build

Why can't I set app:helperTextTextColor="@color/red"?

I'm currently watching a tutorial on how to create the "Required*" helper text on a textInputLayout. In the video he is able to set the text color to red using

Image asset not overwriting existing icons, but disappearing

In Android Studio when we create a new image asset, it says the icons will overwrite what is already there, but when we hit finish, the icons disappear on the c

Error when running app on virtual machine in Android Studio

I am fairly new to android studio so please excuse my incompetence. Two days ago I deleted android studio and re-downloaded it and now the emulator refuses to w

Unable to start API 29 emulator (Android 10)

As the title says, I have tried to create an Android 10 emulator, when trying to start the emulator nothing happens, only the phone appears on the screen but th

App crashes when I try to use a progressBar Widget

I have a ConsentForm Activity. Upon pressing the consent Btn (Yes) a dialog where the user has to enter their email pops up. When they enter a valid email and p

android.useAndroidX property is not enabled, why it should be?

I am having an issue with androiDx libraries, so when I am adding shimmer library into my projects or glide photo library or when i update the google play servi

Could not connect to remote process. Aborting debug session. Attach Debugger OK button is grayed out

When I try to debug the app, the emulator sticks on "Waiting for debugger". Meanwhile, in the debug tab, it can be seen that AS is "waiting for application to c

Your project requires a newer version of the Kotlin Gradle plugin. (Android Studio)

I've just updated my flutter project packages to be null-safety compliant and now Android Studio wants me to update my project to use the latest version of Kotl

Dart Analysis problems not shown in editor in Android Studio Bumblebee

After upgrading Android Studio to v2022.1.1 (Bumblebee) Dart Analysis problems shown in the corresponding tab are not shown within the editor itself. Typos on t

AAPT: Error: Resource attr/(various) not found

Having all kinds of problems tonight. Downloaded updated Android Studio and Gradle and coded a little and then started getting these errors. Have tried uninstal

Hilt: java.lang.ClassNotFoundException: Didn't find class "com.kotlin20test.Hilt_MyApp"

I have an error concerning Hilt, I"ve been trying to inject a retrofit interface I created using Hilt, Here is the error: java.lang.ClassNotFoundException: Di