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
1
vote
0 answers
Strange behaviour after updating to Android Studio 3.1.1
I've upgraded to Android Studio 3.1.1, now my project doesn't run and gives this error :
> org.gradle.api.tasks.TaskExecutionException: Execution failed for task
> ':app:compileDebugJavaWithJavac'. at
>…

AVEbrahimi
- 17,993
- 23
- 107
- 210
1
vote
0 answers
Android "optimizing" my app (libgdx game, actually) on every reboot, still app runs very slow when launched
EDIT: it really was a bug in AS 3.1.1 related to D8 compiler as stated here. It's said to be fixed by now in AS 3.1.3, although I didn't check that myself.
I know it means it performing AOT compilation.
The thing is that I get a lot of reviews…

AlexeyGorovoy
- 760
- 5
- 23
1
vote
0 answers
Strange Kotlin error after update: Duplicate entry
Please check code below:
class HTMLEngine : View {
class HREFOffset(var YOffset: Int, var href: String)
class ChapterHolder(var chapter: Int, var chapter_body: Node)
Kotlin compiler says :
Cause: duplicate entry:
…

AVEbrahimi
- 17,993
- 23
- 107
- 210
1
vote
1 answer
Android studio 3.1 failed to load aapt when running emulator
The project builds and syncs successfully but when running the project on emulator(my phone), i get the error: Failed to execute aapt, and also Caused by:java.util.NoSuchElementException.
In gradle properties is android.enableAapt2 =…

Srdjan Stjepanovic
- 36
- 5
1
vote
3 answers
Import class from 3rd Party Library. Android Studio 3.1, Gradle 3.1
After updating Android Studio and gradle to 3.1, I changed all compile statements to implementation. But when I build, android studio cannot resolve imports found in 3rd party libraries.
Scenario: Main projects imports sub-module which also import…

Bubunyo Nyavor
- 2,511
- 24
- 36
1
vote
2 answers
Error when click on edit text android
After actualization android studio to version 3.1 I have problem with my project.
When i click on edit text activity closing and throw exception.
I have no idea why is this happening, pls help.
E/JavaBinder: !!! FAILED BINDER TRANSACTION…

Michał Woźniak
- 33
- 7
1
vote
1 answer
android studio requires different app Building and Runing
Recently I have updated my android studio v3.0 to v3.1.
in v3.0 when I click on Run button. It automatically complies builds apk and installs app on my phone.
But at newer version I have ti rebuild app each time before running application.…

SangamMahale
- 31
- 5
1
vote
1 answer
How to show the code hierarchy at the top of Android Studio?
Android Studio used to show the hierarchy before I upgraded to Android 3.1 a few days ago.
If you placed the cursor in method foo(), the top would show something like
MyClass > foo()
Is there a way to restore this witih AS 3.1?

Hong
- 17,643
- 21
- 81
- 142
1
vote
0 answers
Preview timed out while rendering the layout or the preview goes blank. This error frequently comes after updating to Android Studio 3.1
The preview goes blank; sometimes in preview window, sometimes in design tab also, and sometimes the preview comes but the views go unclickable.
I tried refreshing the layout from design tab, Select design surface; but it only helps sometimes. The…

Kruti Parekh
- 1,271
- 9
- 21
1
vote
0 answers
Android Studio 3.1 - cannot connect to USB device
I just updated Android Studio to 3.1. When I try to build and run an app that formerly worked fine, I don't see the ADB window with either the virtual device or my tablet.
Tablet is a Ellipsis, developer mode is enabled, USB debugging is enabled.…

ckuecker
- 11
- 1
1
vote
1 answer
LLDB exception after updating to Android Studio 3.1
After updating to Android Studio from 3.0.1 to 3.1, and updating all plugins and SDK tools i am no longer able to debug my native application.
The error is 'Execution finished' (ExecutionFinishedException) which is raised in LLDB.
LLDB version is…

user3197291
- 11
- 4
1
vote
0 answers
ViewModel does not exist after updating to Android Studio 3.1.0 and Gradle 4.4
I tried to update a project today to Gradle 4.4 and when I tried to run I get the following error…

Marian Pavel
- 2,726
- 8
- 29
- 65
1
vote
1 answer
Android-Studio upgrade from 3.0.1 to 3.1.0 Debug/Run app failure
Yesterday I upgraded Android-Studio from 3.0.1 to 3.1.0 and found a problem with clicking Debug/Run app.
gradle version is upgraded from 3.0.1 to 3.1.0
buildToolsVersion version is upgraded 27.0.3
Gradle sync has been successful.
Every time you…

Bingerz
- 1,027
- 1
- 11
- 15
1
vote
0 answers
Android Studio 3.1 run build Gateway Time-out
I updated Android Studio from 3.0.1 to 3.1, and updated Gradle from 4.1 to 4.6
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
And I get this error
Could not GET…

Den
- 283
- 1
- 9
1
vote
4 answers
Android Studio update 3.1 start getting 502 Gate way gradle dependecies error
After update that SDK on my Jenkin server. I am getting below console error.
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project 'BuildDevelop'.
Could not resolve all files for configuration…

Hafiz Waleed Hussain
- 1,062
- 12
- 25