Category "android-studio"

Apache Commons Net FTP does not throw any exception on wrong credentials

I just managed to upload some files to an FTP server using Apache Commons Net FTP. When I use everything as it should be it works fine, I mean, the file uploadi

Export Android compiler Warning to text file

I want to write all the compiler warnings in a text file. Once we build it, we can see warnings in Build Output as seen in screenshot. Is the file already avail

Android Studio memory profiler have some serious memory issues

I am trying to fix some memory leaks in my apps but I am always fighting with memory profiler instability itself instead of being able to focus on my task. Inte

How to get location fast and only once using fused location provider client in 2021

I am developing a app which has to get the location information (latitude and longitude) of the device only once but as fast as possible. My code is taking too

Can't show/hide menu items on Kotlin - Android Studio

my application has a menu of 3 options, and what I want is that according to a condition that I define, it shows only 2 options, or it shows 3. I have tried all

Can not run the the tflite model on Interpreter in android studio

I am trying to run a TensorFlow-lite model on my App on a smartphone. First, I trained the model with numerical data using LSTM and build the model layer using

Can't import any library to Android Studio and Gradle Failed to Resolve

I have tried these two libraries in order to make Image Zoomable, but I'm facing the same problem. This is the error message Failed to resolve: com.github.Mike

How to use variables from other Activity for buttons in Custom list view Android studio

I am currently building a bare bones game app for university. In the Shop activity of the app I have created a custom list view in order to display items in the

i was trying to add data in room db but not able to add more than 50 rows

I was trying to add some data in room database android. but while adding there is only 50 rows are visible or entered in db. there is no more data is able to ad

How to resolve exoplayer error : AAPT: error: attribute fastforward_increment not found?

Firstly I added the exoplayer dependency to my build. After that I made a xml layout with a custom controller and then I wanted to add app:fastforward_increment

Why does build folder in Android Development studio grow to 1 GB when resulting compile file is 50 MB?

The build folder grew to 1 GB when compile size is 50 MB using Android studio. Why is this happening? Is it normal?

Getting android.app.ForegroundServiceStartNotAllowedException in Android 12 (SDK 31)

I upgraded my apps targetSdkVersion and compileSdkVersion to SDK 31, and started receiving the following crash in app in a service that updates widget in backgr

How to create a folder and save files in root directory from api 30 android?

note: when I say root, I mean the folder where the download, documents, music, android folders are located, etc… Environment.getExternalStoragePublicDire

Android Gradle Plugin 7.1.3, Plugin [id: 'com.android.application', version: '7.1.3', apply: false] was not found in any of the following sources [closed]

Since I upgraded my project to Android Gradle Plugin 7.1.3, I can't build it anymore. Error : Plugin [id: 'com.android.application', version:

how to get through 'Future<List<QuerySnapshot<Map<String, dynamic>>>> and get data

I have a list of type 'Future<List<QuerySnapshot<Map<String, dynamic>>>> that looks like this, var postlist = FirebaseFirestore.instance

Plugin [id: 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'] was not found in any of the following sources:

Plugin [id: 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'] was not found in any of the following sources: Try: Run with --info or --debug op

Is there a way to download an andorid emulator in Macbook air with M1 chip

I am trying to set up my Macbook air with M1 Chip for mobile app development, the problem is when I am trying to download an android emulator through android st

Why is JAVA version not detected? Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8

I am trying to build app in App Center. Build.gradle buildscript { ext.kotlin_version = "1.5.30" repositories { google() mavenCentral()

Android Studio Kotlin app "keeps stopping" when I run it

I am just trying to set up a spinner configured as a dropdown menu, but I can't even test my app to see if it works because every time I run it, it immediately

How to solve the error FAILURE: Build failed with an exception. * Where: Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1005

I'm trying to run the application in the android emulator but this error keeps popping. FAILURE: Build failed with an exception. * Where: Script 'C:\flutte