Questions tagged [android-studio-3.1]

Use for questions about using Android Studio, an official IDE targeted at Android development. Do NOT use for questions about programming for Android in general; instead use [android].

185 questions
9
votes
2 answers

Android Studio shortcut for autocomplete Toast(Kotlin)

I have a problem with the newest version of Android Studio(> 3) to use the autocomplete for Toast with Kotlin. In older versions with Java, it was like typing "Toast", then pushing "Tab" button on keyboard to autocomplete this. Now, in the versions…
K.Os
  • 5,123
  • 8
  • 40
  • 95
8
votes
1 answer

Difference between android.enableD8.desugaring in Android Studio 3.1 and android.enableD8

In Android Studio 3.0 there is an option android.enableD8 to enable D8 (Next-generation Dex Compiler). In Android Studio 3.1 a new option was added for this like android.enableD8.desugaring as per their updates. What actually does…
0xAliHn
  • 18,390
  • 23
  • 91
  • 111
7
votes
2 answers

java.lang.IllegalStateException: function = , count = 4, index = 4

I am getting this error when I build the project java.lang.IllegalStateException: function = , count = 4, index = 4 at…
Adi
  • 73
  • 1
  • 5
7
votes
0 answers

Android Studio 3.1: Could not find gradle-core.jar (gradle-core-3.1.0.jar)

I've just installed Android Studio 3.1 over previous version of android. When I try to create new project, during project build it stops and prompts below error. I've used many solution but it did not help. Here is the error message: Error:Could…
VSB
  • 9,825
  • 16
  • 72
  • 145
7
votes
4 answers

Gradle Sync Issue Kotlin after Android 3.1 Stable Update

Hey after updating Android Studio to 3.1 Stable version i am getting following error to all my projects. Any help will be appreciated. Could not download kotlin-reflect.jar (org.jetbrains.kotlin:kotlin-reflect:1.1.3-2): No cached version available…
6
votes
2 answers

Android Studio Error: One UI 5 upgrade (Android 13) Adb error executing shell command pm list on data/data/ folder

Android Studio's Device File Explorer stopped working properly after upgrading Samsung Galaxy A52 phone. I've got error on data/data/ folders error executing shell command pm list Details about Phone and Android Studio: Galaxy A52 (SM-A525F) Build…
adatadoc
  • 169
  • 1
  • 7
6
votes
1 answer

Android Studio Dolphin new logcat change fontsize?

Android Studio Dolphin got a new logcat. It looks promising, but I haven't found any way to change the new logcat font size not changing the editor font size. In previous versions of Android Studio logcat was following to the console style and it…
Alexander Skvortsov
  • 2,696
  • 2
  • 17
  • 31
6
votes
1 answer

Android Studio building errors using react native app

I have been trying to create an app using react native using expo tools xde and then detach it using exp detach, when I open in Android Studio I get quite many error when building like: Using incompatible plugins for the annotation…
6
votes
0 answers

update android studio 3.0.1 to 3.1.0 not support databinding properly

I made an update to android studio from 3.0.1 to 3.1.0. After updating the gradle to latest version I get error for binding, when i change Id in XML file and then try to get that id using data Binding in Java File, it's not support after build, and…
6
votes
5 answers

AAPT2 working abnormally in android studio 3.1 both for True and False flag

I am usingandroid.enableAapt2 = false in my gradle.properties file. After updating android studio to 3.1 my project showing a warning to update or remove AAPT2 flag like below: The option 'android.enableAapt2' is deprecated and should not be used…
0xAliHn
  • 18,390
  • 23
  • 91
  • 111
6
votes
2 answers

Android Studio 3.1 Stable. Build Successful but Can Not Resolve Error

I have updated to Android Studio 3.1 Stable Version today(27 March 2018). I have an old project. With new studio version, it gets build successful and app gets installed on Emulator, but the on the IDE, Activity file shows Can Not resolver…
Mahi
  • 472
  • 5
  • 7
6
votes
3 answers

Android Studio 3.1 : updating gradle file cause android studio to freeze

Today I updated Android studio from 3.0.1 to 3.1. I encountered a weird issue with Gradle. Each time I tried to edit a .gradle file, Android Studio freezes. With some research, I saw that each time you edit a .gradle file, Android Studio send a…
6
votes
2 answers

'ProductFlavor.resConfigs' has a value 'auto' which is obsolete and has not been replaced

How to fix the warning below? Are there any alternatives to 'auto'? Warning:DSL element 'ProductFlavor.resConfigs' has a value 'auto' which is obsolete and has not been replaced. It will be removed at the end of 2018 android { ... …
6
votes
0 answers

The project has an older format and will be converted

Android studio keeps telling me project is in old format even though I already have it converted (2 times actually - now it says the backup will be stored in projectFilesBackup3). Clicking details reveals this: RunConfigurations of type…
Antek
  • 721
  • 1
  • 4
  • 27
6
votes
4 answers

Issue with Android Studio and Main Activity.kt expecting member declaration

I have been trying to learn through following YouTube tutorials. I am using Android Studio 3.1 Canary and I get to the same point in the tutorials and get stuck. For instance if you go to this YouTube tutorial https://youtu.be/3RMboPhUbmg?t=210 at…
wolfgang
  • 93
  • 1
  • 1
  • 7