Questions tagged [android-studio-4.2]

For questions related to the usage and features that are specific to version 4.2 of Android Studio - the official IDE targeted at Android development. When using this tag also include the more generic [android-studio] tag. Do NOT use this tag for questions about programming for Android in general; instead use the [android] tag.

65 questions
1
vote
1 answer

How to change the indentation of compose

The indentation change from 4 to 8, how to convert it back to 4? @Composable fun ListContent( modifier: Modifier = Modifier // The indentation I'd like to. ) @Composable fun ListContent( modifier: Modifier = Modifier // But…
ccd
  • 5,788
  • 10
  • 46
  • 96
0
votes
0 answers

Android Studio Not Recognizing Java 11+ Features

Android Studio is not recognizing features from Java 11+ even though the JDK is version 18. I discovered this when I needed the repeat() method (introduced in Java 11) and AS would throw Cannot resolve method, but later tried more features from Java…
user19385795
0
votes
0 answers

Cannot resolve symbol "R" (Error inflating class fragment )

It is causing me unable to inflate fragment. This is from the androidx library that cannot resolve symbol "R". I have tried clean, rebuild and even invalidate and restart. Also add in this specific dependency in gradle file and also deleted the…
0
votes
3 answers

How to create an Android virtual device MacBook air with M1 chip? Your CPU does not support VT-x

I am unable to create a virtual device on Android studio on my MacBook air. For all the system images it says that your CPU does not support VT-x. What is the solution or a probable alternative t use a virtual android device on MacBook air with the…
Amit Kumar
  • 15
  • 6
0
votes
1 answer

Not able to define public acsess modifier inside main activity in android studio v4.2

im not able to declare public class download inside my main class in android studiov4.2 public class MainActivity extends AppCompatActivity { //Intialistion of variables: ListView listView; ArrayList arrayList = new…
0
votes
2 answers

Change Material Button Theme in Dark Mode

Please Help Me. While changing the theme from light mode to dark mode. How do I change the button's theme from filledbutton to outlinedbutton? I saw an app from play store. Here I noticed that the buttons theme is changing: This is LIGHT MODE…
0
votes
4 answers

Why are my files still being 'Analyzed' in Android studio, intellisense and autosuggest doesnt seem to work

For this particular project, Android studio just shows analyzing files, doesn't show any errors and the IntelliSense is also not auto-suggesting. I have tried to invalidate cache/ restart, checked that android studio is not in power mode, and also…
0
votes
0 answers

android studio 4.2.1 resolution reduction problem

When I choose "Settings->Editor->Color Scheme" with the theme "Darcula copy", Android studio is very blurred on the extended monitor, and the resolution is obviously reduced. My system is windows.
jacob.xu
  • 1
  • 1
0
votes
2 answers

How to Configure the SDK in Android Studio

I am running my Flutter app in android studio but to solve some problems I have uninstalled Android Studio and downloaded again in my Laptop (MacOS Big Sur- MacBook Air). When I have open the project in new android studio in Logcat I saw in Red…
Harry
  • 154
  • 4
  • 15
0
votes
1 answer

Find and Replace both not working after updating to Android Studio 4.2

I have a Mac. Just updated to 4.2 and now Find and Replace both don't work. The keyboard shortcuts as well as the Edit>Find>Find... and Replace... menu options not working. I click them and nothing opens, nothing happens. I changed the keymap to…
0
votes
0 answers

getClassLoader().getResourceAsStream(file_path) returns null after Android Studio updated to 4.2

The following code worked for many years: InputStream is = myclass.class.getClassLoader().getResourceAsStream("res/raw/my_file.xml"); I updated Android Studio to 4.2 and that led to a serious other updates (e.g., gradle plug-in).…
Hong
  • 17,643
  • 21
  • 81
  • 142
0
votes
1 answer

Why doesn't Android Studio generate library classes for Dagger or DBFlow?

A few days ago I started to experience a weird problem with Android Studio. Every time I try to build my project I keep getting for each class it should generate. I am using Dagger and DBFlow. By scrolling all the Build Output logs I am getting I…
0
votes
1 answer

Getting Daily Weather Forecasts from OpenWeatherMap API using Flutter

i have an issue with OpenWeatherMap API for hourly weather forecasts. i retrieved the 5 day/3 hours weather data from this api. But now i want daily weather forecasts. i am using this api but this one gives me this error, i tried many times but it…
0
votes
2 answers

Android Studio IDE - Debugging Step Into/Over Crashing App

I'm using Android Studio 4.1.3 in Windows 10, and I'm having problems with debugging. The app runs ok if not debugging or using Resume Program while debugging, but if try step debug (over, into, out) it crashes. It occurs with all apps and with all…
sgm
  • 196
  • 3
  • 14
0
votes
3 answers

white screen ionic v6.11.8 capacitor

As i'm trying to run the app via capacitor using the command below. ionic capacitor run android as it runs in the android studio 4.2 canary 11 successfully when i run my emulator on pixel or via mobile USB debug mode it gives me white screen after…