Android studio strange behaviour with some files appearing different than how they are
up vote
0
down vote
favorite
I have a problem with Android Studio that happened all of a sudden today when I opened AS.
As you may see in the pictures, some files are strange.
In this picture you may see that some of the .java files have different icon
And totally wrong content
Same thing happens with SOME of the XML files which have different content
Also some of the PNG images are not displayed in AS.
All files are ok, if for example I open them externally (notepad...) they are ok (luckily).
Is there a way to fix it?
I've already tried to invalidate cache/restart but it didnt work.
Thanks
android android-studio
add a comment |
up vote
0
down vote
favorite
I have a problem with Android Studio that happened all of a sudden today when I opened AS.
As you may see in the pictures, some files are strange.
In this picture you may see that some of the .java files have different icon
And totally wrong content
Same thing happens with SOME of the XML files which have different content
Also some of the PNG images are not displayed in AS.
All files are ok, if for example I open them externally (notepad...) they are ok (luckily).
Is there a way to fix it?
I've already tried to invalidate cache/restart but it didnt work.
Thanks
android android-studio
I'd try deleting your project from Android Studio (close the project until the project chooser dialog shows up, then click the X next to your project) and then re-import it from build.gradle
– Ben P.
Nov 7 at 22:47
@Ben P. I've tried it, I've also tried deleting .idea folder but it didnt work.
– CalCon
Nov 7 at 23:05
Due to no time to find a fine solution, I've reinstalled Android Studio and it worked. If someone has a more smart fix please post it for the others. Also just for your information, I guess the problem was probably about indexing, Android Studio took one file for another, for example when I opened one image from the drawable, he showed me a different one from the drawable folder, but that's a "fortunate" case, cause he took files from whatever folder. Hope it doesn't happen anymore and it doesn't happen to you guys. Bye.
– CalCon
Nov 8 at 12:15
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a problem with Android Studio that happened all of a sudden today when I opened AS.
As you may see in the pictures, some files are strange.
In this picture you may see that some of the .java files have different icon
And totally wrong content
Same thing happens with SOME of the XML files which have different content
Also some of the PNG images are not displayed in AS.
All files are ok, if for example I open them externally (notepad...) they are ok (luckily).
Is there a way to fix it?
I've already tried to invalidate cache/restart but it didnt work.
Thanks
android android-studio
I have a problem with Android Studio that happened all of a sudden today when I opened AS.
As you may see in the pictures, some files are strange.
In this picture you may see that some of the .java files have different icon
And totally wrong content
Same thing happens with SOME of the XML files which have different content
Also some of the PNG images are not displayed in AS.
All files are ok, if for example I open them externally (notepad...) they are ok (luckily).
Is there a way to fix it?
I've already tried to invalidate cache/restart but it didnt work.
Thanks
android android-studio
android android-studio
asked Nov 7 at 22:41
CalCon
1117
1117
I'd try deleting your project from Android Studio (close the project until the project chooser dialog shows up, then click the X next to your project) and then re-import it from build.gradle
– Ben P.
Nov 7 at 22:47
@Ben P. I've tried it, I've also tried deleting .idea folder but it didnt work.
– CalCon
Nov 7 at 23:05
Due to no time to find a fine solution, I've reinstalled Android Studio and it worked. If someone has a more smart fix please post it for the others. Also just for your information, I guess the problem was probably about indexing, Android Studio took one file for another, for example when I opened one image from the drawable, he showed me a different one from the drawable folder, but that's a "fortunate" case, cause he took files from whatever folder. Hope it doesn't happen anymore and it doesn't happen to you guys. Bye.
– CalCon
Nov 8 at 12:15
add a comment |
I'd try deleting your project from Android Studio (close the project until the project chooser dialog shows up, then click the X next to your project) and then re-import it from build.gradle
– Ben P.
Nov 7 at 22:47
@Ben P. I've tried it, I've also tried deleting .idea folder but it didnt work.
– CalCon
Nov 7 at 23:05
Due to no time to find a fine solution, I've reinstalled Android Studio and it worked. If someone has a more smart fix please post it for the others. Also just for your information, I guess the problem was probably about indexing, Android Studio took one file for another, for example when I opened one image from the drawable, he showed me a different one from the drawable folder, but that's a "fortunate" case, cause he took files from whatever folder. Hope it doesn't happen anymore and it doesn't happen to you guys. Bye.
– CalCon
Nov 8 at 12:15
I'd try deleting your project from Android Studio (close the project until the project chooser dialog shows up, then click the X next to your project) and then re-import it from build.gradle
– Ben P.
Nov 7 at 22:47
I'd try deleting your project from Android Studio (close the project until the project chooser dialog shows up, then click the X next to your project) and then re-import it from build.gradle
– Ben P.
Nov 7 at 22:47
@Ben P. I've tried it, I've also tried deleting .idea folder but it didnt work.
– CalCon
Nov 7 at 23:05
@Ben P. I've tried it, I've also tried deleting .idea folder but it didnt work.
– CalCon
Nov 7 at 23:05
Due to no time to find a fine solution, I've reinstalled Android Studio and it worked. If someone has a more smart fix please post it for the others. Also just for your information, I guess the problem was probably about indexing, Android Studio took one file for another, for example when I opened one image from the drawable, he showed me a different one from the drawable folder, but that's a "fortunate" case, cause he took files from whatever folder. Hope it doesn't happen anymore and it doesn't happen to you guys. Bye.
– CalCon
Nov 8 at 12:15
Due to no time to find a fine solution, I've reinstalled Android Studio and it worked. If someone has a more smart fix please post it for the others. Also just for your information, I guess the problem was probably about indexing, Android Studio took one file for another, for example when I opened one image from the drawable, he showed me a different one from the drawable folder, but that's a "fortunate" case, cause he took files from whatever folder. Hope it doesn't happen anymore and it doesn't happen to you guys. Bye.
– CalCon
Nov 8 at 12:15
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
The same happened to me when I updated the libraries in gradle kotlin, etc. what I did was to download my project from my version manager and update the libraries one by one and prove the project works.
Dunno, I've reinstalled Android Studio and reconfigured it. It took me a good amount of time, but in the end it worked. Hope someone read this topic and write a less time-wasting solution. Thanks.
– CalCon
Nov 8 at 12:18
same thing happened to me. did reinstalling AS finally corrected those errors?
– Jeongbebs
Nov 11 at 14:35
@Jeongbebs I've posted a quick fix. Hope it helps.
– CalCon
Nov 12 at 12:22
add a comment |
up vote
0
down vote
accepted
So, it happened once again, but I've found a quick fix.
I post it as an answer so people can easily spot it.
Quick fix:
Go to the folder "C:Users"your user"
Rename the folder ".AndroidStudio3.2" in ".AndroidStudio3.2backup"(name is example)
Launch Android Studio, It will not find configuration files, so it will ask you if you want to import them from the folder ".AndroidStudio3.2backup"
Click yes, few seconds and now you can delete the backup folder cause it will be created another ".AndroidStudio3.2" folder. Notice that I've renamed the original folder instead of delete it for security, and so to avoid to reconfigure Andoid Studio again, but you can choose to start a new configuration if you want.
Once launched Android Studio, click import (gradle...) and import your project.
Everything worked fine after this few seconds quick fix.
Hope it helps.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
The same happened to me when I updated the libraries in gradle kotlin, etc. what I did was to download my project from my version manager and update the libraries one by one and prove the project works.
Dunno, I've reinstalled Android Studio and reconfigured it. It took me a good amount of time, but in the end it worked. Hope someone read this topic and write a less time-wasting solution. Thanks.
– CalCon
Nov 8 at 12:18
same thing happened to me. did reinstalling AS finally corrected those errors?
– Jeongbebs
Nov 11 at 14:35
@Jeongbebs I've posted a quick fix. Hope it helps.
– CalCon
Nov 12 at 12:22
add a comment |
up vote
0
down vote
The same happened to me when I updated the libraries in gradle kotlin, etc. what I did was to download my project from my version manager and update the libraries one by one and prove the project works.
Dunno, I've reinstalled Android Studio and reconfigured it. It took me a good amount of time, but in the end it worked. Hope someone read this topic and write a less time-wasting solution. Thanks.
– CalCon
Nov 8 at 12:18
same thing happened to me. did reinstalling AS finally corrected those errors?
– Jeongbebs
Nov 11 at 14:35
@Jeongbebs I've posted a quick fix. Hope it helps.
– CalCon
Nov 12 at 12:22
add a comment |
up vote
0
down vote
up vote
0
down vote
The same happened to me when I updated the libraries in gradle kotlin, etc. what I did was to download my project from my version manager and update the libraries one by one and prove the project works.
The same happened to me when I updated the libraries in gradle kotlin, etc. what I did was to download my project from my version manager and update the libraries one by one and prove the project works.
answered Nov 7 at 23:09
Juan Carlos Trujillo Almanza
84
84
Dunno, I've reinstalled Android Studio and reconfigured it. It took me a good amount of time, but in the end it worked. Hope someone read this topic and write a less time-wasting solution. Thanks.
– CalCon
Nov 8 at 12:18
same thing happened to me. did reinstalling AS finally corrected those errors?
– Jeongbebs
Nov 11 at 14:35
@Jeongbebs I've posted a quick fix. Hope it helps.
– CalCon
Nov 12 at 12:22
add a comment |
Dunno, I've reinstalled Android Studio and reconfigured it. It took me a good amount of time, but in the end it worked. Hope someone read this topic and write a less time-wasting solution. Thanks.
– CalCon
Nov 8 at 12:18
same thing happened to me. did reinstalling AS finally corrected those errors?
– Jeongbebs
Nov 11 at 14:35
@Jeongbebs I've posted a quick fix. Hope it helps.
– CalCon
Nov 12 at 12:22
Dunno, I've reinstalled Android Studio and reconfigured it. It took me a good amount of time, but in the end it worked. Hope someone read this topic and write a less time-wasting solution. Thanks.
– CalCon
Nov 8 at 12:18
Dunno, I've reinstalled Android Studio and reconfigured it. It took me a good amount of time, but in the end it worked. Hope someone read this topic and write a less time-wasting solution. Thanks.
– CalCon
Nov 8 at 12:18
same thing happened to me. did reinstalling AS finally corrected those errors?
– Jeongbebs
Nov 11 at 14:35
same thing happened to me. did reinstalling AS finally corrected those errors?
– Jeongbebs
Nov 11 at 14:35
@Jeongbebs I've posted a quick fix. Hope it helps.
– CalCon
Nov 12 at 12:22
@Jeongbebs I've posted a quick fix. Hope it helps.
– CalCon
Nov 12 at 12:22
add a comment |
up vote
0
down vote
accepted
So, it happened once again, but I've found a quick fix.
I post it as an answer so people can easily spot it.
Quick fix:
Go to the folder "C:Users"your user"
Rename the folder ".AndroidStudio3.2" in ".AndroidStudio3.2backup"(name is example)
Launch Android Studio, It will not find configuration files, so it will ask you if you want to import them from the folder ".AndroidStudio3.2backup"
Click yes, few seconds and now you can delete the backup folder cause it will be created another ".AndroidStudio3.2" folder. Notice that I've renamed the original folder instead of delete it for security, and so to avoid to reconfigure Andoid Studio again, but you can choose to start a new configuration if you want.
Once launched Android Studio, click import (gradle...) and import your project.
Everything worked fine after this few seconds quick fix.
Hope it helps.
add a comment |
up vote
0
down vote
accepted
So, it happened once again, but I've found a quick fix.
I post it as an answer so people can easily spot it.
Quick fix:
Go to the folder "C:Users"your user"
Rename the folder ".AndroidStudio3.2" in ".AndroidStudio3.2backup"(name is example)
Launch Android Studio, It will not find configuration files, so it will ask you if you want to import them from the folder ".AndroidStudio3.2backup"
Click yes, few seconds and now you can delete the backup folder cause it will be created another ".AndroidStudio3.2" folder. Notice that I've renamed the original folder instead of delete it for security, and so to avoid to reconfigure Andoid Studio again, but you can choose to start a new configuration if you want.
Once launched Android Studio, click import (gradle...) and import your project.
Everything worked fine after this few seconds quick fix.
Hope it helps.
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
So, it happened once again, but I've found a quick fix.
I post it as an answer so people can easily spot it.
Quick fix:
Go to the folder "C:Users"your user"
Rename the folder ".AndroidStudio3.2" in ".AndroidStudio3.2backup"(name is example)
Launch Android Studio, It will not find configuration files, so it will ask you if you want to import them from the folder ".AndroidStudio3.2backup"
Click yes, few seconds and now you can delete the backup folder cause it will be created another ".AndroidStudio3.2" folder. Notice that I've renamed the original folder instead of delete it for security, and so to avoid to reconfigure Andoid Studio again, but you can choose to start a new configuration if you want.
Once launched Android Studio, click import (gradle...) and import your project.
Everything worked fine after this few seconds quick fix.
Hope it helps.
So, it happened once again, but I've found a quick fix.
I post it as an answer so people can easily spot it.
Quick fix:
Go to the folder "C:Users"your user"
Rename the folder ".AndroidStudio3.2" in ".AndroidStudio3.2backup"(name is example)
Launch Android Studio, It will not find configuration files, so it will ask you if you want to import them from the folder ".AndroidStudio3.2backup"
Click yes, few seconds and now you can delete the backup folder cause it will be created another ".AndroidStudio3.2" folder. Notice that I've renamed the original folder instead of delete it for security, and so to avoid to reconfigure Andoid Studio again, but you can choose to start a new configuration if you want.
Once launched Android Studio, click import (gradle...) and import your project.
Everything worked fine after this few seconds quick fix.
Hope it helps.
edited Nov 12 at 14:03
answered Nov 12 at 12:21
CalCon
1117
1117
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53199004%2fandroid-studio-strange-behaviour-with-some-files-appearing-different-than-how-th%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I'd try deleting your project from Android Studio (close the project until the project chooser dialog shows up, then click the X next to your project) and then re-import it from build.gradle
– Ben P.
Nov 7 at 22:47
@Ben P. I've tried it, I've also tried deleting .idea folder but it didnt work.
– CalCon
Nov 7 at 23:05
Due to no time to find a fine solution, I've reinstalled Android Studio and it worked. If someone has a more smart fix please post it for the others. Also just for your information, I guess the problem was probably about indexing, Android Studio took one file for another, for example when I opened one image from the drawable, he showed me a different one from the drawable folder, but that's a "fortunate" case, cause he took files from whatever folder. Hope it doesn't happen anymore and it doesn't happen to you guys. Bye.
– CalCon
Nov 8 at 12:15