提问人:Hector 提问时间:7/5/2023 最后编辑:Hector 更新时间:7/10/2023 访问量:108
如何停止这些 android 构建消息 [CXX5200] ABI [arm64-v8a,armeabi-v7a,armeabi]
How to stop these android build messages [CXX5200] ABIs [arm64-v8a,armeabi-v7a,armeabi]
问:
我正在构建我的 Android 34 应用,并在我的应用中收到以下 c++ 模块警告消息。我意识到它们只是警告,我可以安全地忽略它们,但是我想知道如何阻止它们出现。
AGPBI: {"kind":"warning","text":"[CXX5200] ABIs [arm64-v8a,armeabi-v7a,armeabi] set by 'android.injected.build.abi' gradle flag contained 'armeabi' which is invalid.","sources":[{}]}
[CXX5200] ABIs [arm64-v8a,armeabi-v7a,armeabi] set by 'android.injected.build.abi' gradle flag contained 'armeabi' which is invalid.
我正在我的 c++ 模块中使用并尝试过这个agp = "8.2.0-alpha10"
defaultConfig {
minSdk = 26
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
ndk {
abiFilters += listOf("arm64-v8a", "x86", "x86_64")
}
externalNativeBuild {
cmake {
cppFlags += ""
}
}
}
这对这些消息没有影响 有什么方法可以用来阻止这些消息吗?
这是我使用的Android Studio版本
Android Studio Hedgehog | 2023.1.1 Canary 10
Build #AI-231.9011.34.2311.10366083, built on June 22, 2023
Runtime version: 17.0.7+0-17.0.7b829.16-10353782 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.6.1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 12
Metal Rendering is ON
Registry:
external.system.auto.import.disabled=true
debugger.new.tool.window.layout=true
ide.text.editor.with.preview.show.floating.toolbar=false
ide.experimental.ui=true
ide.images.show.chessboard=true
Non-Bundled Plugins:
com.github.rmehri01.onenord (0.0.6)
com.arcticicestudio.nord.jetbrains (0.13.0)
答: 暂无答案
评论
+=
abiFilters