Category "android-studio"

Evenly distribute elements on screen

I want to evenly distribute the elements "checkbox, desayuno,elegir hora" to the full width of the screen.After the "elegir hora" button there is a small Textvi

Gradle threw an error while downloading artifacts from the network .. Exception: Gradle task assembleDebug failed with exit code 1

I just started with app development with flutter, but am not even able to run the test app. This is what come on console : Launching lib/main.dart on AOSP on I

Heads up push notification not doing the Pop up function

I am new to Android and I have been trying to show a Heads up action push notification just like whatsapp does. This is my configuration for my notification:

Heads up push notification not doing the Pop up function

I am new to Android and I have been trying to show a Heads up action push notification just like whatsapp does. This is my configuration for my notification:

The android sdk location cannot be at the filesystem root

I have installed Android Studio in the F:\ drive. My Flutter project is in the E:\ drive. The Flutter plugin is installed in the Android Studio. But when I open

\debug\stableIds.txt: error: failed to open: the data is invalid. (13)

Someone, please give some suggestions on this error. android resource linkage failed: \debug\stableIds.txt: error: failed to open: the data is invalid. (13).

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