Category "android-studio"

Connection of Android Studio project to MySQL database

I am developing an android studio project and would like to be able to access data from a database sitting on the pc which I am programming from. I would like t

i get "Error running 'main.dart': Entrypoint isn't within a Flutter pub root" every time i try to run my app

i'm working on app using flutter and android studio this is the error I get every time i try to run my app i tired running other projects and they ran completel

Can't see implementation of protected abstract functions in Android package

I have been going over the android package a bit. I am using sdk 30 and for example in SensorManager.java there is a function protected abstract List<Sensor&

textview icon instead of real text

In the preview window of Android Studio sometimes instead of actual text (a few lines of text) I see the TextView icon as in the picture. I tested various layou

How do I assign an id to a drawable in text view in the xml file?

How do I assign an id to a drawable in text view in the xml file. The three dots is the drawable. So I can find it by id. findViewById<??????>(R.id.id_of

Range Error(index): invalid value: valid value range is empty

im trying to set initial value for 'title' but it keeps showing me the error: range error (index): invalid value: valid value range is empty class _ProductCreat

Android studio custom icon state_focused not working

custom_email_icon.xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item andr

How to update Rcyclerview after removing an Item from shared preferences

I have a few recyclerview in different activities and all of their items specified by sharedpreferences but after removing an item from sharedpreferences the re

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

I have upgraded my Android Studio and after that I'm facing this error: Gradle sync failed: Plugin [id: 'com.android.application', version: '7.1.2', apply: fals

File pattern was reassigned to file type by 'Android' plugin. You can confirm or revert reassigning pattern

I am developing an app using Flutter 2.10.3 but I assume this issue is not related to Flutter. Since upgrading to Android Studio Bumblebee | 2021.1.1 Patch 2 I

Jetpack Nav-Graph navigation to current fragment itself also having it in stack

Fragment Structure Fragment Stack I want so that on back press I load fragment with my old data state A->B->C->C Fragment Stack, nav graph created even

Android Studio Bumblebee can't detect androidx package

I was using components from androidx package in a project. After upgrading my Android Studio from Arctic Fox to Bumblebee, the androidx components are not detec

Flutter style code editing short cuts for jetpack compose?

I´m a little spoiled by these code editing shortcuts Flutter plugins provide (See example screenshot). Does somethings similar exist for Jetpack Compose?

Getting error while running command "flutter build --release"

The android studio builds the apk perfectly with the following command : "flutter build apk" but is throwing error when I try to run "flutter build apk --releas

How can I request turn on the location?

I have previously requested location permission in Android Studio (Java) for Android version higher 6.0, and now I want to request to turn it on. On the other h

Getting 'com.android.tools.r8.internal.Hc: Sealed classes are not supported as program classes' when trying to load Microsoft SQL Server JDBC

I'm using android studio to connect to a Microsoft SQL Server and I can't use the JDBC for JDK 17. It just appears with the following error message: 'com.androi

File pattern '*.psd' (from 'bundled' plugin) was reassigned to file type 'Adobe Photoshop' by 'Android' plugin

Got this message in event log: Same like File pattern '*.apk' (from 'bundled' plugin) was reassigned to file type 'APK' by 'Android' plugin In my project there

File pattern '*.apk' (from 'bundled' plugin) was reassigned to file type 'APK' by 'Android' plugin

Suddenly android studio showed this message. What is that I must do? It is showing: File pattern '*.apk' (from 'bundled' plugin) was reassigned to file type 'AP

minCompileSDK specified in dependency AAR metadata (androidx.window:window:1.0.0-beta04)

I'm currently using Android studio attempting to run an old Flutter project I made about a year and a half ago. When I attempt to run it I get the error: The mi

Add toolbar and drawer menu to Android Google Maps Activity

I have created a standard Google Maps Activity in my app in Android Studio and the map works as expected. My Activity is called 'NativeMap' and then the activit