• 카테고리

    질문 & 답변
  • 세부 분야

    모바일 앱 개발

  • 해결 여부

    미해결

dependecies 의존성 추가 관련 에러 (cardstackview)

23.01.01 17:48 작성 조회수 395

0

CardStackView 구현 강의 수강 중 의존성 관련 에러로 질문드립니다.

 

plugins {
    id 'com.android.application'
    id 'org.jetbrains.kotlin.android'
}

android {
    namespace 'com.example.myapplication'
    compileSdk 32

    defaultConfig {
        applicationId "com.example.myapplication"
        minSdk 21
        targetSdk 32
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = '1.8'
    }
}

dependencies {

    implementation 'androidx.core:core-ktx:1.7.0'
    implementation 'androidx.appcompat:appcompat:1.4.1'
    implementation 'com.google.android.material:material:1.6.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.4'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'

    implementation "com.yuyakaido.android:card-stack-view:2.3.4"
    //implementation("com.yuyakaido.android:card-stack-view:2.3.4")
    //implementation group: 'com.yuyakaido.android', name: 'card-stack-view', version: '2.3.4'
}

여러 방법으로 추가해봤는데

External Libraries에 추가가 안되더라구요.

 

Invalidate Cache & restart도 해보고

IDE 재시작도 해봤는데 여전히 무반응입니다.

 

혹시 프로젝트를 만들 때, 특별한 설정을 해야하나요?

 

현재 Empty Activity로 만들어서 진행하고 있습니다.

 

답변 1

답변을 작성해보세요.

0

안녕하세요.

  1. 우선 android studio를 arctic fox 버전을 쓰신게 맞으실까요?

  2. 섹션 1에 CardStackView 구현 부분을 했을 때 자동완성이 될까요?

이 2가지를 알려주시면 살펴보겠습니다.