Category "android-studio"

How to programmatically read and open Bluetooth location permission setting for Android app

I am designing an app in Android Studio. It scans for BLE (Bluettoth Low Energy) devices. As soon as I try to scan I get the following popup message: Location

Android Studio Layout Preview Default Theme

Maybe this is well known option in Android Studio but I couldn't find it and Google has not helped me with this :( Every time I open a layout preview in Android

Android studio emulator Stops

I am asking for your kind support. I have problem with Android studio emulator. The emulator always stops. It is quite annoying as I want to test the applicatio

Return the result from a RecyclerView adaptor back to the MainActvity.kt?

I am trying do I return the result of the position from my Recyclerview Adapter, but I can't call the " adapter.setOnItemClickListener(this)" from MainAc

SQLiteDatabase.insert() and SQLiteDatabase.execSQL("insert into ...") doesn't work

I'm working on an Android application in Java. In my application I need, among other things, to store an address in a database. My address is stored in a table

Unity android gradle build fails duplicate class

I have been looking for the last few days for a solution to my problem. I have multiple SDKs imported in my project (firebase, facebook, admob, etc) and it was

Different errors with Gradle each time I tried most, common: ':app:processDebugManifest' (type 'ProcessMultiApkApplicationManifest')

A lot of errors building the gradle: Gradle Scripts build.gradle(Project:): plugins { id 'com.android.application' } android { compileSdkVersion 31

An unexpected packet was received before the handshake. - Android Studio

When I run the Flutter project on Android Studio, before running the application on the emulator, the event log displays "An unexpected packet was received befo

Manifest merger failed : Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported`

Please help me with this error getting in my project while trying to run at mobile via android studio. Manifest merger failed : Apps targeting Android 12 and hi

Failed resolution of Landroidx / ActivityCompat;

I'm trying to make a java library for my Unity game. In this case I want get permission from Android API. However, I get an error: AndroidJavaException: java.la

recursion and ram flood: Starting a Gradle Daemon, 1 busy and 6 stopped Daemons could not be reused, use --status for details

I'm using this plugin https://github.com/mozilla/rust-android-gradle, which requires me to add tasks.whenTaskAdded { task -> if ((task.name == 'javaPreCo

MainActivity is not showing log statements

Hi I am new to android development and the problem is Whenever I am using MainActivity in logcat as a filter it is not showing me Log statements for this Log.i

Fatal Exception startactivity in Android studio

I am totally new at Android / Java. and i have some project school and i have this code ``` package com.example.utsmobileprograming; import androidx.appcompat.a

git checkout error: unable to read askpass response in Windows 10

Error occurred while cloning repository in Android Studio error: unable to read askpass response from 'C:\Users\User\AppData\Local\Google\AndroidStudio2021.1\tm

This app is using a deprecated version of the Android embedding

I am getting the following error. This app is using a deprecated version of the Android embedding. To avoid unexpected runtime failures-, or future build failur

Parcel a List of objects from another Parcelable class in Kotlin

I'm working on a weather app for a class and I'm having some trouble with parcelable. I've looked at several other questions that are similar to this on StackO

How do I fix "Could not reach Cloud Firestore Backend" error?

I'm build a simple app and I keep getting this error: "W/Firestore: (23.0.1) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't resp

artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'

I have working an application without problem in Android Studio 3.2.1 After a long time of absence, I just downloaded Androoid Studio 2021.1 and when I try to r

E/RecyclerView: No adapter attached; skipping layout . Adapter doesn't want to be recognized/detected

I'm really sorry for asking the same question like 100 other people did but i have tried every solution provided and I can't seem to find what is wrong with my

When I Update my Phone to Android 12, Installation did not succeed. The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

I was working on my project perfectly since I Update my phone to Android 12 unfortunately when I run the project to my phone this Error appears: Installation d