Android Studio - XML Editor autocomplete not working with support libraries
I just started using the new android.support.design library. When using any of the widgets inside the XML editor I stop getting the XML autocomplete suggestions!
For example,
<android.support.design.widget.CoordinatorLayout
android:id="@+id/header_root"
android:layout_width="match_parent"
android:layout_height="200dp">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/primary_dark" />
<android.support.design.widget.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|right"
android:src="@drawable/ic_action_add"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="56dp"
app:fabSize="normal"
app:layout_anchor="@id/header_root"
app:layout_anchorGravity="bottom|right|end" />
</android.support.design.widget.CoordinatorLayout>
None of the tags will show the autocomplete popup, like when I start typing "android:i" no popup appears, the only suggestion I get is shown in the following picture.
I have tried cleaning my project, restarting the pc, restarting Android Studio.. nothing is working!


add a comment |
I just started using the new android.support.design library. When using any of the widgets inside the XML editor I stop getting the XML autocomplete suggestions!
For example,
<android.support.design.widget.CoordinatorLayout
android:id="@+id/header_root"
android:layout_width="match_parent"
android:layout_height="200dp">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/primary_dark" />
<android.support.design.widget.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|right"
android:src="@drawable/ic_action_add"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="56dp"
app:fabSize="normal"
app:layout_anchor="@id/header_root"
app:layout_anchorGravity="bottom|right|end" />
</android.support.design.widget.CoordinatorLayout>
None of the tags will show the autocomplete popup, like when I start typing "android:i" no popup appears, the only suggestion I get is shown in the following picture.
I have tried cleaning my project, restarting the pc, restarting Android Studio.. nothing is working!


1
same here, xml auto complete not working when using custom library
– Damandeep
Jun 8 '15 at 4:36
Have you resolved this issue yet?
– dknchris
Jun 20 '15 at 9:14
Unfortunately, I have not yet. The support library still doesn't populate.
– hitch.united
Jun 20 '15 at 18:38
It would be so nice if Google gave us a working editor before shutting down Eclipse!
– Richard Le Mesurier
Sep 11 '15 at 8:00
1
Related bug report: Issue 61844: Autocomplete stopped working. Please star so that they fix the issue.
– Richard Le Mesurier
Sep 11 '15 at 8:10
add a comment |
I just started using the new android.support.design library. When using any of the widgets inside the XML editor I stop getting the XML autocomplete suggestions!
For example,
<android.support.design.widget.CoordinatorLayout
android:id="@+id/header_root"
android:layout_width="match_parent"
android:layout_height="200dp">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/primary_dark" />
<android.support.design.widget.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|right"
android:src="@drawable/ic_action_add"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="56dp"
app:fabSize="normal"
app:layout_anchor="@id/header_root"
app:layout_anchorGravity="bottom|right|end" />
</android.support.design.widget.CoordinatorLayout>
None of the tags will show the autocomplete popup, like when I start typing "android:i" no popup appears, the only suggestion I get is shown in the following picture.
I have tried cleaning my project, restarting the pc, restarting Android Studio.. nothing is working!


I just started using the new android.support.design library. When using any of the widgets inside the XML editor I stop getting the XML autocomplete suggestions!
For example,
<android.support.design.widget.CoordinatorLayout
android:id="@+id/header_root"
android:layout_width="match_parent"
android:layout_height="200dp">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/primary_dark" />
<android.support.design.widget.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|right"
android:src="@drawable/ic_action_add"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="56dp"
app:fabSize="normal"
app:layout_anchor="@id/header_root"
app:layout_anchorGravity="bottom|right|end" />
</android.support.design.widget.CoordinatorLayout>
None of the tags will show the autocomplete popup, like when I start typing "android:i" no popup appears, the only suggestion I get is shown in the following picture.
I have tried cleaning my project, restarting the pc, restarting Android Studio.. nothing is working!




asked Jun 6 '15 at 15:32


hitch.unitedhitch.united
4,19072648
4,19072648
1
same here, xml auto complete not working when using custom library
– Damandeep
Jun 8 '15 at 4:36
Have you resolved this issue yet?
– dknchris
Jun 20 '15 at 9:14
Unfortunately, I have not yet. The support library still doesn't populate.
– hitch.united
Jun 20 '15 at 18:38
It would be so nice if Google gave us a working editor before shutting down Eclipse!
– Richard Le Mesurier
Sep 11 '15 at 8:00
1
Related bug report: Issue 61844: Autocomplete stopped working. Please star so that they fix the issue.
– Richard Le Mesurier
Sep 11 '15 at 8:10
add a comment |
1
same here, xml auto complete not working when using custom library
– Damandeep
Jun 8 '15 at 4:36
Have you resolved this issue yet?
– dknchris
Jun 20 '15 at 9:14
Unfortunately, I have not yet. The support library still doesn't populate.
– hitch.united
Jun 20 '15 at 18:38
It would be so nice if Google gave us a working editor before shutting down Eclipse!
– Richard Le Mesurier
Sep 11 '15 at 8:00
1
Related bug report: Issue 61844: Autocomplete stopped working. Please star so that they fix the issue.
– Richard Le Mesurier
Sep 11 '15 at 8:10
1
1
same here, xml auto complete not working when using custom library
– Damandeep
Jun 8 '15 at 4:36
same here, xml auto complete not working when using custom library
– Damandeep
Jun 8 '15 at 4:36
Have you resolved this issue yet?
– dknchris
Jun 20 '15 at 9:14
Have you resolved this issue yet?
– dknchris
Jun 20 '15 at 9:14
Unfortunately, I have not yet. The support library still doesn't populate.
– hitch.united
Jun 20 '15 at 18:38
Unfortunately, I have not yet. The support library still doesn't populate.
– hitch.united
Jun 20 '15 at 18:38
It would be so nice if Google gave us a working editor before shutting down Eclipse!
– Richard Le Mesurier
Sep 11 '15 at 8:00
It would be so nice if Google gave us a working editor before shutting down Eclipse!
– Richard Le Mesurier
Sep 11 '15 at 8:00
1
1
Related bug report: Issue 61844: Autocomplete stopped working. Please star so that they fix the issue.
– Richard Le Mesurier
Sep 11 '15 at 8:10
Related bug report: Issue 61844: Autocomplete stopped working. Please star so that they fix the issue.
– Richard Le Mesurier
Sep 11 '15 at 8:10
add a comment |
14 Answers
14
active
oldest
votes
I have tried alot of things (restart Android Studio, PC, Invalidate Caches, Power Saver mode,...).
Finally, deleting .idea folder and all .iml files from the project, restarting Android Studio and rebuilding gradle did the trick. Autocomplete in XML support library is working again.
Checking out files from Version Control or copying all the source files in a new project would do the trick as well.
4
The common answers for questions about this, didn't work for me either. I was starting to think I'd just have to put up with it, until I found your answer. Thanks!
– Sound Conception
Jul 16 '15 at 1:20
2
Worked, thank you, that was driving me crazy.
– Tyler Pfaff
Aug 4 '15 at 6:17
2
Awesome!!! Thanks for this Marko. Almost recreated my project from scratch...good thing I came here first.
– Joel Dean
Aug 22 '15 at 23:29
1
@JoelDean same here... Glad it helped you :)
– Marko
Aug 23 '15 at 20:21
3
Thanks for the solution. Need to open the project by browsing to the physical folder itself. Project entry on Android Studio startup screen didn't work for me.
– raevilman
Sep 7 '15 at 14:23
|
show 5 more comments
I got my autocomplete suggestions back by invalidating Caches and restarting.
File -> Invalidate Caches / Restart... -> Select Invalidate and Restart
11
Thanks for the suggestion, I tried this but it did not work.
– hitch.united
Jun 12 '15 at 23:54
1
Worked for me, thanks. Tried it on Studio 2.2 Preview Windows 64 bit
– Prashant
Aug 1 '16 at 10:40
worked for me aswell
– blackHawk
Mar 4 '17 at 6:28
worked for me (Android Studio 3.1.3)
– fantouch
Jul 24 '18 at 13:12
add a comment |
If NONE
of the above answers worked ...
Just navigate to your android studio installation directory, i.e,
yourDrive:/.AndroidStudio3.3/system
and DELETE THE CACHE FOLDER ( first close android studio, if its running ).
Then start Android Studio again. Done.
P.S I am using android studio 3.3
for me, removing the whole .AndroidStudio3.3 folder did the trick. I think it goofed up during the import process.
– Angel Koh
Feb 12 at 14:41
I ended up removing the folder, and the problem is now solved!
– Yath Seanghay
Feb 20 at 16:24
add a comment |
I got in a situation where only the EditText
tag was broken. I've deleted the .idea folder and all .iml, invalidated the cache and restarted... What actually worked was to erase the tag and type it again. Really Odd.
why its important to delete .idea folder whats the logic
– blackHawk
Mar 4 '17 at 6:29
so, we had to check whether the problem exists in all places or in a single file/ in specific files, then should check the broken layout code
– Blue_Alien
Jun 26 '18 at 5:56
add a comment |
Deleting Library/Application Support/AndroidStudio* folder and Invalidate Cache after that helped me. All other options didn't work.
add a comment |
In my case Code Completion suggestions were not appearing because Gradle dependency was missing in my application's module.
I was using android.support.design.widget.TabLayout
in my XML layout, but I have not added Design Support Library compile 'com.android.support:design:25.3.1'
Gradle dependency in my application module.
add a comment |
If you're having this problem in November 2018 with Android Studio 3.2.1, you should try downgrading it to 3.1.4.
With 3.2.1 i tried every of this answers and didn't work, but after i downgraded to 3.1.4 and did the Invalidate Caches / Restart it worked fine.
add a comment |
This same problem appeared in version 3.2. . The solution for that is
Close Android Studio
Go to C:UsersUserName.android and rename the build-cache folder to build-cache.bak
Go to C:UsersUserName.AndroidStudio3.2system and rename these folders
caches to caches.bak
compiler to compiler.bak
compile-server to compile-server.bak
conversion to conversion.bak
external_build_system to external_build_system.bak
frameworks to frameworks.bak
gradle to gradle.bak
resource_folder_cache to resource_folder_cache.bak
Open the Android Studio and open your project again.
add a comment |
Solved by deleting '.androidStudioPreview1.X' in my home folder.
add a comment |
I too got in a situation where only the EditText tag was broken. The solution was found in Setting > Editor >General > Auto Import where Edit Text was listed as excluded from auto completion. Remove that by select and click Minus sign.
add a comment |
File -> Invalidate Caches / Restart... -> Select Invalidate and Restart
and turn of power save mode it does works
add a comment |
I tried with Invalid caches/restart option but it didn't work for me.
For Android Studio 3> versions check following first:
compileSdkVersion
targetSdkVersion
buildToolsVersion
Set these 3 to the latest version and then try to sync the project and clean, ReBuild once. It will work and show the XML editor autocomplete options.
add a comment |
A few years too late, but I wanted to submit an answer to this that I figured out and worked for me. It was very quick and didnt require a lot of reconfiguration as some of other answers on here had, so I thought I'd add it.
Solution
Comment the gradle dependencies for xml attributes, sync the project, and then un-comment them and sync it again. For me, resyncing these three with and then without the comments was enough to get them to start coming up again.
//implementation 'com.android.support:appcompat-v7:27.1.1'
//implementation 'com.android.support.constraint:constraint-layout:1.1.3'
//implementation 'com.android.support:design:27.1.1'
And don't worry if your build fails after the first step, it should if you already have any of those attributes in your project. Another note, the attributes that I had previously put in (without the autocomplete before the resync) needed to be re-inputted for some reason.
add a comment |
Delete the complete folder ` of the android studio and then restarting it. Solve the problem
driveLocation:/.AndroidStudio3.3
.AndroidStudio3.3
may be different in your case
add a comment |
protected by Community♦ Jan 11 at 7:14
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
14 Answers
14
active
oldest
votes
14 Answers
14
active
oldest
votes
active
oldest
votes
active
oldest
votes
I have tried alot of things (restart Android Studio, PC, Invalidate Caches, Power Saver mode,...).
Finally, deleting .idea folder and all .iml files from the project, restarting Android Studio and rebuilding gradle did the trick. Autocomplete in XML support library is working again.
Checking out files from Version Control or copying all the source files in a new project would do the trick as well.
4
The common answers for questions about this, didn't work for me either. I was starting to think I'd just have to put up with it, until I found your answer. Thanks!
– Sound Conception
Jul 16 '15 at 1:20
2
Worked, thank you, that was driving me crazy.
– Tyler Pfaff
Aug 4 '15 at 6:17
2
Awesome!!! Thanks for this Marko. Almost recreated my project from scratch...good thing I came here first.
– Joel Dean
Aug 22 '15 at 23:29
1
@JoelDean same here... Glad it helped you :)
– Marko
Aug 23 '15 at 20:21
3
Thanks for the solution. Need to open the project by browsing to the physical folder itself. Project entry on Android Studio startup screen didn't work for me.
– raevilman
Sep 7 '15 at 14:23
|
show 5 more comments
I have tried alot of things (restart Android Studio, PC, Invalidate Caches, Power Saver mode,...).
Finally, deleting .idea folder and all .iml files from the project, restarting Android Studio and rebuilding gradle did the trick. Autocomplete in XML support library is working again.
Checking out files from Version Control or copying all the source files in a new project would do the trick as well.
4
The common answers for questions about this, didn't work for me either. I was starting to think I'd just have to put up with it, until I found your answer. Thanks!
– Sound Conception
Jul 16 '15 at 1:20
2
Worked, thank you, that was driving me crazy.
– Tyler Pfaff
Aug 4 '15 at 6:17
2
Awesome!!! Thanks for this Marko. Almost recreated my project from scratch...good thing I came here first.
– Joel Dean
Aug 22 '15 at 23:29
1
@JoelDean same here... Glad it helped you :)
– Marko
Aug 23 '15 at 20:21
3
Thanks for the solution. Need to open the project by browsing to the physical folder itself. Project entry on Android Studio startup screen didn't work for me.
– raevilman
Sep 7 '15 at 14:23
|
show 5 more comments
I have tried alot of things (restart Android Studio, PC, Invalidate Caches, Power Saver mode,...).
Finally, deleting .idea folder and all .iml files from the project, restarting Android Studio and rebuilding gradle did the trick. Autocomplete in XML support library is working again.
Checking out files from Version Control or copying all the source files in a new project would do the trick as well.
I have tried alot of things (restart Android Studio, PC, Invalidate Caches, Power Saver mode,...).
Finally, deleting .idea folder and all .iml files from the project, restarting Android Studio and rebuilding gradle did the trick. Autocomplete in XML support library is working again.
Checking out files from Version Control or copying all the source files in a new project would do the trick as well.
edited Mar 3 at 11:18
answered Jul 3 '15 at 12:53
MarkoMarko
15.1k103959
15.1k103959
4
The common answers for questions about this, didn't work for me either. I was starting to think I'd just have to put up with it, until I found your answer. Thanks!
– Sound Conception
Jul 16 '15 at 1:20
2
Worked, thank you, that was driving me crazy.
– Tyler Pfaff
Aug 4 '15 at 6:17
2
Awesome!!! Thanks for this Marko. Almost recreated my project from scratch...good thing I came here first.
– Joel Dean
Aug 22 '15 at 23:29
1
@JoelDean same here... Glad it helped you :)
– Marko
Aug 23 '15 at 20:21
3
Thanks for the solution. Need to open the project by browsing to the physical folder itself. Project entry on Android Studio startup screen didn't work for me.
– raevilman
Sep 7 '15 at 14:23
|
show 5 more comments
4
The common answers for questions about this, didn't work for me either. I was starting to think I'd just have to put up with it, until I found your answer. Thanks!
– Sound Conception
Jul 16 '15 at 1:20
2
Worked, thank you, that was driving me crazy.
– Tyler Pfaff
Aug 4 '15 at 6:17
2
Awesome!!! Thanks for this Marko. Almost recreated my project from scratch...good thing I came here first.
– Joel Dean
Aug 22 '15 at 23:29
1
@JoelDean same here... Glad it helped you :)
– Marko
Aug 23 '15 at 20:21
3
Thanks for the solution. Need to open the project by browsing to the physical folder itself. Project entry on Android Studio startup screen didn't work for me.
– raevilman
Sep 7 '15 at 14:23
4
4
The common answers for questions about this, didn't work for me either. I was starting to think I'd just have to put up with it, until I found your answer. Thanks!
– Sound Conception
Jul 16 '15 at 1:20
The common answers for questions about this, didn't work for me either. I was starting to think I'd just have to put up with it, until I found your answer. Thanks!
– Sound Conception
Jul 16 '15 at 1:20
2
2
Worked, thank you, that was driving me crazy.
– Tyler Pfaff
Aug 4 '15 at 6:17
Worked, thank you, that was driving me crazy.
– Tyler Pfaff
Aug 4 '15 at 6:17
2
2
Awesome!!! Thanks for this Marko. Almost recreated my project from scratch...good thing I came here first.
– Joel Dean
Aug 22 '15 at 23:29
Awesome!!! Thanks for this Marko. Almost recreated my project from scratch...good thing I came here first.
– Joel Dean
Aug 22 '15 at 23:29
1
1
@JoelDean same here... Glad it helped you :)
– Marko
Aug 23 '15 at 20:21
@JoelDean same here... Glad it helped you :)
– Marko
Aug 23 '15 at 20:21
3
3
Thanks for the solution. Need to open the project by browsing to the physical folder itself. Project entry on Android Studio startup screen didn't work for me.
– raevilman
Sep 7 '15 at 14:23
Thanks for the solution. Need to open the project by browsing to the physical folder itself. Project entry on Android Studio startup screen didn't work for me.
– raevilman
Sep 7 '15 at 14:23
|
show 5 more comments
I got my autocomplete suggestions back by invalidating Caches and restarting.
File -> Invalidate Caches / Restart... -> Select Invalidate and Restart
11
Thanks for the suggestion, I tried this but it did not work.
– hitch.united
Jun 12 '15 at 23:54
1
Worked for me, thanks. Tried it on Studio 2.2 Preview Windows 64 bit
– Prashant
Aug 1 '16 at 10:40
worked for me aswell
– blackHawk
Mar 4 '17 at 6:28
worked for me (Android Studio 3.1.3)
– fantouch
Jul 24 '18 at 13:12
add a comment |
I got my autocomplete suggestions back by invalidating Caches and restarting.
File -> Invalidate Caches / Restart... -> Select Invalidate and Restart
11
Thanks for the suggestion, I tried this but it did not work.
– hitch.united
Jun 12 '15 at 23:54
1
Worked for me, thanks. Tried it on Studio 2.2 Preview Windows 64 bit
– Prashant
Aug 1 '16 at 10:40
worked for me aswell
– blackHawk
Mar 4 '17 at 6:28
worked for me (Android Studio 3.1.3)
– fantouch
Jul 24 '18 at 13:12
add a comment |
I got my autocomplete suggestions back by invalidating Caches and restarting.
File -> Invalidate Caches / Restart... -> Select Invalidate and Restart
I got my autocomplete suggestions back by invalidating Caches and restarting.
File -> Invalidate Caches / Restart... -> Select Invalidate and Restart
answered Jun 9 '15 at 9:16
user4989692user4989692
1,33311425
1,33311425
11
Thanks for the suggestion, I tried this but it did not work.
– hitch.united
Jun 12 '15 at 23:54
1
Worked for me, thanks. Tried it on Studio 2.2 Preview Windows 64 bit
– Prashant
Aug 1 '16 at 10:40
worked for me aswell
– blackHawk
Mar 4 '17 at 6:28
worked for me (Android Studio 3.1.3)
– fantouch
Jul 24 '18 at 13:12
add a comment |
11
Thanks for the suggestion, I tried this but it did not work.
– hitch.united
Jun 12 '15 at 23:54
1
Worked for me, thanks. Tried it on Studio 2.2 Preview Windows 64 bit
– Prashant
Aug 1 '16 at 10:40
worked for me aswell
– blackHawk
Mar 4 '17 at 6:28
worked for me (Android Studio 3.1.3)
– fantouch
Jul 24 '18 at 13:12
11
11
Thanks for the suggestion, I tried this but it did not work.
– hitch.united
Jun 12 '15 at 23:54
Thanks for the suggestion, I tried this but it did not work.
– hitch.united
Jun 12 '15 at 23:54
1
1
Worked for me, thanks. Tried it on Studio 2.2 Preview Windows 64 bit
– Prashant
Aug 1 '16 at 10:40
Worked for me, thanks. Tried it on Studio 2.2 Preview Windows 64 bit
– Prashant
Aug 1 '16 at 10:40
worked for me aswell
– blackHawk
Mar 4 '17 at 6:28
worked for me aswell
– blackHawk
Mar 4 '17 at 6:28
worked for me (Android Studio 3.1.3)
– fantouch
Jul 24 '18 at 13:12
worked for me (Android Studio 3.1.3)
– fantouch
Jul 24 '18 at 13:12
add a comment |
If NONE
of the above answers worked ...
Just navigate to your android studio installation directory, i.e,
yourDrive:/.AndroidStudio3.3/system
and DELETE THE CACHE FOLDER ( first close android studio, if its running ).
Then start Android Studio again. Done.
P.S I am using android studio 3.3
for me, removing the whole .AndroidStudio3.3 folder did the trick. I think it goofed up during the import process.
– Angel Koh
Feb 12 at 14:41
I ended up removing the folder, and the problem is now solved!
– Yath Seanghay
Feb 20 at 16:24
add a comment |
If NONE
of the above answers worked ...
Just navigate to your android studio installation directory, i.e,
yourDrive:/.AndroidStudio3.3/system
and DELETE THE CACHE FOLDER ( first close android studio, if its running ).
Then start Android Studio again. Done.
P.S I am using android studio 3.3
for me, removing the whole .AndroidStudio3.3 folder did the trick. I think it goofed up during the import process.
– Angel Koh
Feb 12 at 14:41
I ended up removing the folder, and the problem is now solved!
– Yath Seanghay
Feb 20 at 16:24
add a comment |
If NONE
of the above answers worked ...
Just navigate to your android studio installation directory, i.e,
yourDrive:/.AndroidStudio3.3/system
and DELETE THE CACHE FOLDER ( first close android studio, if its running ).
Then start Android Studio again. Done.
P.S I am using android studio 3.3
If NONE
of the above answers worked ...
Just navigate to your android studio installation directory, i.e,
yourDrive:/.AndroidStudio3.3/system
and DELETE THE CACHE FOLDER ( first close android studio, if its running ).
Then start Android Studio again. Done.
P.S I am using android studio 3.3
answered Jan 22 at 9:16
Santanu SurSantanu Sur
3,5153727
3,5153727
for me, removing the whole .AndroidStudio3.3 folder did the trick. I think it goofed up during the import process.
– Angel Koh
Feb 12 at 14:41
I ended up removing the folder, and the problem is now solved!
– Yath Seanghay
Feb 20 at 16:24
add a comment |
for me, removing the whole .AndroidStudio3.3 folder did the trick. I think it goofed up during the import process.
– Angel Koh
Feb 12 at 14:41
I ended up removing the folder, and the problem is now solved!
– Yath Seanghay
Feb 20 at 16:24
for me, removing the whole .AndroidStudio3.3 folder did the trick. I think it goofed up during the import process.
– Angel Koh
Feb 12 at 14:41
for me, removing the whole .AndroidStudio3.3 folder did the trick. I think it goofed up during the import process.
– Angel Koh
Feb 12 at 14:41
I ended up removing the folder, and the problem is now solved!
– Yath Seanghay
Feb 20 at 16:24
I ended up removing the folder, and the problem is now solved!
– Yath Seanghay
Feb 20 at 16:24
add a comment |
I got in a situation where only the EditText
tag was broken. I've deleted the .idea folder and all .iml, invalidated the cache and restarted... What actually worked was to erase the tag and type it again. Really Odd.
why its important to delete .idea folder whats the logic
– blackHawk
Mar 4 '17 at 6:29
so, we had to check whether the problem exists in all places or in a single file/ in specific files, then should check the broken layout code
– Blue_Alien
Jun 26 '18 at 5:56
add a comment |
I got in a situation where only the EditText
tag was broken. I've deleted the .idea folder and all .iml, invalidated the cache and restarted... What actually worked was to erase the tag and type it again. Really Odd.
why its important to delete .idea folder whats the logic
– blackHawk
Mar 4 '17 at 6:29
so, we had to check whether the problem exists in all places or in a single file/ in specific files, then should check the broken layout code
– Blue_Alien
Jun 26 '18 at 5:56
add a comment |
I got in a situation where only the EditText
tag was broken. I've deleted the .idea folder and all .iml, invalidated the cache and restarted... What actually worked was to erase the tag and type it again. Really Odd.
I got in a situation where only the EditText
tag was broken. I've deleted the .idea folder and all .iml, invalidated the cache and restarted... What actually worked was to erase the tag and type it again. Really Odd.
answered May 16 '16 at 19:50


Julio RodriguesJulio Rodrigues
2,52031630
2,52031630
why its important to delete .idea folder whats the logic
– blackHawk
Mar 4 '17 at 6:29
so, we had to check whether the problem exists in all places or in a single file/ in specific files, then should check the broken layout code
– Blue_Alien
Jun 26 '18 at 5:56
add a comment |
why its important to delete .idea folder whats the logic
– blackHawk
Mar 4 '17 at 6:29
so, we had to check whether the problem exists in all places or in a single file/ in specific files, then should check the broken layout code
– Blue_Alien
Jun 26 '18 at 5:56
why its important to delete .idea folder whats the logic
– blackHawk
Mar 4 '17 at 6:29
why its important to delete .idea folder whats the logic
– blackHawk
Mar 4 '17 at 6:29
so, we had to check whether the problem exists in all places or in a single file/ in specific files, then should check the broken layout code
– Blue_Alien
Jun 26 '18 at 5:56
so, we had to check whether the problem exists in all places or in a single file/ in specific files, then should check the broken layout code
– Blue_Alien
Jun 26 '18 at 5:56
add a comment |
Deleting Library/Application Support/AndroidStudio* folder and Invalidate Cache after that helped me. All other options didn't work.
add a comment |
Deleting Library/Application Support/AndroidStudio* folder and Invalidate Cache after that helped me. All other options didn't work.
add a comment |
Deleting Library/Application Support/AndroidStudio* folder and Invalidate Cache after that helped me. All other options didn't work.
Deleting Library/Application Support/AndroidStudio* folder and Invalidate Cache after that helped me. All other options didn't work.
answered Aug 29 '16 at 1:40
jauserjauser
30014
30014
add a comment |
add a comment |
In my case Code Completion suggestions were not appearing because Gradle dependency was missing in my application's module.
I was using android.support.design.widget.TabLayout
in my XML layout, but I have not added Design Support Library compile 'com.android.support:design:25.3.1'
Gradle dependency in my application module.
add a comment |
In my case Code Completion suggestions were not appearing because Gradle dependency was missing in my application's module.
I was using android.support.design.widget.TabLayout
in my XML layout, but I have not added Design Support Library compile 'com.android.support:design:25.3.1'
Gradle dependency in my application module.
add a comment |
In my case Code Completion suggestions were not appearing because Gradle dependency was missing in my application's module.
I was using android.support.design.widget.TabLayout
in my XML layout, but I have not added Design Support Library compile 'com.android.support:design:25.3.1'
Gradle dependency in my application module.
In my case Code Completion suggestions were not appearing because Gradle dependency was missing in my application's module.
I was using android.support.design.widget.TabLayout
in my XML layout, but I have not added Design Support Library compile 'com.android.support:design:25.3.1'
Gradle dependency in my application module.
answered Apr 2 '17 at 7:17


SohailSohail
19510
19510
add a comment |
add a comment |
If you're having this problem in November 2018 with Android Studio 3.2.1, you should try downgrading it to 3.1.4.
With 3.2.1 i tried every of this answers and didn't work, but after i downgraded to 3.1.4 and did the Invalidate Caches / Restart it worked fine.
add a comment |
If you're having this problem in November 2018 with Android Studio 3.2.1, you should try downgrading it to 3.1.4.
With 3.2.1 i tried every of this answers and didn't work, but after i downgraded to 3.1.4 and did the Invalidate Caches / Restart it worked fine.
add a comment |
If you're having this problem in November 2018 with Android Studio 3.2.1, you should try downgrading it to 3.1.4.
With 3.2.1 i tried every of this answers and didn't work, but after i downgraded to 3.1.4 and did the Invalidate Caches / Restart it worked fine.
If you're having this problem in November 2018 with Android Studio 3.2.1, you should try downgrading it to 3.1.4.
With 3.2.1 i tried every of this answers and didn't work, but after i downgraded to 3.1.4 and did the Invalidate Caches / Restart it worked fine.
answered Nov 15 '18 at 17:40
Tincho825Tincho825
380138
380138
add a comment |
add a comment |
This same problem appeared in version 3.2. . The solution for that is
Close Android Studio
Go to C:UsersUserName.android and rename the build-cache folder to build-cache.bak
Go to C:UsersUserName.AndroidStudio3.2system and rename these folders
caches to caches.bak
compiler to compiler.bak
compile-server to compile-server.bak
conversion to conversion.bak
external_build_system to external_build_system.bak
frameworks to frameworks.bak
gradle to gradle.bak
resource_folder_cache to resource_folder_cache.bak
Open the Android Studio and open your project again.
add a comment |
This same problem appeared in version 3.2. . The solution for that is
Close Android Studio
Go to C:UsersUserName.android and rename the build-cache folder to build-cache.bak
Go to C:UsersUserName.AndroidStudio3.2system and rename these folders
caches to caches.bak
compiler to compiler.bak
compile-server to compile-server.bak
conversion to conversion.bak
external_build_system to external_build_system.bak
frameworks to frameworks.bak
gradle to gradle.bak
resource_folder_cache to resource_folder_cache.bak
Open the Android Studio and open your project again.
add a comment |
This same problem appeared in version 3.2. . The solution for that is
Close Android Studio
Go to C:UsersUserName.android and rename the build-cache folder to build-cache.bak
Go to C:UsersUserName.AndroidStudio3.2system and rename these folders
caches to caches.bak
compiler to compiler.bak
compile-server to compile-server.bak
conversion to conversion.bak
external_build_system to external_build_system.bak
frameworks to frameworks.bak
gradle to gradle.bak
resource_folder_cache to resource_folder_cache.bak
Open the Android Studio and open your project again.
This same problem appeared in version 3.2. . The solution for that is
Close Android Studio
Go to C:UsersUserName.android and rename the build-cache folder to build-cache.bak
Go to C:UsersUserName.AndroidStudio3.2system and rename these folders
caches to caches.bak
compiler to compiler.bak
compile-server to compile-server.bak
conversion to conversion.bak
external_build_system to external_build_system.bak
frameworks to frameworks.bak
gradle to gradle.bak
resource_folder_cache to resource_folder_cache.bak
Open the Android Studio and open your project again.
answered Jan 2 at 14:04


DHRUV GAJWADHRUV GAJWA
134
134
add a comment |
add a comment |
Solved by deleting '.androidStudioPreview1.X' in my home folder.
add a comment |
Solved by deleting '.androidStudioPreview1.X' in my home folder.
add a comment |
Solved by deleting '.androidStudioPreview1.X' in my home folder.
Solved by deleting '.androidStudioPreview1.X' in my home folder.
answered Jul 21 '15 at 10:40


poopaoupoopaou
11
11
add a comment |
add a comment |
I too got in a situation where only the EditText tag was broken. The solution was found in Setting > Editor >General > Auto Import where Edit Text was listed as excluded from auto completion. Remove that by select and click Minus sign.
add a comment |
I too got in a situation where only the EditText tag was broken. The solution was found in Setting > Editor >General > Auto Import where Edit Text was listed as excluded from auto completion. Remove that by select and click Minus sign.
add a comment |
I too got in a situation where only the EditText tag was broken. The solution was found in Setting > Editor >General > Auto Import where Edit Text was listed as excluded from auto completion. Remove that by select and click Minus sign.
I too got in a situation where only the EditText tag was broken. The solution was found in Setting > Editor >General > Auto Import where Edit Text was listed as excluded from auto completion. Remove that by select and click Minus sign.
answered Jun 30 '16 at 18:38
nishanisha
155
155
add a comment |
add a comment |
File -> Invalidate Caches / Restart... -> Select Invalidate and Restart
and turn of power save mode it does works
add a comment |
File -> Invalidate Caches / Restart... -> Select Invalidate and Restart
and turn of power save mode it does works
add a comment |
File -> Invalidate Caches / Restart... -> Select Invalidate and Restart
and turn of power save mode it does works
File -> Invalidate Caches / Restart... -> Select Invalidate and Restart
and turn of power save mode it does works
answered Jun 14 '18 at 11:16
llllllllllllllllllllllllllllll
6810
6810
add a comment |
add a comment |
I tried with Invalid caches/restart option but it didn't work for me.
For Android Studio 3> versions check following first:
compileSdkVersion
targetSdkVersion
buildToolsVersion
Set these 3 to the latest version and then try to sync the project and clean, ReBuild once. It will work and show the XML editor autocomplete options.
add a comment |
I tried with Invalid caches/restart option but it didn't work for me.
For Android Studio 3> versions check following first:
compileSdkVersion
targetSdkVersion
buildToolsVersion
Set these 3 to the latest version and then try to sync the project and clean, ReBuild once. It will work and show the XML editor autocomplete options.
add a comment |
I tried with Invalid caches/restart option but it didn't work for me.
For Android Studio 3> versions check following first:
compileSdkVersion
targetSdkVersion
buildToolsVersion
Set these 3 to the latest version and then try to sync the project and clean, ReBuild once. It will work and show the XML editor autocomplete options.
I tried with Invalid caches/restart option but it didn't work for me.
For Android Studio 3> versions check following first:
compileSdkVersion
targetSdkVersion
buildToolsVersion
Set these 3 to the latest version and then try to sync the project and clean, ReBuild once. It will work and show the XML editor autocomplete options.
answered Jan 1 at 13:41


amit pandyaamit pandya
800715
800715
add a comment |
add a comment |
A few years too late, but I wanted to submit an answer to this that I figured out and worked for me. It was very quick and didnt require a lot of reconfiguration as some of other answers on here had, so I thought I'd add it.
Solution
Comment the gradle dependencies for xml attributes, sync the project, and then un-comment them and sync it again. For me, resyncing these three with and then without the comments was enough to get them to start coming up again.
//implementation 'com.android.support:appcompat-v7:27.1.1'
//implementation 'com.android.support.constraint:constraint-layout:1.1.3'
//implementation 'com.android.support:design:27.1.1'
And don't worry if your build fails after the first step, it should if you already have any of those attributes in your project. Another note, the attributes that I had previously put in (without the autocomplete before the resync) needed to be re-inputted for some reason.
add a comment |
A few years too late, but I wanted to submit an answer to this that I figured out and worked for me. It was very quick and didnt require a lot of reconfiguration as some of other answers on here had, so I thought I'd add it.
Solution
Comment the gradle dependencies for xml attributes, sync the project, and then un-comment them and sync it again. For me, resyncing these three with and then without the comments was enough to get them to start coming up again.
//implementation 'com.android.support:appcompat-v7:27.1.1'
//implementation 'com.android.support.constraint:constraint-layout:1.1.3'
//implementation 'com.android.support:design:27.1.1'
And don't worry if your build fails after the first step, it should if you already have any of those attributes in your project. Another note, the attributes that I had previously put in (without the autocomplete before the resync) needed to be re-inputted for some reason.
add a comment |
A few years too late, but I wanted to submit an answer to this that I figured out and worked for me. It was very quick and didnt require a lot of reconfiguration as some of other answers on here had, so I thought I'd add it.
Solution
Comment the gradle dependencies for xml attributes, sync the project, and then un-comment them and sync it again. For me, resyncing these three with and then without the comments was enough to get them to start coming up again.
//implementation 'com.android.support:appcompat-v7:27.1.1'
//implementation 'com.android.support.constraint:constraint-layout:1.1.3'
//implementation 'com.android.support:design:27.1.1'
And don't worry if your build fails after the first step, it should if you already have any of those attributes in your project. Another note, the attributes that I had previously put in (without the autocomplete before the resync) needed to be re-inputted for some reason.
A few years too late, but I wanted to submit an answer to this that I figured out and worked for me. It was very quick and didnt require a lot of reconfiguration as some of other answers on here had, so I thought I'd add it.
Solution
Comment the gradle dependencies for xml attributes, sync the project, and then un-comment them and sync it again. For me, resyncing these three with and then without the comments was enough to get them to start coming up again.
//implementation 'com.android.support:appcompat-v7:27.1.1'
//implementation 'com.android.support.constraint:constraint-layout:1.1.3'
//implementation 'com.android.support:design:27.1.1'
And don't worry if your build fails after the first step, it should if you already have any of those attributes in your project. Another note, the attributes that I had previously put in (without the autocomplete before the resync) needed to be re-inputted for some reason.
answered Feb 4 at 12:25


Andrea deCandiaAndrea deCandia
558
558
add a comment |
add a comment |
Delete the complete folder ` of the android studio and then restarting it. Solve the problem
driveLocation:/.AndroidStudio3.3
.AndroidStudio3.3
may be different in your case
add a comment |
Delete the complete folder ` of the android studio and then restarting it. Solve the problem
driveLocation:/.AndroidStudio3.3
.AndroidStudio3.3
may be different in your case
add a comment |
Delete the complete folder ` of the android studio and then restarting it. Solve the problem
driveLocation:/.AndroidStudio3.3
.AndroidStudio3.3
may be different in your case
Delete the complete folder ` of the android studio and then restarting it. Solve the problem
driveLocation:/.AndroidStudio3.3
.AndroidStudio3.3
may be different in your case
answered Feb 27 at 9:38


Suraj BahadurSuraj Bahadur
84311227
84311227
add a comment |
add a comment |
protected by Community♦ Jan 11 at 7:14
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
1
same here, xml auto complete not working when using custom library
– Damandeep
Jun 8 '15 at 4:36
Have you resolved this issue yet?
– dknchris
Jun 20 '15 at 9:14
Unfortunately, I have not yet. The support library still doesn't populate.
– hitch.united
Jun 20 '15 at 18:38
It would be so nice if Google gave us a working editor before shutting down Eclipse!
– Richard Le Mesurier
Sep 11 '15 at 8:00
1
Related bug report: Issue 61844: Autocomplete stopped working. Please star so that they fix the issue.
– Richard Le Mesurier
Sep 11 '15 at 8:10