简体   繁体   中英

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. 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.

Extra info: I have D8 and R8 enabled so is it also still necessary to include minifyEnabled or proguard location in those build variants

在此处输入图片说明

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. Different devices has different CPU architectures.

For more info about them see: 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.

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. 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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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