无法迁移到Android 13
我正在尝试将我的应用迁移到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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论