Algo do tipo, pela questão da versão do android studio do curso não estar mais disponível, passar nisso tive que alterar no gradle do app
Tive que alterar a implementation do cardview.
implementation 'androidx.cardview:cardview:1.0.0'
no lugar da que o curso trás.
build.gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.alura.financask"
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "com.android.support:appcompat-v7:$app_version"
implementation "com.android.support:design:$app_version"
implementation "com.android.support:support-v4:$app_version"
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.github.clans:fab:1.6.4'
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testImplementation 'junit:junit:4.12'
}
e no gradle do projeto:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
project.ext {
kotlin_version = '1.3.50'
app_version = '29.1.0'
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}