For questions related to the usage and features that are specific to version 3.1.4 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.
Questions tagged [android-studio-3.1.4]
26 questions
11
votes
3 answers
Migration to androidX missing in Android Studio
I am trying to migrate my project to androidX. The project i am trying to migrate is based on android support libraries AppCompat. In the Developer Documentation it says that you can migrate to AndroidX by doing the Following:
Android Studio ->…

laim2003
- 299
- 4
- 19
8
votes
3 answers
Android Studio 3.1.4 : ANDROID_SDK_HOME is set to the root of your SDK
Error: SDK Validation
ANDROID_SDK_HOME is set to the root of your SDK: C:\Users\Ali Asadullah\AppData\Local\Android\sdk
This is the path of the preference folder expected by the Android tools.It should NOT be set to the same as the root of your SDK.…

Ali Asadullah Shah
- 85
- 1
- 1
- 12
7
votes
1 answer
Why won't scratch files work in Android Studio?
I just tried creating and running my first scratch file in Android Studio and it refuses to execute. Once I "get the red out" of the code, and try to execute it, it invariably gives me this message:
"C:\Program Files\Android\Android…

Henry
- 1,395
- 1
- 12
- 31
2
votes
1 answer
Android Studio 3.1.4 Cannot resolve symbol R
I know there are many similar questions, but none of them fix my issue.
Firstly there is an error: Cannot resolve symbol 'R'. Also in the build tab, there is an error: Build: build failed. Over to the side of that, it says Manifest merger failed…

Dennis Ranish
- 573
- 1
- 4
- 18
2
votes
1 answer
Android Studio 3.1.4 Design Preview Not Rendering Material Design Elements
I'm using Android Studio 3.1.4. In order to use the latest material design library, I updated the compile and target SDK versions to 28. Right now, I'm using some TextInputLayouts and TextInputEditTexts in a basic linear layout, and the design…

Chris C.
- 80
- 8
2
votes
1 answer
Issues when updating Android Studio from version 3.1.3 to version 3.1.4
I upgraded from Android Studio 3.1.3 to Android Studio 3.1.4. The update has completed successfully but now every time I start Android Studio, the following message appears : "Clear Read-Only Status" (See image below).
When I press "ok", I have…

pzambou
- 21
- 5
1
vote
1 answer
Android Studio encouters Manifest Merger Error
I have encountered Manifest Merger Error on Android Studio and am at a lost on how to solve the errors despite attempting all the solution suggested on StackOverFlow.
My Error:
Manifest Merger Error
Execution failed for task…

programbunowl
- 13
- 3
1
vote
1 answer
How to access a text file from an android Application?
I have a text file with some data that I want to copy in an SQLite database.
I can not access to files on "downloads" directory of the phone I have an Permission denied exception (I use the path provided by the Device File Explorer of…

user2674471
- 35
- 2
- 8
1
vote
2 answers
Android Studio 3.1.4 shows unexpected errors
I have updated my android studio to 3.1.4. Everything was working fine but after updating the studio, It is showing unexpected errors.
Followed the below steps to resolve,
Invalidate cache and re-start.
Clean project and re-build.
Deleted .idea…

hasan_shaikh
- 1,434
- 1
- 15
- 38
1
vote
0 answers
Task 'assemble' not found in root project for Android Studio 3.1.4 with Cordova
I was developping a Cordova app in Visual Studio 2017 and after wanting to use Firebase and running into multiple issues, I was told that I should transfer to using Android Studio instead. The app is already published and was working fine (except…

user3242224
- 169
- 7
1
vote
1 answer
I would like to use the button style "Widget.Button.Transparent" in Android Studio
When I am going to use this button style, this message appears:
error: resource android:style/Widget.Button.Transparent is private.
Details about my system:
OS: Ubuntu 16.04 LTS
Android Studio 3.1.4 Build # AI-173.4907809, built on July 23,…

M4LWarE
- 13
- 2
1
vote
1 answer
Android Studio - invalidate vs restart vs invalidate and restart
When you go to File -> Invalidate Caches/Restart you can see three options presented to you:
1) Invalidate
2) Just restart
3) Invalidate and restart
I usually choose option 3, but in which cases would you use one of the other two?

Jon
- 7,941
- 9
- 53
- 105
1
vote
1 answer
inappmessaging-display:17.0.0' CreateProcess error=206, The filename or extension is too long
When I add
implementation 'com.google.firebase:firebase-inappmessaging-display:17.0.0' to my gradle file, Android Studio cannot generate apk, instead it gives this error:
CreateProcess error=206, The filename or extension is too long.
Any help…

Joseph Wambura
- 2,732
- 2
- 21
- 24
0
votes
2 answers
Build Failed because of duplicate value for resource 'attr/mode' with config
after I upgraded constraintLayout version from 1.1.2 -> 2.0.0-alpha2
I'm getting this error
java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
…

Zafer Celaloglu
- 1,438
- 1
- 17
- 28
0
votes
1 answer
BLE connection issue with HM-10 and temperature sensor : Android app using android studio version 3.1.4 and API 15:Android 4.0.3 (IceCreamSandwich)
I have to design an android application using android studio sdk version 3.1.4 and developing on API 15: Android 4.0.3 (IceCreamSandwich) that is capable to receive csv data from arduino using HM 10 BLE module similar to BLE terminal app on…

tshivam
- 137
- 1
- 1
- 7