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
2
votes
0 answers
Sample code functionality not working in Android Studio 3.1.0
I am using one option in Android Studio as below:
Its giving me output like:
Samples are currently unavailable for: {Symbol: DatePickerFragment,
Package: }
Can anyone please tell me when actually it works?

Pratik Butani
- 60,504
- 58
- 273
- 437
2
votes
1 answer
Android Studio assert not working
I'm calling findViewById and Android Studio (version 3.1, stable) prompts me to put an assertion:
When I select it, it adds the following line above the selected line:
assert v != null;
Great. I run the app, and the View v is null. However,…

Can Poyrazoğlu
- 33,241
- 48
- 191
- 389
2
votes
1 answer
some error on dependencies after updating Android Studio to 3.1.3
Hi I have some error on build...
I am new In android studio
I dont have problem until I update my android studio to 3.1.3...
Now I sow the errors on gradle build about Unable to resolve dependency for ...
Its My build.gradle(Module: app)
apply…

Shoaib Miraki
- 21
- 5
2
votes
0 answers
Android Studio 3.1 - kotlin plugin does not work
I updated my AS from 3.0 to 3.1. After fixing several issues that showed up with the update, I am stuck at making Kotlin work.
Kotlin code compiles and runs, although I can't edit kotlin files. Kotlin keywords are not recognised by the editor, using…

RoR noob
- 337
- 3
- 11
2
votes
0 answers
Android studio 3.1.2 cursor disappering
I recently updated my android studio from 2.3 to 3.1.2 after updating while syncing gradle cursor disappears and tick black horizontal line comes when i click on editor.
I searched on SO. As SO answers i checked my date and time of PC. and…

Jayanth
- 5,954
- 3
- 21
- 38
2
votes
1 answer
there is no text in radio buttons on screen
in this program, I want to show on screen radio buttons with rooms name
buttonList = new RadioButton[roomNames.length];
btGroup = (RadioGroup) findViewById(R.id.roomList);
RadioGroup.LayoutParams rprms;
for(int i = 0; i < roomNames.length; i++)
…
user7277352
2
votes
1 answer
How to update Android Studio binding generated class
After update of Android Studio to 3.1.1 I have the following problem: when I add any item to my layout.xml in my java file Android Studio does not recognize it.
Only solution I found is close and open Android Studio. Do you know any appropriate…

Vitalii
- 10,091
- 18
- 83
- 151
2
votes
1 answer
android studio 3.1 doesn't show which function cursor is in
In Android Studio 2.3.3 it shows which functions the cursor is in (very nice feature) as shown in the pic below.
First question, is this a configurable feature? If it is I can't find where. Second question is why do I not see this in Android Studio…

driftwood
- 2,051
- 4
- 21
- 28
2
votes
1 answer
Unable to update android studio from 3.1 to 3.1.1
I am trying to update android studio from 3.1 to 3.1.1 it showing below error while patch
Error Log
java.io.IOException: Cannot delete: C:\Program Files\Android\Android Studio\lib\external-system-rt.jar
at…

MJM
- 5,119
- 5
- 27
- 53
2
votes
2 answers
Execution failed for task ':app:transformClassesWithAndroidGradleClassShrinkerForDebug' in Android Studio 3.1
I've just upgraded from Android Studio 3.1 to Android Studio 3.1.1 (but still using Gradle build tool 3.0.0). When I run my app it causes this…

nhoxbypass
- 9,695
- 11
- 48
- 71
2
votes
3 answers
Android studio 3.1 on Windows 10 aapt2 is missing 27.0.3 sdk
trying to develop a simple app for Android device. Have installed android studio 3.1 on Windows 10 machine and trying to build "hello World" app. keep getting error = "Cause: aapt2 is missing on…

Willy
- 21
- 1
- 3
2
votes
1 answer
Android Studio 3.1 - Layout Editor Preview - Screen Capture Missing
I just upgraded to Android Studio 3.1 Stable Version and found that the feature to save a screen capture of the layout preview in the Graphical Layout Editor is missing. This feature was there in Android Studio 3.0.1. You would right click on the…

Adifyr
- 2,649
- 7
- 41
- 62
2
votes
1 answer
In android studio 3.1 stable gives error on Theme and ?attr/actionBarSize attribute?
In the styles.xml when picking out Theme from android it gives the error. I have attached a screenshot related to this.
Error in styles.xml File screenshot. Please Click to look into it.
Another problem was with actionBarSize. In layout file it…

Harsh Jain
- 1,372
- 1
- 9
- 17
2
votes
2 answers
Android Studio 3.1 gradle build throws java.util.zip.ZipException
I'm getting this during gradle builds after the upgrade to Android Studio 3.0:
Execution failed for task
':lf-android-myproject:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug'.
java.lang.RuntimeException:…

Dmitry Ryadnenko
- 22,222
- 4
- 42
- 56
2
votes
0 answers
android studio package explorer class showing green backround
I have updated my android studio 3.1 recently when i push my code into github and than package explorer showing green background.
I think thats why my library class cannot access when i make jitpack url and use in another project

Sanjay
- 574
- 6
- 16