0

I'm trying to load up cardview frame but all I get is a grey box?

I believe that this maybe due to the version of CardView or buildToolsVersion that I've been using?

I'm a bit confused to what's gone wrong....

Here is a sample of the code.

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    buildToolsVersion "28.0.3"
}

defaultConfig {
    applicationId "com.example.docaok1.mentality_trial.app"
    minSdkVersion 26
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"


}

dependencies {
    implementation project(':feature_origin')
    implementation project(':base')
    implementation 'com.android.support:cardview-v7:28.0.0'
}
<android.support.v7.widget.CardView
       android:layout_width="160dp"
       android:layout_height="190dp"
       android:layout_margin="10dp">
</android.support.v7.widget.CardView>

Edit:

Here is a picture of the problem.

Grey Box Can't find the class?

RejectEd27
  • 51
  • 9

0 Answers0