hello-libs: Add abiFilters to gen-libs module

After updating Android Studio to v3.0.1 (and Gradle plugin to v3.0.1),
I noticed that libhello-libs.so is being built for more architectures
than libgperf.so. Also I noticed that app/build.gradle has abiFilters,
but gen-lib/build.gradle doesn't. This leads to linking errors. That
issue is reported as #450. See [1] for details.

Adding the same abiFilters line to gen-lib/build.gradle fixes the issue.

While at it, remove armeabi architecture from app/build.gradle
abiFilters, as it's deprecated now. See [2] for details.

[1] https://github.com/googlesamples/android-ndk/issues/450
[2] https://developer.android.com/ndk/guides/abis.html

Signed-off-by: Sam Protsenko <joe.skb7@gmail.com>
This commit is contained in:
Sam Protsenko
2017-11-23 00:05:41 +02:00
parent 0730b1481d
commit 12b56395dc
2 changed files with 4 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ android {
versionCode = 1
versionName = '1.0'
ndk {
abiFilters 'x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'arm64-v8a'
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
}
externalNativeBuild {
cmake {

View File

@@ -10,6 +10,9 @@ android {
versionCode 1
versionName "1.0"
ndk {
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
}
externalNativeBuild {
cmake {
arguments '-DANDROID_PLATFORM=android-14',