简体   繁体   English

建议使用哪种Android Studio 3.3 Build版本?

[英]Which Android studio 3.3 Build variant is recommended?

Android studio 3.3 just released yesterday has new items in the Build Variants tab and I cannot figure out which one is recommended for release. 昨天刚发布的Android Studio 3.3在Build Variants选项卡中有新项目,我无法确定建议发布哪一个。 I need this info to be able to create SHA1 with the right variant for auth library yet I cannot find it anywhere in the docs yet. 我需要此信息以能够为auth库创建具有正确变体的SHA1,但我仍无法在文档中的任何位置找到它。

Extra info: I have D8 and R8 enabled so is it also still necessary to include minifyEnabled or proguard location in those build variants 额外信息:我已经启用了D8R8所以在这些构建变体中是否还需要包括minifyEnabled或proguard位置

在此处输入图片说明

That arm64-v8a is type of cpu architecture for which you compile your native code, so it depends on what device or emulator you will run your application. arm64-v8a是您为其编译本机代码的cpu体系结构的类型,因此它取决于您将运行应用程序的设备或仿真器。 Different devices has different CPU architectures. 不同的设备具有不同的CPU体系结构。

For more info about them see: https://developer.android.com/ndk/guides/abis 有关它们的更多信息,请参见: https : //developer.android.com/ndk/guides/abis

When you build your resulting APK for distribution (so you don't use "Run" command to run directly on your device), it should contain all ABI variants in the resulting APK, unless you specify in gradle or in ndkBuild/CMake config that you want to build only some of them. 生成要分发的APK时(因此,请勿使用“运行”命令直接在设备上运行),除非您在gradle或ndkBuild / CMake配置中指定,否则它应包含结果APK中的所有ABI变体。您只想构建其中一些。

EDIT: Just to summarize from comments, so author can accept this answer: 编辑:只是总结评论,所以作者可以接受此答案:

My point is that you don't need to do anything special related to new Android Studio. 我的观点是,您不需要执行与新的Android Studio相关的任何特殊操作。 It should work the same. 它应该工作相同。 To verify, open your production APK (Build / Analyse APK...) and see if somewhere inside (probably in root folder /libs/* ) are subfolders armeabi-v7a, arm64-v8a, x86, etc. with native binaries (*.so files). 要进行验证,请打开您的生产APK(构建/分析APK ...),然后查看其中的某处(可能在根文件夹/ libs / *中)是否是带有本机二进制文件(*)的子文件夹armeabi-v7a,arm64-v8a,x86等。 .so文件)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM