What is armeabi and why they use it?

前端 未结 3 891
自闭症患者
自闭症患者 2021-01-31 07:30

I see this library (armeabi) many times when I explore open sources.

I net searched for an explanation of it, but all the results I found are talking ABOUT it and not de

3条回答
  •  花落未央
    2021-01-31 07:39

    ABI - Application Binary Interface

    EABI - Embedded Application Binary Interface

    So ARMEABI are compiled binaries matching your android device's CPU architecture.

    e.g.

    arm64-v8a (Nexus 5x) - 64bit - ARM Cortex-A35, ARM Cortex-A53, ARM Cortex-A57, ARM Cortex-A72, ARM Cortex-A73

    armeabi-v7a - 32bit - ARM Cortex-A5, ARM Cortex-A7, ARM Cortex-A8, ARM Cortex-A9, ARM Cortex-A12, ARM Cortex-A15, ARM Cortex-A17

    To include *.so binary jniLibs using Android Studio 2.3 place them in src/main/jniLibs folder and add the following configuration to your *.gradle file:

    android {
        sourceSets {
            main {
                jniLibs.srcDirs = ['src/main/jniLibs']
            }
        }
    }
    
    dependencies {
        compile fileTree(dir: 'jniLibs', include: ['*.so'])
    }
    

提交回复
热议问题