IT技術の痒い所に手が届く

詳細

×閉じる

Android Studioのビルドエラーを解決

Android Studioの実行ボタンを押下してビルドエラーが出る

Android Studioを実行して、以下のエラーが出た。

Recommended action: Update this project to use a newer compileSdkVersion

その対処方法です。

Android Studioのビルドエラーを解決

以下の動画を参照してください。

詳しいエラー内容

ちなみに、Android Studioが吐いたエラーメッセージは以下です。

            
              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 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).
            
              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 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).
            
              4.  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 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: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).
            
              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).

          

Copyright(c) 2005-2022 SearchMan Sato . All Rights Reserved. 特定商取引に基づく表示