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

Android Studio can't Start after Installation Start Failed

After Successfully Installed Android Studio, I was unable to run Android Studio. I'm Attaching the Screenshot below... I have tried various methods to run Android Studio but I failed!!! Here are a few of the methods that I want to discuss with u…
1
vote
1 answer

The Java library option is missing in Android Studio 4.1 and 4.2.2

I cannot find Java library when creating a new project with Android Studio 4.2.2. Screenshot when creating new project: How can I create a Java library with Android Studio 4.2.2?
hjcai
  • 11
  • 2
1
vote
2 answers

Firebase Realtime Database (Android-Java)- "Class does not define a no-argument constructor"

I am trying to read data from Firebase Realtime Database on a Java Android project. I am using Android Studio 4.2.2. I can get the JSON string fine. The problems start when I try to deserialize the data. At that point I get an exception: "does not…
1
vote
0 answers

How is the folder .idea/libraries generated in Android Studio?

There are many files under .idea/libraries with prefix Gradle__. I know these files contains the config of all the dependencies declared in build.gradle, including jar, javadoc and sources location. The problem is when I open my project in Android…
1
vote
2 answers

Android Studio 4.2.1 deleting mipmap folders after change my icon?

When i try to change my app icon, Android Studio deleting mipmap folders!!! Here are mipmap folders but when I check them i find them empty!
Benzo
  • 79
  • 8
1
vote
1 answer

Android Studio global search is not working

I have been using Android Studio 4.2.1 on Mac for the past 2 months, and I have been NOT able to use the global search feature which is available by clicking the top-right magnifying glass icon. If I search for anything inside my project from there,…
Fabrizio Ferrari
  • 869
  • 2
  • 12
  • 25
1
vote
1 answer

Where did AndroidModuleModel.findProductFlavor go? My plugin throws NoSuchMethodError

I'm the author of this build variant plugin, and from Android Studio 4.1 to 4.2.1, a method I depend on seems to have been removed from the IDE API: ProductFlavorContainer…
1
vote
1 answer

After flutter new project creation I can't locate the main dart file to start programming

I have installed Android Studio and flutter successfully. When I run flutter doctor in command prompt it gives me [all green ticks in these brackets]. The question is that after the creation of a new flutter project on the right-hand side of the…
1
vote
1 answer

Attempting to handle RecyclerView and get "Cannot resolve symbol 'NotNull'" creating ViewHolder

Using Android Studio 4.2.1 and trying to handle a RecyclerView I get an error when trying to build my own ViewAdapter. I've added implementation 'androidx.recyclerview:recyclerview:1.2.1' to my build.gradle :app file. My activity_main file is like…
TecBrat
  • 3,643
  • 3
  • 28
  • 45
1
vote
0 answers

Implementing grid view inside a fragment using adapter-Android Studio 4.2

Trying to implement a grid view inside a fragment using adapter The app keeps crashing when the activity containing this fragment is selected. I think that the problem is in this line. MainAdapter adapter = new…
1
vote
0 answers

Shortcuts to Find File and Find in Path no longer work

I updated my Android Studio to 4.2 and the shortcuts to Find a File, and Find In Path no longer work. For mac these used to be Cmd + Shift + F, and Cmd + Shift + O respectively. I tried looking at the guide on the developers' website and these two…
Nikos Hidalgo
  • 3,666
  • 9
  • 25
  • 39
1
vote
1 answer

getting weather info using flutter http package

i want to get current weather information of coordinated base from openweathermap API. For this purpose i am using flutter's HTTP Package. the problem is here when i use this method One more problem is that... I got these coordinates on Memu App…
1
vote
3 answers

android studio 4.2 beta 6 gradle issue

Needed to run Android Studio 4.2 for some project but the build fails and android studio stable release run without any error. Running in Arch things I have tried Downloaded new Gradle from Android studio Downloaded latest Gradle and Used local…
1
vote
1 answer

Android Studio 4.2 don't respond when I try to open it

I had to download new version of Android Studio (4.2). Now on my computer (Mac) I have both older and newer version of Android Studio. My new version was working perfectly but since yesterday I cannot open it. I can still open my older version of…
snaky
  • 27
  • 5
1
vote
0 answers

Bug in Android Studio 4.2 beta 2(Android Stuido Template not working)

After Updating Android Studio 4.2 beta 2, unable to create Templates like Blank Fragment, MapFragment, Model Fragment, and Bottom Sheet Fragment, and for Activity also. I don't know what will be the problem, I have done a sync project with Gradle…
creativecoder
  • 1,470
  • 1
  • 14
  • 23