Reputation: 139
I am using the following gardle
{
compileSdkVersion 28
defaultConfig {
applicationId "fitness.ayman.salah.fitness"
minSdkVersion 22
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-
core:3.0.2'
compile 'com.github.bumptech.glide:glide:4.0.0'
}
I am trying to use TabLayout, but it cannot find it (cannot resolve TabLayout).
Any suggestion?
Upvotes: 1
Views: 1282
Reputation: 1
I suggest you to use this implementation
implementation 'com.android.support:design:28.1.0'
my case solved with that implementaion
Upvotes: 0
Reputation: 139
I found the problem
I removed the following from my attrs.xml
<attr name="fabSize">
<enum name="normal" value="0" />
<enum name="mini" value="1" />
</attr>
Problem disappeared. I am not sure exactly why this cause the problem. But SOLVED
Upvotes: 0
Reputation: 320
You haven't added the Design Support Library in your dependencies. Add these lines of code according to your compile and target sdk
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.0'
Upvotes: 1