-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android环境下gradle依赖mirai报错 #2402
Comments
请检查 NDK 版本 |
问题是,我没配置过NDK |
试试只添加依赖: implementation("net.mamoe:mirai-core:2.13.2") 这个我测试过在我机器上是可以用 |
恐怕是仓库信息没配好哦 |
给你个参考 runtimeOnly("net.mamoe:mirai-core-android:$mirai_version") {
exclude module: 'atomicfu', group: 'org.jetbrains.kotlinx'
}
api("net.mamoe:mirai-core-api-android:$mirai_version")
implementation("net.mamoe:mirai-core-utils-android:$mirai_version") |
添加 configurations.all {
attributes {
attribute(Attribute.of("org.jetbrains.kotlin.platform.type", String.class), "androidJvm")
}
}
|
正解,解决了,谢谢qaq |
@ObcbO 试试 预览版本号: 2.15.0-dev-85 在 https://github.com/mamoe/mirai/blob/dev/docs/UsingSnapshots.md 查看如何使用预览版本 |
最新版2.15.0-M1还是出现此错误 |
问题描述
引入并重新刷新项目并未被打断,只是报了一个黄


但重新构建时报红
复现
mirai-core 版本
2.13.2
bot-protocol
ANDROID_PHONE
其他组件版本
No response
系统日志
网络日志
No response
补充信息
log.txt
The text was updated successfully, but these errors were encountered: