1

See Images.Check Error Here!

I dont know what happened but every thing shows in error. while restarting sometimes it says something like "can not load settings from file android studio". As you can see my, java code turned in to XML code. I am new in Android studio so please someone help me. I cant even go back to my previous version since i forget commit last 24 hour work. Any suggestion and help will be highly appreciated. Thanks

Community
  • 1
  • 1
iamnabink
  • 454
  • 9
  • 27
  • 1
    Is the original files content is also the same as that? or in the android studio the files displaying like this? – AgentP Sep 22 '19 at 10:56
  • No original files were correct but suddenly android studio acting weird. my java code turned in to xml code. Android studio displaying xml code in instead of java code. – iamnabink Sep 22 '19 at 10:57
  • Why is this tagged under `javascript`? Anyway, you probably just copy-pasted something incorrectly. Have a look at [this](https://stackoverflow.com/questions/29883232/how-do-i-restore-my-project-to-an-older-version-in-android-studio/29883405#29883405) to see whether you can undo your change – PPartisan Sep 22 '19 at 10:58
  • Thanks bro. I did that but didn't worked. :( – iamnabink Sep 22 '19 at 11:02
  • this might help you https://stackoverflow.com/questions/41175409/android-studio-java-file-gets-corrupted/41651518 – AgentP Sep 22 '19 at 11:02
  • No problem... Happy Coding :) – AgentP Sep 22 '19 at 11:17
  • You can't use imageView in layer-list. – Manmohan Sep 22 '19 at 11:45
  • Two show images, you have to use tag and set background in item tag – Manmohan Sep 22 '19 at 11:46

0 Answers0