강의

멘토링

커뮤니티

Cộng đồng Hỏi & Đáp của Inflearn

Hình ảnh hồ sơ của andy58246246
andy58246246

câu hỏi đã được viết

[Siêu cơ bản] Học Android Kotlin (Android Kotlin) bằng cách tạo 8 ứng dụng

Tạo Navigation (Navigation), Hiểu về Fragment (Fragment)

프래그먼트 오류

Viết

·

1.3K

1

프래그먼트 강의 몇번이고 시도해봤는데 계속 동일한 현상이 일어나 문의드립니다~

아래는 오류코드 입니다!

구글링해도 찾기가 어렵네요 ㅠㅠ

 

+++++++++++++++++++++++++++++++

 

8 issues were found when checking AAR metadata:

1. Dependency 'androidx.navigation:navigation-common:2.7.1' requires libraries and applications that

depend on it to compile against version 34 or later of the

Android APIs.

:app is currently compiled against android-33.

Also, the maximum recommended compile SDK version for Android Gradle

plugin 8.0.2 is 33.

Recommended action: Update this project's version of the Android Gradle

plugin to one that supports 34, then update this project to use

compileSdk of at least 34.

Note that updating a library or application's compileSdk (which

allows newer APIs to be used) can be done separately from updating

targetSdk (which opts the app in to new runtime behavior) and

minSdk (which determines which devices the app can be installed

on).

2. Dependency 'androidx.navigation:navigation-common-ktx:2.7.1' requires libraries and applications that

depend on it to compile against version 34 or later of the

Android APIs.

:app is currently compiled against android-33.

Also, the maximum recommended compile SDK version for Android Gradle

plugin 8.0.2 is 33.

Recommended action: Update this project's version of the Android Gradle

plugin to one that supports 34, then update this project to use

compileSdk of at least 34.

Note that updating a library or application's compileSdk (which

allows newer APIs to be used) can be done separately from updating

targetSdk (which opts the app in to new runtime behavior) and

minSdk (which determines which devices the app can be installed

on).

3. Dependency 'androidx.navigation:navigation-runtime:2.7.1' requires libraries and applications that

depend on it to compile against version 34 or later of the

Android APIs.

:app is currently compiled against android-33.

Also, the maximum recommended compile SDK version for Android Gradle

plugin 8.0.2 is 33.

Recommended action: Update this project's version of the Android Gradle

plugin to one that supports 34, then update this project to use

compileSdk of at least 34.

Note that updating a library or application's compileSdk (which

allows newer APIs to be used) can be done separately from updating

targetSdk (which opts the app in to new runtime behavior) and

minSdk (which determines which devices the app can be installed

on).

4. Dependency 'androidx.navigation:navigation-ui:2.7.1' requires libraries and applications that

depend on it to compile against version 34 or later of the

Android APIs.

:app is currently compiled against android-33.

Also, the maximum recommended compile SDK version for Android Gradle

plugin 8.0.2 is 33.

Recommended action: Update this project's version of the Android Gradle

plugin to one that supports 34, then update this project to use

compileSdk of at least 34.

Note that updating a library or application's compileSdk (which

allows newer APIs to be used) can be done separately from updating

targetSdk (which opts the app in to new runtime behavior) and

minSdk (which determines which devices the app can be installed

on).

5. Dependency 'androidx.navigation:navigation-runtime-ktx:2.7.1' requires libraries and applications that

depend on it to compile against version 34 or later of the

Android APIs.

:app is currently compiled against android-33.

Also, the maximum recommended compile SDK version for Android Gradle

plugin 8.0.2 is 33.

Recommended action: Update this project's version of the Android Gradle

plugin to one that supports 34, then update this project to use

compileSdk of at least 34.

Note that updating a library or application's compileSdk (which

allows newer APIs to be used) can be done separately from updating

targetSdk (which opts the app in to new runtime behavior) and

minSdk (which determines which devices the app can be installed

on).

6. Dependency 'androidx.navigation:navigation-ui-ktx:2.7.1' requires libraries and applications that

depend on it to compile against version 34 or later of the

Android APIs.

:app is currently compiled against android-33.

Also, the maximum recommended compile SDK version for Android Gradle

plugin 8.0.2 is 33.

Recommended action: Update this project's version of the Android Gradle

plugin to one that supports 34, then update this project to use

compileSdk of at least 34.

Note that updating a library or application's compileSdk (which

allows newer APIs to be used) can be done separately from updating

targetSdk (which opts the app in to new runtime behavior) and

minSdk (which determines which devices the app can be installed

on).

7. Dependency 'androidx.navigation:navigation-fragment-ktx:2.7.1' requires libraries and applications that

depend on it to compile against version 34 or later of the

Android APIs.

:app is currently compiled against android-33.

Also, the maximum recommended compile SDK version for Android Gradle

plugin 8.0.2 is 33.

Recommended action: Update this project's version of the Android Gradle

plugin to one that supports 34, then update this project to use

compileSdk of at least 34.

Note that updating a library or application's compileSdk (which

allows newer APIs to be used) can be done separately from updating

targetSdk (which opts the app in to new runtime behavior) and

minSdk (which determines which devices the app can be installed

on).

8. Dependency 'androidx.navigation:navigation-fragment:2.7.1' requires libraries and applications that

depend on it to compile against version 34 or later of the

Android APIs.

:app is currently compiled against android-33.

Also, the maximum recommended compile SDK version for Android Gradle

plugin 8.0.2 is 33.

Recommended action: Update this project's version of the Android Gradle

plugin to one that supports 34, then update this project to use

compileSdk of at least 34.

Note that updating a library or application's compileSdk (which

allows newer APIs to be used) can be done separately from updating

targetSdk (which opts the app in to new runtime behavior) and

minSdk (which determines which devices the app can be installed

on).

 

 

androidkotlinfirebase

Câu trả lời 3

7

정확히 저랑 같은 에러가 나셨네요!
build.gradle 가셔서

android {
    namespace = "com.choidaehwan.nav_fragment"
    compileSdk = 34 // 이부분이 아마 33으로 되어있을거에요 이부분 34 로 고쳐주세요

이렇게 34로 고치면 됩니다.

저도 찾아보니까 원인은

androidx.navigation'라는 라이브러리가 안드로이드 API 34 버전 이상을 필요로 하는데,

현재 프로젝트 설정에서는 API 33 버전을 대상으로 컴파일하도록 설정되어 있어서 생겨나는 오류랍니다.

포기 ㄴㄴ 합시당

 

andy58246246님의 프로필 이미지
andy58246246
Người đặt câu hỏi

와...! 정말 감사합니다!!!!!!

바로 한번 해볼게용

andy58246246님의 프로필 이미지
andy58246246
Người đặt câu hỏi

정말되네요!!!!!!!!! 감사합니다!!!!!!!!!!!!!! 복받으세요!!!! ㅎㅎ

덕분에 바로 해결했습니다. 감사합니다. ㅠㅠ

0

bokchi님의 프로필 이미지
bokchi
Người chia sẻ kiến thức

전체 코드를 깃허브 / 구글 드라이브에 업로드해서 공유해주시면 살펴볼게요~

0

andy58246246님의 프로필 이미지
andy58246246
Người đặt câu hỏi

+다른 리스트뷰나 리사이클러뷰는 정상작동합니다

프래그먼트만 왜 이런 오류가 발생하는지 ㅠㅠ

bokchi님의 프로필 이미지
bokchi
Người chia sẻ kiến thức

전체 코드를 깃허브 / 구글 드라이브에 업로드해서 공유해주시면 살펴볼게요~

Hình ảnh hồ sơ của andy58246246
andy58246246

câu hỏi đã được viết

Đặt câu hỏi