android - Android 北极狐的 InvocationTargetException | M1 Apple 硅片上的 2020.3.1 arm64

标签 android arm64 apple-m1 apple-silicon kapt

在我的 M1 Apple Silicon 上使用 kapt 构建我的 Android 项目期间(例如房间)

Android Studio Arctic Fox | 2020.3.1 Beta 1 arm64
..
Android Studio Arctic Fox | 2020.3.1 Beta 5 arm64
Android Studio Bumblebee | 2021.1.1 Canary 2 aarch64
Android Studio Arctic Fox | 2020.3.1 Beta 5
Build #AI-203.7717.56.2031.7360992, built on May 14, 2021
Runtime version: 11.0.10+0-b96-7249189 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 11.4
我遇到
Execution failed for task ':FFTSpectrumLib:kaptDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction
   > java.lang.reflect.InvocationTargetException (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
我不知道如何使它与快速 aarch64 一起工作!
x86 有用
Android Studio Arctic Fox | 2020.3.1 Beta 1 x86

最佳答案

根本原因是房间 2.3.0这个https://github.com/xerial/sqlite-jdbc/issues/450向我指出了解决方案
解决方案 A
添加kapt "org.xerial:sqlite-jdbc:3.34.0"它包括这个https://github.com/xerial/sqlite-jdbc/releases/tag/3.32.3.3
解决方案 B
只需使用房间 2.4.0-alpha03

关于android - Android 北极狐的 InvocationTargetException | M1 Apple 硅片上的 2020.3.1 arm64,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68283419/

相关文章:

macos - 错误: Cannot install on Intel processor in ARM default prefix (/opt/homebrew)

node.js - Node 版本管理器在 M1 Macbook Air 上运行非常慢

ruby-on-rails - 如何修复 rails 中的 "Function not implemented - Failed to initialize inotify (Errno::ENOSYS)"

android - Realm 实例和多线程

android - SugarORM - 'listall' 返回空列表

android - 哪些android设备/解码器支持自适应视频播放

c - 使用 O2 在 AArch64 上保留位精确浮点计算

Android 布局 - 屏幕不会向上移动以允许在底部的 EditText 中输入

ios - method_getImplementation 在 64 位 iphone 5s 上崩溃

java - 使用 ARM64 musl-libs 编译 OpenJDK 9 及更高版本