Category "android-studio"

Can I hide certain files and folders in the Project Explorer of my Android studio?

There are many files or folders that should be included in the project for a specific case, such as when building, but are not editable by the user. In the a

How to disable gradle 'offline mode' in android studio 4.2?

Since I updated my Android Studio to 4.2, I am not able to toggle the Gradle Offline mode.

I'm getting an error while generating a signed apk bundle

I have made a simple app in android studio. It builds and runs fine when I test it on an android device, but when I tried to generate a signed apk for the app,

android studio with Java compiler error: string too large to encode using UTF-8 written instead as 'STRING_TOO_LARGE'

When I clean the android project in android studio, the error happen, I have backed to previous commit or different branch, which works find couple days ago, bu

Unable to install Intel HAXM for Android Studio

Intel HAXM is a prerequisite for compiling Android Studio code. When I try to install it through the SDK manager, it downloads fine, but while installing, says:

Build complex PDF in kotlin [closed]

I want to create "complex" (footer, header, cells and pictures) pdf for my android application (kotlin). I've seen some people already asked f

How to add a Lottie animation in Java programatically

I tried to add Lottie Animation to Java (Android) programmatically, but I keep failing. I will show my code below I need to change from drawable to Lottie. This

ImageView.setBackgroundResource

Attempt to invoke virtual method 'void android.widget.ImageView.setBackgroundResource(int)' on a null object reference at com.Adapter.MessageAdapter.onBindView

Android Studio Failed to resolve: org.junit.jupiter:junit-jupiter:

When i try to sync my project or run a unit test it shows me the following error: Failed to resolve: org.junit.jupiter:junit-jupiter: Affected Modules: app Thes

Android emulator device is too big for the screen

Hello i'm using Android studio version 4.1 I'm having a problem when Open android emulator, the size of the device is too big and the screen is only displaying

Change position of icon drawable in TextView

In my case, I have a textView with a drawable icon at the start of it(android:drawableStart), when the text of textView is multi-line, the icon goes in the vert

How to build cordova project with Kotlin

I have a cordova project folder www already in progress. Build this and you will have an Android project. This will create a MainActivity.java file. I don't

Change Package Name after implementation of data binding

I'm using Databinding with one of my project with project name com.abc.def. I've related all my views with binding like ActivityLoginBinding binding = DataBin

Android and Socket.io , send and receive data

I can send data to server.js and it work well but i can't receive data from server.When i click button server.js gets data i think Server.js send data but my Ap

Only the second function is called, Android studio Kotlin

I followed a tutorial on Camerax from the Android Studio website, and I wanted the camera button when pressed to take a picture from the front and the back came

Unknown DataBinding Class

I am newbie to DataBinding in Android and learning it to my own. I have just enabled the DataBinding in my App Gradle File in the Android Tag as: dataBindin

After cleaning gradle, androidx-test.core module throws merged-manifest errors

In a react-native project, ive recently updated to v66.4 from v63.2 after some dependency conflict troubleshooting, i ultimately get a merged manifest error, th

After cleaning gradle, androidx-test.core module throws merged-manifest errors

In a react-native project, ive recently updated to v66.4 from v63.2 after some dependency conflict troubleshooting, i ultimately get a merged manifest error, th

How to make thumb smaller than track in switch button in android studio?

Hy, guys. This tiny problem drives me crazy. I wanted my switch to be like this : , but after a lot of googling, I could not do it. My current button is this

How to make thumb smaller than track in switch button in android studio?

Hy, guys. This tiny problem drives me crazy. I wanted my switch to be like this : , but after a lot of googling, I could not do it. My current button is this