Closed
Description
Summary:
When running gradlew assembleRelease
, I'm seeing the following:
C:\android-projects\gpstest>gradlew assembleRelease
Observed package id 'add-ons;addon-google_apis-google-24' in inconsistent location 'C:\Users\sjbar\AppData\Local\Android\Sdk\add-ons\addon-google_apis-google-24-1' (Expected 'C:\Users\sjbar\AppData\Local\Android\Sdk\add-ons\addon-google_apis-google-24')
Already observed package id 'add-ons;addon-google_apis-google-24' in 'C:\Users\sjbar\AppData\Local\Android\Sdk\add-ons\addon-google_apis-google-24'. Skipping duplicate at 'C:\Users\sjbar\AppData\Local\Android\Sdk\add-ons\addon-google_apis-google-24-1'
Observed package id 'add-ons;addon-google_apis-google-24' in inconsistent location 'C:\Users\sjbar\AppData\Local\Android\Sdk\add-ons\addon-google_apis-google-24-1' (Expected 'C:\Users\sjbar\AppData\Local\Android\Sdk\add-ons\addon-google_apis-google-24')
Already observed package id 'add-ons;addon-google_apis-google-24' in 'C:\Users\sjbar\AppData\Local\Android\Sdk\add-ons\addon-google_apis-google-24'. Skipping duplicate at 'C:\Users\sjbar\AppData\Local\Android\Sdk\add-ons\addon-google_apis-google-24-1'
Incremental java compilation is an incubating feature.
:GPSTest:preBuild UP-TO-DATE
:GPSTest:extractProguardFiles
:GPSTest:preReleaseBuild
:GPSTest:checkReleaseManifest
:GPSTest:preDebugBuild UP-TO-DATE
:GPSTest:prepareComAndroidSupportAnimatedVectorDrawable2421Library UP-TO-DATE
:GPSTest:prepareComAndroidSupportAppcompatV72421Library UP-TO-DATE
:GPSTest:prepareComAndroidSupportSupportCompat2421Library UP-TO-DATE
:GPSTest:prepareComAndroidSupportSupportCoreUi2421Library UP-TO-DATE
:GPSTest:prepareComAndroidSupportSupportCoreUtils2421Library UP-TO-DATE
:GPSTest:prepareComAndroidSupportSupportFragment2421Library UP-TO-DATE
:GPSTest:prepareComAndroidSupportSupportMediaCompat2421Library UP-TO-DATE
:GPSTest:prepareComAndroidSupportSupportV42421Library UP-TO-DATE
:GPSTest:prepareComAndroidSupportSupportVectorDrawable2421Library UP-TO-DATE
:GPSTest:prepareComGoogleAndroidGmsPlayServicesBase961Library UP-TO-DATE
:GPSTest:prepareComGoogleAndroidGmsPlayServicesBasement961Library UP-TO-DATE
:GPSTest:prepareComGoogleAndroidGmsPlayServicesMaps961Library UP-TO-DATE
:GPSTest:prepareComGoogleAndroidGmsPlayServicesTasks961Library UP-TO-DATE
:GPSTest:prepareComGoogleMapsAndroidAndroidMapsUtils044Library UP-TO-DATE
:GPSTest:prepareOrgJrafAndroidSwitchBackport140Library UP-TO-DATE
:GPSTest:prepareReleaseDependencies
:GPSTest:compileReleaseAidl
:GPSTest:compileReleaseRenderscript
:GPSTest:generateReleaseBuildConfig
:GPSTest:generateReleaseResValues
:GPSTest:generateReleaseResources
:GPSTest:mergeReleaseResources
:GPSTest:processReleaseManifest
:GPSTest:processReleaseResources
:GPSTest:generateReleaseSources
:GPSTest:incrementalReleaseJavaCompilationSafeguard
:GPSTest:compileReleaseJavaWithJavac
:GPSTest:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:GPSTest:compileReleaseNdk UP-TO-DATE
:GPSTest:compileReleaseSources
:GPSTest:lintVitalRelease
> Building 68%
Keyst> Building 70% > :GPSTest:askForPasswords
Key password:
:GPSTest:askForPasswords
:GPSTest:mergeReleaseShaders
:GPSTest:compileReleaseShaders
:GPSTest:generateReleaseAssets
:GPSTest:mergeReleaseAssets
:GPSTest:processReleaseJavaRes UP-TO-DATE
:GPSTest:transformResourcesWithMergeJavaResForRelease
:GPSTest:transformClassesAndResourcesWithProguardForRelease
ProGuard, version 5.2.1
Reading input...
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-core-ui\24.2.1\jars\classes.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-core-ui\24.2.1\jars\libs\internal_impl-24.2.1.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-compat\24.2.1\jars\classes.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-core-utils\24.2.1\jars\libs\internal_impl-24.2.1.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-media-compat\24.2.1\jars\libs\internal_impl-24.2.1.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.google.android.gms\play-services-tasks\9.6.1\jars\classes.jar] (filtered)
Reading program jar [C:\Users\sjbar\AppData\Local\Android\sdk\extras\android\m2repository\com\android\support\support-annotations\24.2.1\support-annotations-24.2.1.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-v4\24.2.1\jars\classes.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.google.maps.android\android-maps-utils\0.4.4\jars\classes.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\animated-vector-drawable\24.2.1\jars\classes.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-core-utils\24.2.1\jars\classes.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-media-compat\24.2.1\jars\classes.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\9.6.1\jars\classes.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-fragment\24.2.1\jars\libs\internal_impl-24.2.1.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-compat\24.2.1\jars\libs\internal_impl-24.2.1.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\org.jraf\android-switch-backport\1.4.0\jars\classes.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-vector-drawable\24.2.1\jars\classes.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\appcompat-v7\24.2.1\jars\classes.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.google.android.gms\play-services-maps\9.6.1\jars\classes.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.google.android.gms\play-services-basement\9.6.1\jars\classes.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-fragment\24.2.1\jars\classes.jar] (filtered)
Reading program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\transforms\mergeJavaRes\release\jars\2\1f\main.jar] (filtered)
Reading program directory [C:\android-projects\gpstest\GPSTest\build\intermediates\classes\release] (filtered)
Reading library jar [C:\Users\sjbar\AppData\Local\Android\sdk\platforms\android-24\android.jar]
Reading library jar [C:\Users\sjbar\AppData\Local\Android\sdk\platforms\android-24\optional\org.apache.http.legacy.jar]
Note: duplicate definition of library class [org.apache.http.conn.scheme.HostNameResolver]
Note: duplicate definition of library class [org.apache.http.conn.scheme.LayeredSocketFactory]
Note: duplicate definition of library class [org.apache.http.conn.scheme.SocketFactory]
Note: duplicate definition of library class [org.apache.http.conn.ConnectTimeoutException]
Note: duplicate definition of library class [org.apache.http.params.HttpConnectionParams]
Note: duplicate definition of library class [org.apache.http.params.CoreConnectionPNames]
Note: duplicate definition of library class [org.apache.http.params.HttpParams]
Note: duplicate definition of library class [android.net.http.HttpResponseCache]
Note: duplicate definition of library class [android.net.http.SslError]
Note: duplicate definition of library class [android.net.http.SslCertificate]
Note: duplicate definition of library class [android.net.http.SslCertificate$DName]
Note: there were 11 duplicate class definitions.
(http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass)
Initializing...
Note: the configuration refers to the unknown class '.GpsMapFragment'
Maybe you meant the fully qualified name 'com.android.gpstest.GpsMapFragment'?
Note: the configuration refers to the unknown class 'com.github.espiandev.showcaseview.ShowcaseView'
Note: com.google.android.gms.internal.zzapj: can't find dynamically referenced class sun.misc.Unsafe
Note: com.google.android.gms.maps.internal.zzai: can't find dynamically referenced class com.google.android.gms.maps.internal.CreatorImpl
Note: com.google.android.gms.internal.zzapj accesses a declared field 'theUnsafe' dynamically
Note: com.google.android.gms.internal.zzsu accesses a declared field 'MODULE_ID' dynamically
Maybe this is program field 'com.google.android.gms.dynamite.descriptors.com.google.android.gms.flags.ModuleDescriptor { java.lang.String MODULE_ID; }'
Note: com.google.android.gms.internal.zzsu accesses a declared field 'MODULE_VERSION' dynamically
Maybe this is program field 'com.google.android.gms.dynamite.descriptors.com.google.android.gms.flags.ModuleDescriptor { int MODULE_VERSION; }'
Note: the configuration keeps the entry point 'com.android.gpstest.GpsMapFragment { void activate(com.google.android.gms.maps.LocationSource$OnLocationChangedListener); }', but not the descriptor class 'com.google.android.gms.maps.LocationSource$OnLocationChangedListener'
Note: the configuration keeps the entry point 'com.android.gpstest.GpsMapFragment { void onMapReady(com.google.android.gms.maps.GoogleMap); }', but not the descriptor class 'com.google.android.gms.maps.GoogleMap'
Note: the configuration keeps the entry point 'com.google.android.gms.flags.impl.FlagProviderImpl { void init(com.google.android.gms.dynamic.zzd); }', but not the descriptor class 'com.google.android.gms.dynamic.zzd'
Note: the configuration keeps the entry point 'com.google.android.gms.maps.SupportMapFragment { void getMapAsync(com.google.android.gms.maps.OnMapReadyCallback); }', but not the descriptor class 'com.google.android.gms.maps.OnMapReadyCallback'
Note: there were 2 references to unknown classes.
You should check your configuration for typos.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
Note: there were 4 unkept descriptor classes in kept class members.
You should consider explicitly keeping the mentioned classes
(using '-keep').
(http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)
Note: there were 2 unresolved dynamic references to classes or interfaces.
You should check if you need to specify additional program jars.
(http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)
Note: there were 3 accesses to class members by means of introspection.
You should consider explicitly keeping the mentioned class members
(using '-keep' or '-keepclassmembers').
(http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclassmember)
Ignoring unused library classes...
Original number of library classes: 4232
Final number of library classes: 1177
Printing kept classes, fields, and methods...
Shrinking...
Printing usage to [C:\android-projects\gpstest\GPSTest\build\outputs\mapping\release\usage.txt]...
Removing unused program classes and class elements...
Original number of program classes: 2908
Final number of program classes: 1311
Writing output...
Preparing output jar [C:\android-projects\gpstest\GPSTest\build\intermediates\transforms\proguard\release\jars\3\1f\main.jar]
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-core-ui\24.2.1\jars\classes.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-core-ui\24.2.1\jars\libs\internal_impl-24.2.1.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-compat\24.2.1\jars\classes.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-core-utils\24.2.1\jars\libs\internal_impl-24.2.1.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-media-compat\24.2.1\jars\libs\internal_impl-24.2.1.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.google.android.gms\play-services-tasks\9.6.1\jars\classes.jar] (filtered)
Copying resources from program jar [C:\Users\sjbar\AppData\Local\Android\sdk\extras\android\m2repository\com\android\support\support-annotations\24.2.1\support-annotations-24.2.1.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-v4\24.2.1\jars\classes.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.google.maps.android\android-maps-utils\0.4.4\jars\classes.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\animated-vector-drawable\24.2.1\jars\classes.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-core-utils\24.2.1\jars\classes.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-media-compat\24.2.1\jars\classes.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\9.6.1\jars\classes.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-fragment\24.2.1\jars\libs\internal_impl-24.2.1.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-compat\24.2.1\jars\libs\internal_impl-24.2.1.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\org.jraf\android-switch-backport\1.4.0\jars\classes.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-vector-drawable\24.2.1\jars\classes.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\appcompat-v7\24.2.1\jars\classes.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.google.android.gms\play-services-maps\9.6.1\jars\classes.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.google.android.gms\play-services-basement\9.6.1\jars\classes.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\exploded-aar\com.android.support\support-fragment\24.2.1\jars\classes.jar] (filtered)
Copying resources from program jar [C:\android-projects\gpstest\GPSTest\build\intermediates\transforms\mergeJavaRes\release\jars\2\1f\main.jar] (filtered)
Copying resources from program directory [C:\android-projects\gpstest\GPSTest\build\intermediates\classes\release] (filtered)
Printing classes to [C:\android-projects\gpstest\GPSTest\build\outputs\mapping\release\dump.txt]...
:GPSTest:transformClassesWithDexForRelease
:GPSTest:transformClassesWithShrinkResForRelease
Removed unused resources: Binary resource data reduced from 1012KB to 841KB: Removed 16%
:GPSTest:mergeReleaseJniLibFolders
:GPSTest:transformNative_libsWithMergeJniLibsForRelease
:GPSTest:validateSigningRelease FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':GPSTest:validateSigningRelease'.
> Keystore file not set for signing config release
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 48.29 secs
C:\android-projects\gpstest>
Possibly related to OneBusAway/onebusaway-android#770?
Steps to reproduce:
Run gradlew assembleRelease
Expected behavior:
Create release build
Observed behavior:
Fails with "Keystore file not set for signing config release"
Device and Android version:
N/A
Activity