diff options
author | Ang Li <angli@google.com> | 2018-12-10 16:09:57 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-10 16:09:57 -0800 |
commit | 598a2323c22f4c1b2ccb3f93976f0a09466d9671 (patch) | |
tree | 02c5fdd9bab7dcd90c18b6ac55c4122af1e173b1 | |
parent | 937a10759e4cbb586518174a8efa1321019af51f (diff) | |
download | mobly-bundled-snippets-598a2323c22f4c1b2ccb3f93976f0a09466d9671.tar.gz |
Fix errors that prevent the apk from building and running (#101)
* Prevent compile-time crashing when the user is using Java 10
* Fix multidex related run-time crash.
* Fix a typo in `README`
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | build.gradle | 3 | ||||
-rw-r--r-- | gradle.properties | 1 |
3 files changed, 4 insertions, 2 deletions
@@ -13,7 +13,7 @@ Note: this is not an official Google product. 1. Compile and install the bundled snippets ./gradlew assembleDebug - adb install -d -r -g ./build/outputs/apk/mobly-bundled-snippets-debug.apk + adb install -d -r -g ./build/outputs/apk/debug/mobly-bundled-snippets-debug.apk 1. Use the Mobly snippet shell to interact with the bundled snippets diff --git a/build.gradle b/build.gradle index e63fcb7..efbf5e7 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.1.2' + classpath 'com.android.tools.build:gradle:3.1.4' // NOTE: Do not place your application dependencies here. } @@ -42,6 +42,7 @@ android { versionCode 1 versionName "0.0.1" setProperty("archivesBaseName", "mobly-bundled-snippets") + multiDexEnabled true } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 diff --git a/gradle.properties b/gradle.properties index 8bd86f6..320e584 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1,2 @@ org.gradle.jvmargs=-Xmx1536M +android.enableD8.desugaring=true |