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
546
votes
40 answers

Android Studio error "Installed Build Tools revision 31.0.0 is corrupted"

I'm on Android Studio 4.2.2. I created a new project and haven't added anything to the starter code and whenever I click build or run, I get this error: Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK…
308
votes
70 answers

Android Emulator issues in new versions - The emulator process has terminated

After updating to Android Studio 2020.3.1 canary 15, when I try to run an emulator, it gets killed with this error: The emulator process for AVD Pixel_4_API_30 has terminated. It was working correctly in the previous version (4.1.3), but now after…
277
votes
8 answers

Gradle tasks are not showing in the gradle tool window in Android Studio 4.2

I just updated Android Studio to version 4.2. I was surprised to not see the Gradle tasks in my project. In the previous version, 4.1.3, I could see the tasks as shown here: But now I only see the dependencies in version 4.2: I tried to clear…
LeMimit
  • 6,524
  • 3
  • 12
  • 14
194
votes
18 answers

How can I change the background color of Elevated Button in Flutter from function?

I am new to Flutter, and I started Flutter last week. And now I want to make a simple Xylophone application. I created the UI successfully and made a function playSound(int soundNumber), but when I call this function for playing sound, it gives me…
Aqeel Mughal
  • 2,105
  • 2
  • 6
  • 14
106
votes
15 answers

Can't create new Kotlin project after updating to Android Studio 4.2

I updated Android studio 4.2 but I wasn't able to create new project kotlin A problem occurred configuring root project 'My Application'. > Could not resolve all artifacts for configuration ':classpath'. > Could not find…
TEN_KUNG
  • 1,229
  • 2
  • 5
  • 12
26
votes
7 answers

java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException after updating to Android Studio 4.2

Google just release Android Studio 4.2 stable. I updated my AS from 4.1 to 4.2. Now I am getting this error. It's showing error in data binding. Caused by: java.util.ServiceConfigurationError: javax.annotation.processing.Processor:…
iamanbansal
  • 2,412
  • 2
  • 12
  • 20
24
votes
15 answers

How to get SHA1 code in new version of android studio 4.2?

Before this update we can get SHA1 code from Gradle but now it's look like it's changed.
Krushal Virani
  • 251
  • 1
  • 2
  • 3
20
votes
1 answer

Why do I keep getting Database Inspector warning?

I changed something in my code (I'm not sure what), and now I get the following warning every time I run the emulator. Database Inspector For security reasons offline mode is disabled when the process being inspected does not correspond to the…
17
votes
4 answers

Unable to sync Gradle with Firebase Crashlytic 2.6.0 using Android Studio 4.2

Project-level build.gradle buildscript { addRepos(repositories) dependencies { classpath 'com.google.gms:google-services:4.3.5' // Crashlytic classpath 'com.google.firebase:firebase-crashlytics-gradle:2.6.0' …
Harvey
  • 1,353
  • 1
  • 14
  • 27
9
votes
3 answers

Build android error at stage app:mergeDebugResources, ParseError AttributeNSNotUnique

I've been trying to build my Android Application on Android Studio 4.2 with Gradle 4.2.1, but I am faced with the following error of which I was only able to find one question one month ago, and another one from today which was not solved…
Melferas
  • 330
  • 1
  • 2
  • 11
9
votes
0 answers

Android Studio 4.2 - The APK Set archive does not contain the following modules: [feature_login]

After updating android studio from 4.1.3 to 4.2 and especially com.android.tools.build:gradle:4.2.0 dependency, I receive the above error for my project that contains dynamic feature modules. Does someone else face the same problem? The problem is…
8
votes
3 answers

Android Studio 4.2 - Kotlin version 1.5.0 error and endless loading for suggestions in Project Structure window

And what does it mean? I tried to change ext.kotlin_version = '1.5.0' to ext.kotlin_version = '1.5.0-release-764' but in this case gradle project fails to build with Could not find…
user924
  • 8,146
  • 7
  • 57
  • 139
8
votes
3 answers

Cannot open Android studio 4.2 Canary 8 or 9 after having installed Canary 7

Context : macOs Catalina 10.15.6 Java 1.8.0_161 After having updated Android Studio 4.2 Canary 7 to Canary 8 (and to Canary 9), it cannot be opened any more. I've tried installing it from both Android Studio official website and from JetBrains'…
Kélian
  • 3,323
  • 3
  • 11
  • 20
6
votes
2 answers

Android Studio Proxy tab missing from extended controls settings BumbleBee

I need to access the proxy tab from the extended controls window in Android Studio # vresion. but that tab option is missing, Any help would be appreciated!
mohosyny
  • 962
  • 1
  • 9
  • 19
5
votes
0 answers

Android Studio 4.2 analyzing code take forever

I'm currently using Android Studio version 4.2.1 (mac OS). While opening a Kotlin file, it shows "Analyzing" in the top right corner as shown in the attached image, forever! Here're what I already did Clean / Rebuild the project, no luck Restart…
chornerman
  • 434
  • 3
  • 13
1
2 3 4 5