Skip to content

Instantly share code, notes, and snippets.

@pennya
Created March 7, 2019 08:42
Show Gist options
  • Save pennya/9ec556e4c3addeaaddc4113b5ffe0796 to your computer and use it in GitHub Desktop.
Save pennya/9ec556e4c3addeaaddc4113b5ffe0796 to your computer and use it in GitHub Desktop.
Rendering Problems NOTE: One or more layouts are missing the layout_width or layout_height attributes. These are required in most layouts
The issue is resolved by these changes:
Close Android Studio
Go to C:\Users\UserName.android and rename the build-cache folder to buildcache.bak
Go to C:\Users\UserName.AndroidStudio3.2\system and rename these folders
(1) caches to caches.bak
(2) compiler to compiler.bak
(3) compile-server to compile-server.bak
(4) conversion to conversion.bak
(5) external_build_system to external_build_system.bak
(6) frameworks to frameworks.bak
(7) gradle to gradle.bak
(8) resource_folder_cache to resource_folder_cache.bak
Open the Android Studio and open your project again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment