The binary version of its metadata is 1.9.0, expected version is 1.7.1.
auth = Firebase.auth강의에서 이 부분을 작성하고 코드를 돌린 후에 The binary version of its metadata is 1.9.0, expected version is 1.7.1. 라는 문제가 발생하였습니다. 찾아보니 최신버전이 아니라서 그럴 수 있다고 하여서
File -> Settings -> Appearance & Behavior -> System Settings -> Updates로 들어가서 최신 버전으로 업데이트도 해보고 build.grandle 파일 2개에 이것저것 추가도 해봤지만 결과는 같았습니다.
buildscript {
ext {
agp_version = '7.4.1'
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.google.gms:google-services:4.3.15'
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.4.1' apply false
id 'com.android.library' version '7.2.2' apply false
id 'org.jetbrains.kotlin.android' version '1.7.10' apply false
id("com.google.gms.google-services") version "4.3.15" apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'kotlin-android-extensions'
// 위 선언시 val joinBtn = findViewById<Button>(R.id.joinBtn) 이처럼 따로 설정 안해주고 바로 쓸 수 있다
id 'com.google.gms.google-services'
}
android {
compileSdk 33
defaultConfig {
applicationId "com.example.sogating_final"
minSdk 19
targetSdk 33
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'
}
buildFeatures {
viewBinding true
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.8.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.annotation:annotation:1.2.0'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1' // 최신 버전으로 변경
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1' // 최신 버전으로 변경
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation "com.yuyakaido.android:card-stack-view:2.3.4"
implementation(platform("com.google.firebase:firebase-bom:32.2.2"))
implementation("com.google.firebase:firebase-analytics-ktx")
implementation("com.google.firebase:firebase-auth-ktx")
}더 찾아보니 kotlin-version과 gradle-version을 변경하라고 하는데 지금 버전이 문법이 달라서인지 정확하게 나와있는것을 찾기 힘들어서 질문 드립니다!
답변 1
0
안녕하세요
몇가지 정보가 필요한데요.
이 에러가 나기 전에 어디까지 코딩을 하셨나요? 가능하면 전체 코드를 압축해서 구글 드라이브 or 깃허브에 올려서 공유해주세요.
어떤 코드를 넣고 나서 에러가 났나요?
현재 에러가 나오 있는고 있는 전체 코드를 압축해서 구글 드라이브 or 깃허브에 올려서 공유해주세요.
0
https://drive.google.com/file/d/1lHnsKdOXF0oQHnHsUirsyeo10X0Hj9JA/view?usp=sharing
강의에서 파이어베이스 연동해서 회원가입 기능 구현 화면을 작성하고 돌릴때 에러가 났습니다.
package com.example.sogating_final.auth
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.Toast
import com.example.sogating_final.R
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.ktx.auth
import com.google.firebase.ktx.Firebase
import kotlinx.android.synthetic.main.activity_intro.*
import kotlinx.android.synthetic.main.activity_intro.joinBtn
import kotlinx.android.synthetic.main.activity_join.*
class JoinActivity : AppCompatActivity() {
private val TAG = "JoinActivity"
private lateinit var auth: FirebaseAuth
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_join)
auth = Firebase.auth
joinBtn.setOnClickListener {
auth.createUserWithEmailAndPassword(emailArea.text.toString(), pwdArea.text.toString())
.addOnCompleteListener(this) { task ->
if (task.isSuccessful) {
// Sign in success, update UI with the signed-in user's information
Log.d(TAG, "createUserWithEmail:success")
} else {
// If sign in fails, display a message to the user.
Log.w(TAG, "createUserWithEmail:failure", task.exception)
}
}
}
}
}CardStackView 라이브러리 추가에 실패합니다.
0
98
1
CardStackView
0
126
2
CardStackView 오류 정상적으로 구현이 되지 않습니다.
0
201
3
최신화 된 강의 요청합니다
0
162
2
auth.currentUser?.uid.toString() 가 null 이 나와요
0
194
1
혹시.. 지금 최신 환경 상, 강의 내용대로 진행이 안 되는 걸까요?
0
242
1
현시점에서 알려주신 방법대로 서버키를 받는것이 안되는것같습니다
0
261
2
3강 firebase 쓰기가 동작하질않아요
0
186
1
강사님 실시간으로 혹시 문의하는 방법은 없을까요??
0
185
1
해당 강의 들으시는 분들 중에 교육관련해서 서로 얘기 나누실 분 있으신가요??
0
158
1
강사님 FCM 단계 진행하면서 오류들이 너무 많이 발생합니다...
0
207
1
FCM 토큰 문의
0
215
1
강사님 FCM 단계에서 전체적으로 앱 문제가 발생해서 혹시 원격으로 조치 해주실 수 있나요?
0
232
1
토큰 정보 유저정보에 저장하기 강의 4분 12초 코드를 동일하게 입력했는데 적용이 잘 안되는 것 같아요.
0
398
3
토큰 받아와서 메세지 보내기 강의 2분 20초 로그캣 확인 하는 창이 다르고 토큰 값이 안떠요.
0
221
1
FCM 강의, firebaseservice 클래스 내 오류코드 해결방안이 궁금합니다.
0
274
2
FCM 강의 중간부터 코드 오류가 발생했는지 앱에서 회원가입을 해도 파이어베이스 Authentication에는 회원등록이 해도 화면이 넘어가지 않고 데이터도 저장이 안 되네요.
0
295
3
섹션 1 CardStackView의 Implement members 질문있습니다.
0
228
1
수업자료 다운로드 후 알집풀기에서 오류가 발생합니다.
0
466
3
Retrofit 사용해보기 강의 2:20 쯤에 작성된 복사된 코드는 어디서 받나요?
0
234
2
강의 FCM 소개 1:56에 디펜던시 추가하는게 최신버전으로 바뀐 듯합니다.
0
277
1
매칭이 되면 알람 띄우기 강의에서 오류문구 해결방안이 궁금합니다.
0
357
3
소스코드 다운이 불가능합니다..
0
145
1
나와 다른 성별의 유저 불러오기 강의에서 에뮬레이터에서 앱이 켜졌다가 바로 꺼져요.
0
459
11






