Android studio | Sololearn: Learn to code for FREE!

+12

Android studio

I have a problem In my Android studio , whenever I make changes to my XML file, it doesn't show in preview section. Like if I write a text view of hello world, it doesn't show in preview section, it remains blank but it shows correctly on my mobile when run. Even when I start a new empty activity which already consist of a helloworld program it just shows a blank screen and not hello world Any help is highly appreciated. Thank you in advance

6/26/2018 10:48:43 AM

Rstar

10 Answers

New Answer

+3

you will have to edit the gradle file .

+10

@Mithun Verma Can you tell me what to edit in gradle file

+10

@Mithun Verma As you said I made changes in gradle file

+9

not on emulator brother ,I don't use emulator, i am talking the preview screen

+9

@Mithun Verma Problem solved . // Thank you all my friends who gave their precious time for my query

+3

congratulation but how.

+2

Hi Rstar, i think you have a problem in your Android emulator. I had this problem and i solve it by replace the built-in emulator with external emulator. I wish that will help you

+2

Sorry, i missed :(

+1

my advice is to write codes in another compiler(visual studio, notepad++). Use Android studio only as a compiler.

0

Offline android studio