我在我的工程中可能依赖了androidx.appcompat:appcompat-resources:1.6.1相关的库,导致异常,它建议我更换成android-33
8 issues were found when checking AAR metadata:
Dependency 'androidx.appcompat:appcompat-resources:1.6.1' 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-31.
Recommended action: Update this project to use a newer compileSdk
of at least 33, for example 33.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).Dependency 'androidx.appcompat:appcompat:1.6.1' 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-31.
Recommended action: Update this project to use a newer compileSdk
of at least 33, for example 33.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).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-31.
Recommended action: Update this project to use a newer compileSdk
of at least 33, for example 33.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).Dependency 'androidx.emoji2:emoji2-views-helper:1.2.0' requires libraries and applications that
depend on it to compile against version 32 or later of the
Android APIs.:app is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 32, for example 33.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).Dependency 'androidx.emoji2:emoji2:1.2.0' requires libraries and applications that
depend on it to compile against version 32 or later of the
Android APIs.:app is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 32, for example 33.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).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-31.
Recommended action: Update this project to use a newer compileSdk
of at least 33, for example 33.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).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-31.
Recommended action: Update this project to use a newer compileSdk
of at least 33, for example 33.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).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-31.
Recommended action: Update this project to use a newer compileSdk
of at least 33, for example 33.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).
我尝试将android-31更换成android-34,可以编译通过,但我的项目是android-31的,我需要在android-31去编译,我是否能通过将androidx.appcompat:appcompat-resources:1.6.1的版本降低到能够兼容android-31的版本,要怎么做,或者有更合适的方法推荐嘛
当我将保持 minSdkVersion 和 targetSdkVersion 为31,将 compileSdkVersion 更新为 33 或更高。可以编译通过并在我的平台安装,但是我尝试将jni的so放入我的工程,发现出现了这个异常
Cause: out extracted from path E: lib**_jni.so is not an ABI
我的so的信息为
file /system/lib64/lib**_jni.so
/system/lib64/lib**_jni.so: ELF shared object, 64-bit LSB arm64, for Android 31, BuildID=74ea3efed6754c43fce9f6b07e937eea, stripped
这要怎么做合适呢