Android: Instant app showing just white screen

百般思念 提交于 2019-12-01 11:52:44

The white screen is visible that means your instant app is running well in emulator. First post your full code so that I can suggest something in better way. Meanwhile, there are some points you check cross check: 1. Check if the XML file of your java activity file is having some text to display on screen. 2. If your app is installed in the emulator, just uninstall it first then select your instant app to run on emulator.

change the emulator's graphics emulated performance from automatic to either Hardware GLES 2.0 or Software GLES 2.0 as shown in this blogpost: http://dominoc925.blogspot.fr/2017/08/android-studio-emulator-how-i-resolved.html

Resolved white screen. possible encounters are

1) if following message

in terminal window I/mple.myfirstap: Background concurrent copying GC freed 8149(516KB) AllocSpace objects, 0(0B) LOS objects, 50% free, 1828KB/3MB, paused 5.100ms total 179.836ms D/EGL_emulation: eglMakeCurrent: 0xe0724840: ver 2 0 (tinfo 0xe27cddc0) Application terminated.

Goto layout/activity_display_message.xml -> Select textView component -> And in Attributes window remove Hardcoded string "textValue", (should not use @string resource) clear the hardcoded textValue and keep it empty for the textbox

2) Optionally you can try uninstalling the app from the emulator and build it again.

Create a new project and see if again nothing shows. There is no problem in your SDK. If SDK fails then your android studio will not start and gives you message to download SDK or give the path of SDK.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!