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.

92 questions
167
votes
7 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
  • 3,877
  • 3
  • 15
  • 24
36
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…
31
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
  • 319
  • 1
  • 3
  • 7
30
votes
6 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,229
  • 19
  • 41
27
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
  • 2,427
  • 3
  • 23
  • 40
19
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
  • 495
  • 11
  • 27
14
votes
5 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
  • 1
  • 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,465
  • 1
  • 20
  • 38
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
  • 1,164
  • 1
  • 11
  • 16
7
votes
1 answer

XML code formatting gives wrong arranging child views in LinearLayout Android Studio 3.5

Menu -> Code -> Reformat Code Previous Android Studio version, my hands are very used to click Ctl+Alt+L to format code whenever I have typed some code block. After I updated to Android Studio 3.5, I formatted the code in XML and it is giving me…
ZarNi Myo Sett Win
  • 1,353
  • 5
  • 15
  • 37
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
  • 605
  • 1
  • 8
  • 22
5
votes
0 answers

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
0 answers

Android Studio 3.5 Error - Installation failed due to: ''pm install-create -r -t -S 1461173'

I got this error when I tried to run my app. I installed flags -r -t but it doesn't solve the problem. How do I solve this problem? 12/30 21:25:11: Launching 'app' on Nexus 6 API 22 Lollipop. Installation did not succeed. The application could not…
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
  • 7,127
  • 2
  • 51
  • 63
1
2 3 4 5 6 7