프래그먼트 오류
1277
4 asked
프래그먼트 강의 몇번이고 시도해봤는데 계속 동일한 현상이 일어나 문의드립니다~
아래는 오류코드 입니다!
구글링해도 찾기가 어렵네요 ㅠㅠ
+++++++++++++++++++++++++++++++
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).
Answer 3
7
정확히 저랑 같은 에러가 나셨네요!
build.gradle 가셔서
android {
namespace = "com.choidaehwan.nav_fragment"
compileSdk = 34 // 이부분이 아마 33으로 되어있을거에요 이부분 34 로 고쳐주세요이렇게 34로 고치면 됩니다.
저도 찾아보니까 원인은
androidx.navigation'라는 라이브러리가 안드로이드 API 34 버전 이상을 필요로 하는데,
현재 프로젝트 설정에서는 API 33 버전을 대상으로 컴파일하도록 설정되어 있어서 생겨나는 오류랍니다.
포기 ㄴㄴ 합시당
0
+다른 리스트뷰나 리사이클러뷰는 정상작동합니다
프래그먼트만 왜 이런 오류가 발생하는지 ㅠㅠ
주사위앱 소개 및 레이아웃 설정 문제
0
54
2
안드로이드 에뮬레이터가 실행이 안 되요...ㅠ
0
100
2
30 강 소스 좀 올려 주십시요
0
77
2
onBackPressed 함수가 동영상 하고 다르게 동작합니다.
0
86
2
ListView 초기 실행 안됩니다.
0
89
2
코딩을 완료하고난후 앱 실행시 자동 종료
0
68
2
datavinding에서 오류가 납니다.
0
50
1
안드로이드 스튜디오 버전 차이로 초기 empyt activity 선택하면 안됩니다.
0
102
2
context의 구별에 대하여
0
67
2
"프롤로그에서 ..." 오류 관련해 직전 질문에 대한 추가 질문입니다.
0
66
2
"프롤로그에서 콘텐츠가 허용되지 않습니다." 오류
0
151
3
해결완료
1
182
2
databinding 설정후 run하면 에러(해결)
0
221
2
databinding 설정 이후 실행시 에러
0
265
4
안드로이드 입문하는 사람입니다.
0
68
1
Firebase uid
0
73
3
activity_main 화면 다름
0
113
2
강의화면과 다른데 맞게진행되는것인가요...????
0
104
2
파이어베이스 질문
0
70
2
ActivityMainBinding에 오류가 납니다
0
130
2
선생님 onBackPressed 작동이 안되는거 같습니다
0
117
2
>app>res>layout 이 존재하지 않습니다.
0
116
2
안드로이드 스튜디오 미어캣 버전 사용 한글 깨짐
0
741
2
안드로이드 스튜디오 오류 발생 시 대처 방법은 요?
0
284
2

