我收到此构建错误,已将我的本机 android 项目更新为 Android S(android 12 的预发行版)。
谷歌搜索错误没有发现有价值的命中。几年前来自 Netbeans 的一击和一些 Xamarin 问题。
堆栈跟踪如下:
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':dependencies:android:kaptDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction
> java.lang.reflect.InvocationTargetException (no error message)
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':dependencies:android:kaptDebugKotlin'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:200)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263) …Run Code Online (Sandbox Code Playgroud) 我想通过 Google Play 商店将我的应用程序分发给尽可能多的用户,但我在更新的应用程序的兼容设备上遇到了奇怪的行为(我正在更新应用程序,保持相同的应用程序 ID;旧版本 -当前的在线生产版本 - 最后更新于 2021 年)。
我已经阅读了 Stack Overflow 上的所有相关问题以及官方 Android 文档。我正在使用最新版本的 Android Studio,构建 App Bundle 格式。
Play 控制台声明两个版本的兼容设备数量相同(大约 19k+)。
在某些设备上,新设备不兼容,但旧设备兼容并且可以安装。
以下是一些被 Play 商店检测为不兼容的设备(均未 root):
我已经尝试过这些,但没有成功: