• 카테고리

    질문 & 답변
  • 세부 분야

    모바일 앱 개발

  • 해결 여부

    해결됨

프래그먼트 오류가 납니다!

23.09.19 22:29 작성 조회수 455

0

5강의 내비게이션 프래그먼트 강의 수강 중 오류가 납니다.

코드 작성 시 빨간 줄 뜨는 건 없었는데 실행 시키면 arr metadata 체크 할 때 8개의 오류가 난다고 뜹니다

 

8 issues were found when checking AAR metadata:

1. Dependency 'androidx.navigation:navigation-common:2.7.2' 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.

Recommended action: Update this project to use a newer compileSdk

of at least 34, for example 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.2' 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.

Recommended action: Update this project to use a newer compileSdk

of at least 34, for example 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.2' 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.

Recommended action: Update this project to use a newer compileSdk

of at least 34, for example 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.2' 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.

Recommended action: Update this project to use a newer compileSdk

of at least 34, for example 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.2' 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.

Recommended action: Update this project to use a newer compileSdk

of at least 34, for example 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.2' 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.

Recommended action: Update this project to use a newer compileSdk

of at least 34, for example 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.2' 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.

Recommended action: Update this project to use a newer compileSdk

of at least 34, for example 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.2' 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.

Recommended action: Update this project to use a newer compileSdk

of at least 34, for example 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).

 

이건 33으로 되어 있는데 34로 바꾸면 실행 버튼이 비활성화 됩니다.

이것도 제대로 되어 있는 거 같은데 뭐가 문젤까요ㅠ

답변 1

답변을 작성해보세요.

0

전체 코드를 깃헙이나 구글 드라이브를 통해 공유해주세요~

테스트 디바이스 버전이 낮아서 그런 거 같아요! 핸드폰 연결하고 34로 바꿔서 실행시키니까 해결됐습니다!

 

강사님 그리고 혹시 깃허브랑 안드로이드스튜디오 연결하는 강의 찍어주실 수 있나요? 유튜브 보고 해보려고 했는데 거의 다 2년 이상 된 오래된 영상밖에 없어서요ㅠ

다음 강의 업데이트할 때 참고하겠습니다 :)