Can't Repro
Status Update
Comments
uc...@google.com <uc...@google.com> #2
I notice the same issue and LogCat shows the following message:
Google Play services out of date. Requires 3159100 but found 3136130
Google Play services out of date. Requires 3159100 but found 3136130
re...@gmail.com <re...@gmail.com> #3
Same here.
"Google Play services out of date. Requires 3159100 but found 3136130"
"Google Play services out of date. Requires 3159100 but found 3136130"
es...@google.com <es...@google.com>
ar...@google.com <ar...@google.com> #4
me as well....
Google Play services out of date. Requires 3159100 but found 3136130
Google Play services out of date. Requires 3159100 but found 3136130
an...@google.com <an...@google.com> #5
I was hopeful that the release of API 18 (4.3) would have created a solution to this, unfortunately it includes version 3158130
Description
Android Studio 2.2.3
Gradle plugin 2.2.3 (com.android.tools.build:gradle:2.2.3)
Android SDK Tools 25.2.4
Android SDK Platform-Tools 25.0.2
Android SDK Build-tools 25.0.2
Compile SDK version 25
I've switched to cmake build system from the old deprecated ndk-build. But can't get ABI split function to work.
The result of the build is only one file - foo.bar-armeabi-v7a-release-1.6.3.apk.
If I'm building an app for x86 emulator, the result is - foo.bar-x86-release-1.6.3.apk
Here is my app build.gradle file
buildscript {
repositories {
maven { url '
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
jcenter()
maven { url '
}
android {
compileOptions.encoding = 'ISO-8859-1'
compileSdkVersion CompiledSdkVersion
buildToolsVersion BuildToolsVersion
defaultConfig {
applicationId "foo.bar"
minSdkVersion MinSdkVersion
targetSdkVersion TargetSdkVersion
versionCode VersionCode
versionName VersionName
vectorDrawables.useSupportLibrary = true
externalNativeBuild {
cmake {
cppFlags "-fexceptions", "-std=c++11"
}
}
ndk {
abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
}
}
signingConfigs {
release {
storeFile file("..\\release.keystore")
}
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
}
splits {
abi {
enable true
reset()
include "armeabi", "armeabi-v7a", "arm64-v8a", "mips", "mips64", "x86", "x86_64"
universalApk true
}
}
project.ext.versionCodes = ['armeabi': 1, 'armeabi-v7a': 2, 'arm64-v8a': 3, 'mips': 5, 'mips64': 6, 'x86': 8, 'x86_64': 9]
android.applicationVariants.all { variant ->
variant.outputs.each { output ->
output.versionCodeOverride = project.ext.versionCodes.get(output.getFilter(com.android.build.OutputFile.FilterType.ABI), 0) * 1000000 + android.defaultConfig.versionCode
output.outputFile = new File(output.outputFile.parent, output.outputFile.name.replace(".apk", "-${variant.versionName}.apk"))
}
}
externalNativeBuild {
cmake {
path 'src/main/jni/CMakeLists.txt'
}
}
}
crashlytics {
enableNdk false // too many reports for third-party modules
androidNdkOut '.externalNativeBuild/cmake/release'
androidNdkLibsOut 'src/main/libs'
}
dependencies {
compile project(':common-sources')
compile project(':chess-board-library')
compile project(':number-picker')
compile files('libs/kxml2-2.3.0.jar')
compile files('libs/StartADLib-1.0.1.jar')
compile Dependencies.appCompat
compile Dependencies.cardView
compile Dependencies.firebaseAds
compile Dependencies.googleAnalytics
compile Dependencies.googlePlus
compile Dependencies.googleGames
compile(Dependencies.crashlytics) {
transitive = true
}
compile(Dependencies.crashlyticsNdk) {
transitive = true
}
}
apply plugin: 'com.google.gms.google-services'
I've asked the question at StackOverflow -