Android Studio Error "Androidx.core.core: Core-KTX: 1.15.0" требует библиотек и приложений, которые зависят от ... "Android

Форум для тех, кто программирует под Android
Ответить Пред. темаСлед. тема
Anonymous
 Android Studio Error "Androidx.core.core: Core-KTX: 1.15.0" требует библиотек и приложений, которые зависят от ... "

Сообщение Anonymous »

Я пытаюсь добавить file_picker в свой проект, и когда я строю, он показывает мне эту ошибку < /p>

Код: Выделить всё

> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> 2 issues were found when checking AAR metadata:

1.  Dependency 'androidx.core:core-ktx:1.15.0' requires libraries and applications that
depend on it to compile against version 35 or later of the
Android APIs.

:app is currently compiled against android-34.

Also, the maximum recommended compile SDK version for Android Gradle
plugin 7.3.0 is 33.

Recommended action: Update this project's version of the Android Gradle
plugin to one that supports 35, then update this project to use
compileSdkVerion of at least 35.

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.core:core:1.15.0' requires libraries and applications that
depend on it to compile against version 35 or later of the
Android APIs.

:app is currently compiled against android-34.

Also, the maximum recommended compile SDK version for Android Gradle
plugin 7.3.0 is 33.

Recommended action: Update this project's version of the Android Gradle
plugin to one that supports 35, then update this project to use
compileSdkVerion of at least 35.

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).
< /code>
Затем я попытался изменить компиляцию SDK и Traget SDK с: < /p>
compileSdk = flutter.compileSdkVersion
targetSdk = flutter.targetSdkVersion
< /code>
to < /p>
compileSdk = 35
targetSdk = 35
< /code>
Но ошибка изменяется как < /p>
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
> Android resource linking failed
aapt2.exe E 06-30 13:39:18  8248  3960 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.
aapt2.exe E 06-30 13:39:18  8248  3960 ApkAssets.cpp:149] Failed to load resources table in APK 'C:\Users\ahmad\AppData\Local\Android\sdk\platforms\android-35\android.jar'.
error: failed to load include path C:\Users\ahmad\AppData\Local\Android\sdk\platforms\android-35\android.jar.
Я уже установил SDK 35

в дополнение к инструментам SDK

Подробнее здесь: https://stackoverflow.com/questions/796 ... res-librar
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Android»