-1

i have try to create android apk in 64 bit using below code.

buildTypes {
release {
    ndk {
        abiFilters "arm64-v8a", "armeabi-v7a"
    }
}

but not work for me.

Vicky
  • 19
  • 3
  • @GovindParashar instead of writing comment you can flag question as duplicate – barbsan Jun 04 '19 at 10:19
  • @barbsan but it's duplicate, also answered similar queston [here](https://stackoverflow.com/a/56351289/549372). configuration `ndk` is generally obsolete. – Martin Zeitler Jun 04 '19 at 10:59
  • @MartinZeitler I'm afraid you didn't get my comment... Govind only wrote a comment without flagging question as duplicate – barbsan Jun 04 '19 at 11:04
  • @MartinZeitler one need 15rep to flag, but Govind **didn't flag** the question - your auto-generated comment is different than Govind's comment – barbsan Jun 04 '19 at 11:10
  • @barbsan thought it was a higher limit; however, with these two possible duplicates it should be possible to build for ARM64 ...whether with `nkdbuild` or with `cmake`. – Martin Zeitler Jun 04 '19 at 11:16
  • @MartinZeitler seems that you thought of close-voting privilege which requires 3k rep. Can we stop this offtopic? I just wanted let Govind know that writing comment "Possible duplicate *{some url}*" is not the same as flagging as duplicate – barbsan Jun 04 '19 at 11:24

1 Answers1

1

Please try this following:

buildTypes 
{
    release 
    {

           ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
    }
}

Please follow this link and you will have to put .so files for 32/64 bit architecture: https://developer.android.com/distribute/best-practices/develop/64-bit