Questions tagged [android-studio-3.5]

For questions related to the usage and features that are specific to version 3.5 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.

91 questions
115
votes
4 answers

Expiring Daemon because JVM heap space is exhausted

I just updated the Android Studio to 3.5 Beta 1 and I'm getting Expiring Daemon because JVM heap space is exhausted message while the build is running. Also, the build is taking more time to complete. Does anyone have any idea regarding this?
Rishabh Sagar
  • 2,678
  • 3
  • 11
  • 18
34
votes
0 answers

Android Studio 3.5 auto formatting/refactoring XML layouts changes order of views

So upgraded to Android Studio 3.5 yesterday, and it brought weird problem while auto-formatting XML layouts. All the views inside a layout change order when Auto Formatted. So, if the views are inside LinearLayout, then they'd change their order and…
21
votes
5 answers

How to fix "ERROR: Could not find method google() for arguments [] on repository container." in android studio 3.5

I am trying to build and android project from an imported android source code; but each time I try building, I get this >> "ERROR: Could not find method google() for arguments [] on repository container". How do I fix it I recently converted my Web…
DUG
  • 221
  • 1
  • 2
  • 6
17
votes
0 answers

How to stop AndroidStudio from overwriting .idea/codeStyles/Project.xml

In our project, we have committed .idea/codeStyles/Project.xml to source control with the goal of enforcing a common style among all contributors to the project without affecting the style of other projects. However, Android Studio appears to be…
duggulous
  • 1,859
  • 2
  • 15
  • 32
16
votes
3 answers

Android Studio 3.5: Generate Signed Bundle does not get any results

I followed these steps: In top menu bar, click on Build > Clean Project. In top menu bar, click on Project > Build Bundle(s)/APK(s) > Build Bundle(s). The Event Log pane will give the time and status of your build: 08:19 Build Bundle(s) App…
Steve
  • 1,069
  • 15
  • 38
16
votes
1 answer

Android Studio 3.5 - Formatting (ctrl+Alt+L) the code in XML file is rearranging the Views in the LinearLayout

Recently I have updated to Android Studio 3.5. I have three views: an EditText, a TextView and a Button inside a vertical LinearLayout(ViewGroup) named sample.xml file. When I format the stuff by pressing ctrl+alt+L, all the views get rearranged…
Shashi Shiva L
  • 433
  • 7
  • 20
14
votes
4 answers

Android Studio debugger console displays "Failed to connect port"

I have a problem with Android Studio. Debugger Console says "Failed to connect" and debugging doesn't start. This problem is occurred in any Android device(include virtual device). Please give me some ideas to solve this problem. I…
BakaScript
  • 143
  • 6
10
votes
1 answer

Is there a way to make Android Studio 3.5 remember target device selection?

I frequently run my apps on multiple devices at once. Before the 3.5 update, I was able to do this by cmd-clicking them in the device selection window and checking "use the same selection for future launches". 3.5 introduced this new dropdown in the…
Grishka
  • 2,125
  • 1
  • 16
  • 33
8
votes
0 answers

Android Studio 3.5 : New Gradle Sync is not supported due to containing Kotlin modules

When I import my project via 'Import project (Gradle, Eclipse, etc.)', studio fails to sync project on the first place and starts to sync again automatically. Fortunately this time sync happens successfully and everything works fine. The following…
8
votes
2 answers

Unresolved reference, in wrong test scope - Android studio 3.5

Since I've updated to Android Studio 3.5, in my unit tests Android Studio shows unresolved reference for all the dependencies. The project compiles and the unit test runs successfully but Android Studio shows everything in red. I've tried to clean,…
cherif
  • 979
  • 1
  • 9
  • 15
7
votes
1 answer

Java codes are converted to XML after restarting Android studio

I faced a real strange scenario when after I restarted my PC due to freezing of windows some of my java codes in the Android Studio were converted to some strange xml codes and all those codes I written were lost! I faced this situation twice, the…
itabdullah
  • 545
  • 6
  • 21
5
votes
1 answer

How to avoid "warning: [cast] redundant cast to String" for data binding

Android Studio generates lots of warning like the following: fooBindingImpl.java:106: warning: [cast] redundant cast to String fooActivityOfUserName.set(((java.lang.String) (callbackArg_0))); FooActivity.java has the…
5
votes
1 answer

No any plugin found marketplace in Android Studio 3.5

When I tried to search for a plugin in Android Studio 3.5, it loads then gives 'No results' no matter what plugin I search for. It doesn't show anything in the marketplace.
bikram
  • 3,748
  • 29
  • 39
5
votes
0 answers

Android Studio network monitor on 3.5 issue

What happened to the Network Monitor on android studio 3.5 on Stable channel ? I select a portion and i don't get any calls. I get all sorts of calls with 0 data sent and received. Is there a bug in the new Android Studio or am I doing something…
AndreiBogdan
  • 9,331
  • 10
  • 46
  • 96
5
votes
0 answers

When reformat code xml in Android studio 3.5 moves the code up and down And Change View

excuse me . I can't speak English well. In Android Studio New Version 3.5 when using shortcut key "ctrl + alt + L " in layout xml Instead of reformat the codes , moves the code and change view
Mersad Nilchy
  • 543
  • 3
  • 17
1
2 3 4 5 6 7