본문 바로가기

IT/Kotiln

[Android 오류] 6 issues were found when checking AAR metadata: 해결

반응형

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
6 issues were found when checking AAR metadata:
 
  1.  Dependency 'androidx.appcompat:appcompat-resources:1.6.0' requires libraries and applications that
      depend on it to compile against version 33 or later of the
      Android APIs.
 
      :app is currently compiled against android-32.
 
      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 33for example 33.
 
      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).
 
  2.  Dependency 'androidx.appcompat:appcompat:1.6.0' requires libraries and applications that
      depend on it to compile against version 33 or later of the
      Android APIs.
 
      :app is currently compiled against android-32.
 
      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 33, for example 33.
 
      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).
 
  3.  Dependency 'androidx.activity:activity:1.6.0' requires libraries and applications that
      depend on it to compile against version 33 or later of the
      Android APIs.
 
      :app is currently compiled against android-32.
 
      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 33for example 33.
 
      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).
 
  4.  Dependency 'androidx.core:core:1.9.0' requires libraries and applications that
      depend on it to compile against version 33 or later of the
      Android APIs.
 
      :app is currently compiled against android-32.
 
      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 33, for example 33.
 
      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).
 
  5.  Dependency 'androidx.core:core-ktx:1.9.0' requires libraries and applications that
      depend on it to compile against version 33 or later of the
      Android APIs.
 
      :app is currently compiled against android-32.
 
      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 33for example 33.
 
      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).
 
  6.  Dependency 'androidx.annotation:annotation-experimental:1.3.0' requires libraries and applications that
      depend on it to compile against version 33 or later of the
      Android APIs.
 
      :app is currently compiled against android-32.
 
      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 33, for example 33.
 
      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).
 
cs

 

안드로이드 빌드를 하다가 다음과 같은 오류가 생기는 경우가 있다

 

그럼 다음 왼쪽에 있는 Gradle - Scripts - build.gradle (Module) 으로 들어가서 

 

targetSdk와 compileSdk를 찾아준다 

 

오류창에

depend on it to compile against version 33 or later of the
      Android APIs.

이라고 되어있었기 때문에 Sdk 버젼을 수정해주어야한다 

 

 

해당 버전을 33으로 수정해주었다면 우측상단의 Sync Now 버튼을 클릭해 업데이트 해준다

 

그럼 이렇게 정상적으로 BUILD가 완성되고 이제 앱을 실행할 수 있게 된다

반응형