Skip to content

Commit b6e0e92

Browse files
committed
Fix testdpc target25 build flavor can't be installed in pre-O devices
I can reprdouce issue #31, that is even target25 buid flavor can't be installed in pre-O device. And for some reason, updating gradle plugin to 3.0.0-alpha1 fixed the issue. And this also required using default toolchain rather jack. This closes #31.
1 parent a47cdfb commit b6e0e92

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

app/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ android {
2020
targetSdkVersion 26
2121
versionCode versionMajor * 1000 + versionMinor * 100 + versionBuild
2222
versionName "${versionMajor}.${versionMinor}.${versionBuild}"
23-
jackOptions {
24-
enabled true
25-
}
2623
}
2724

2825
buildTypes {
@@ -32,6 +29,7 @@ android {
3229
}
3330
}
3431

32+
flavorDimensions "api"
3533
productFlavors {
3634
target25 {
3735
targetSdkVersion 25
@@ -59,6 +57,9 @@ android {
5957
flatDir {
6058
dirs 'libs'
6159
}
60+
maven {
61+
url 'https://maven.google.com'
62+
}
6263
}
6364
}
6465

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.2.0'
8+
classpath 'com.android.tools.build:gradle:3.0.0-alpha1'
99

1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#Sat May 20 08:51:38 BST 2017
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
34
zipStoreBase=GRADLE_USER_HOME
45
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-milestone-1-all.zip

0 commit comments

Comments
 (0)