无法迁移到Android 13

发布于 2025-02-10 23:00:28 字数 1228 浏览 0 评论 0原文

我正在尝试将我的应用迁移到Android 13,但我无法做到这一点。我在Main Module Gradle Build File中有以下内容:

android {
    // Android Build Settings
    compileSdk 33
    buildToolsVersion "33.0.0"
    ndkVersion "25.0.8528842"

    defaultConfig {
        applicationId "..."
        minSdk 24
        targetSdk 33
        ...
    }

    ...

我正在使用AGP的7.2.1版:

buildscript {
    repositories {
        google()
        mavenCentral()
        ...
    }
    dependencies {
        // Build tools
        classpath 'com.android.tools.build:gradle:7.2.1'
        classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21'

        ...
    }
}

这些是步骤 Google 需要,但是当我同步项目时,某些问题是完全错误的。例如,所有清单条目都标记为未知属性Android:...。我已经尝试使用最新的金丝雀版本“ Android Studio Electry Eel | 2022.1.1 Canary 6”,下载了Android的SDK的最新版本” Android Tiramisuprivacysandbox Preview”(tiramisuprivacysandbox) Tiramisu)“(33)和“ Android Tiramisu Preview”(Tiramisu)。我还检查了我已经下载了“ Android SDK构建工具33”,清洁和重建了该项目,清洁和重新启动了Android Studio。

我在做什么错?提前致谢。

I'm trying to migrate my app to Android 13, but I can't manage to do so. I have the following contents in by main module gradle build file:

android {
    // Android Build Settings
    compileSdk 33
    buildToolsVersion "33.0.0"
    ndkVersion "25.0.8528842"

    defaultConfig {
        applicationId "..."
        minSdk 24
        targetSdk 33
        ...
    }

    ...

And I'm using version 7.2.1 of AGP:

buildscript {
    repositories {
        google()
        mavenCentral()
        ...
    }
    dependencies {
        // Build tools
        classpath 'com.android.tools.build:gradle:7.2.1'
        classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21'

        ...
    }
}

Those are the steps required by Google, but when I sync the project something is completely wrong. For example, all the manifest entries are marked as Unknown attribute android:.... I've tried using the latest canary version "Android Studio Electric Eel | 2022.1.1 Canary 6", downloaded the latest versions of the Android's SDK "Android TiramisuPrivacySandbox Preview" (TiramisuPrivacySandbox), "Android Tiramisu (Tiramisu)" (33) and "Android Tiramisu Preview" (Tiramisu). I've also checked that I have downloaded "Android SDK Build Tools 33", cleaned and rebuilt the project, cleaned and restarted Android Studio.

What am I doing wrong? Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文