+ 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

26th Jun 2018, 10:48 AM
Rstar
Rstar - avatar
11 Respuestas
+ 4
you will have to edit the gradle file .
27th Jun 2018, 5:04 AM
Mithun Verma
Mithun Verma - avatar
+ 10
not on emulator brother ,I don't use emulator, i am talking the preview screen
26th Jun 2018, 11:17 AM
Rstar
Rstar - avatar
+ 10
@Mithun Verma Can you tell me what to edit in gradle file
27th Jun 2018, 5:56 AM
Rstar
Rstar - avatar
+ 10
@Mithun Verma Problem solved . // Thank you all my friends who gave their precious time for my query
27th Jun 2018, 8:47 AM
Rstar
Rstar - avatar
+ 10
@Mithun Verma As you said I made changes in gradle file
27th Jun 2018, 8:53 AM
Rstar
Rstar - avatar
+ 4
congratulation but how.
27th Jun 2018, 8:52 AM
Mithun Verma
Mithun Verma - avatar
+ 3
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
26th Jun 2018, 11:15 AM
Abdelrahman Ashref
Abdelrahman Ashref - avatar
+ 3
Sorry, i missed :(
26th Jun 2018, 11:24 AM
Abdelrahman Ashref
Abdelrahman Ashref - avatar
+ 2
my advice is to write codes in another compiler(visual studio, notepad++). Use Android studio only as a compiler.
6th Sep 2019, 9:00 PM
Giant Programmer
Giant Programmer - avatar
+ 1
Offline android studio
9th Jul 2020, 10:26 AM
Hassan Mohammed Alalei
+ 1
Can you tell me what you code? You want your app showing a text"hello world"?
31st May 2022, 12:04 PM
Wahoman