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].
Questions tagged [android-studio-3.1]
185 questions
157
votes
8 answers
The result of subscribe is not used
I've upgraded to Android Studio 3.1 today, which seems to have added a few more lint checks. One of these lint checks is for one-shot RxJava2 subscribe() calls that are not stored in a variable. For example, getting a list of all players from my…

Michael Dodd
- 10,102
- 12
- 51
- 64
133
votes
17 answers
3rd-party Gradle plug-ins may be the cause
After updating to Android Studio 3.1 I got this error message:
The project works fine and this is mostly just a warning, so my question is what's the meaning of the warning and how can I get rid of it?
The relevant parts from gradle files:
This is…

humazed
- 74,687
- 32
- 99
- 138
94
votes
17 answers
Android Studio 3.1: Erroneous unresolved references in editor
I'm running Ubuntu 17.10, and I've just updated Android Studio from version 3.0.1 to 3.1. Here's the version information in Help -> About:
Android Studio 3.1
Build #AI-173.4670197, built on March 22, 2018
JRE: 1.8.0_152-release-1024-b01 amd64
JVM:…

starbeamrainbowlabs
- 5,692
- 8
- 42
- 73
72
votes
12 answers
No IDEA annotations attached to the JDK 1.8 (C:\...), some issues will not be found
In Android Studio 3.1.2 I am suddenly getting the following message in a yellow tape frame at the top of my editor:
No IDEA annotations attached to the JDK 1.8 (C:\Program Files\Android\Android Studio\jre), some issues will not be found
I also…

Morteza Baghalpoor
- 751
- 1
- 5
- 5
67
votes
16 answers
Android Studio 3.1 Cannot Resolve Symbol (Themes, Widget, attr, etc.)
I upgraded Android Studio today to 3.1, and now Android Studio says it cannot resolve symbols for most of the resources (for example ThemeOverlay in styles.xml or ?attr/actionBarSize). This doesn't seem to prevent me from building or running in an…

JPM
- 1,482
- 5
- 18
- 25
63
votes
14 answers
Execution failed for task ':app:compileDebugJavaWithJavac' Android Studio 3.1 Update
I am getting error after updating the version of Android Studio 3.1 Canary 6
I don't why its happen, before that it's running successfully.
org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error…

Pratik Butani
- 60,504
- 58
- 273
- 437
60
votes
2 answers
Should I add .idea/caches/build_file_checksums.ser to .gitignore?
I updated my Android Studio from 3.0.1 to 3.1, and noticed an unfamiliar file in my existing project:
.idea/caches/build_file_checksums.ser
It doesn't depend on whether you update the Android Gradle plugin to the latest 3.1.0; once I opened an…

qtmfld
- 2,916
- 2
- 21
- 36
56
votes
5 answers
Android Studio 3.1 EditText StackOverflowError
After updating to Android Studio 3.1 I'm facing exception when EditText in focus
E/AndroidRuntime: FATAL EXCEPTION: main
Process: , PID: 18938
java.lang.StackOverflowError: stack size 8MB
at…

Kamer358
- 2,430
- 2
- 16
- 17
46
votes
4 answers
Where is the Messages Window in Android Studio 3.1
After upgrading Android Studio from 3.0 to 3.1, the Messages window seems to have disappeared, even though some build outputs (e.g. proguard) continue to refer to it. Where is it?

yuval
- 6,369
- 3
- 32
- 44
45
votes
11 answers
How to solve failed to find build tools revision 26.0.2?
I'm trying to Install Build Tools 26.0.2 and sync project
Failed to find build tools revision 26.0.2
I clicked "Install Build Tools 26.0.2 and sync project" but still failed ...
Downloaded it from the external link .. but I don't know where I put…

Mohamed Alaa
- 471
- 1
- 4
- 6
41
votes
20 answers
Android Studio fails to generate databinding after 3.1.0 update
This morning I made an update to android studio from 3.0.1 to 3.1.0. After updating the gradle to latest version I still get build error regarding data binding.
My…

Marian Pavel
- 2,726
- 8
- 29
- 65
40
votes
4 answers
Android Studio 3.1.2 : Failed to resolve: runtime
I have recently updated my Android Studio to 3.1.2 . After the update I tried opening the existing project and was shown multiple gradle errors while compiling the project.
Those errors pointed me to update the 'compile' statement to…

Udit Kapahi
- 2,277
- 1
- 27
- 25
35
votes
9 answers
IOException: Failed to find byte code when upgrade to Android Studio 3.1
Yesterday, Google announced that Android Studio 3.1 is available in the stable release channel. So I give it a try.
Before of that my project was build successfully but after I upgraded AS to 3.1 and Gradle build tool to…

nhoxbypass
- 9,695
- 11
- 48
- 71
35
votes
13 answers
Android Studio 3.1 does not showing 'android' option under Tools menu
I am using android studio 3.1 for some development.
But Its does not showing android option under Tools menu. Whereas Android studio 3.0 doesn't have this problem.
Here is the screenshot of android studio 3.1 Tools menu:
See missing the android…

0xAliHn
- 18,390
- 23
- 91
- 111
32
votes
3 answers
Android Studio 3.1 not showing build error details
I have updated to Android Studio 3.1 and it doesn't show the details of error during compile time.
Suppose if I miss a semicolon somewhere or I haven't implemented a method of an interface, then it gives me this error all the time, but doesn't tell…

Gurleen Sethi
- 3,162
- 6
- 26
- 48