Getting Rendering issue in Android Studio, Views are not Displaying -


this gradle , search on internet many times not getting solution . used many thing solve not getting eject answer question, please me.

apply plugin: 'com.android.application' android { compilesdkversion 25 buildtoolsversion '25.0.0' databinding { enabled = true }  defaultconfig {     applicationid "com.android.application"     minsdkversion 16     targetsdkversion 25     versioncode 1     versionname "1.0"     testinstrumentationrunner "android.support.test.runner.androidjunitrunner" } buildtypes {     release {         minifyenabled false         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'     } }  repositories {     mavencentral()     flatdir {         dirs 'libs'     }  } sourcesets { main { assets.srcdirs = ['src/main/assets', 'src/main/assets/'] } } } dependencies { testcompile 'junit:junit:4.12' compile 'cz.msebera.android:httpclient:4.4.1.1' compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.android.support:design:25.3.1' compile 'com.android.support:recyclerview-v7:25.3.1' compile 'com.android.support:cardview-v7:25.3.+' compile 'com.github.bumptech.glide:glide:3.7.0' compile(name: "truesdk-0.5", ext: "aar") } apply plugin: 'com.google.gms.google-services' 

i faced same problem. problem comes style.xml

  1. each new version of android provides new api level , new features.
  2. if following someones code , using extends actionbaractivity or extends activity, fine sdk api using @ time wrote it.
  3. when start new blank activity (or in version24 empty activity), , min api want support less current api, android create activity extending appcompatactivity. id can support older api levels.
  4. the theme tied activity type activity extends.

solutions :

<!-- base application theme. --> <style name="apptheme" parent="base.theme.appcompat.light.darkactionbar"> <!-- customize theme here. --> </style> 

or,

  1. first have sync project.
  2. next, go build menu, , clic on clean project.
  3. finally, again, go build menu, , clic on rebuild option.

Comments

Popular posts from this blog

Add new key value to json node in java -

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

javascript - Highcharts Synchronized charts with missing data points -