Build fails after upgrading to 2.14.1

Have trouble with build Android application after switch to 2.14.1 version.
With Old 2.3 version it is building OK.

Any suggestions?

  • Android Plugin for Gradle 1.1.2

  • gradle distributionUrl=https://services.gradle.org/distributions/gradle-2.3-all.zip

With this config all is OK:

[details=Executing external task ‘build’ output]18:06:24: Executing external task ‘build’…
Configuration on demand is an incubating feature.
Crashlytics was applied to an android-library project.
Android-library support is currently an incubating feature.
Contact support@fabric.io with any issues.
:android:compileLint
:android:copyDebugLint UP-TO-DATE
:android:preBuild UP-TO-DATE
:android:preDebugBuild UP-TO-DATE
:android:checkDebugManifest
:android:preDebugAndroidTestBuild UP-TO-DATE
:android:preDebugUnitTestBuild UP-TO-DATE
:android:preReleaseBuild UP-TO-DATE
:android:preReleaseUnitTestBuild UP-TO-DATE
:android:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
:android:prepareComAppsflyerAfAndroidSdk460Library UP-TO-DATE
:android:prepareComGoogleAndroidGmsPlayServicesAnalytics940Library UP-TO-DATE
:android:prepareComGoogleAndroidGmsPlayServicesAnalyticsImpl940Library UP-TO-DATE
:android:prepareComGoogleAndroidGmsPlayServicesBase940Library UP-TO-DATE
:android:prepareComGoogleAndroidGmsPlayServicesBasement940Library UP-TO-DATE
:android:prepareComGoogleAndroidGmsPlayServicesGcm940Library UP-TO-DATE
:android:prepareComGoogleAndroidGmsPlayServicesIid940Library UP-TO-DATE
:android:prepareComGoogleAndroidGmsPlayServicesTasks940Library UP-TO-DATE
:android:prepareDebugDependencies
:android:compileDebugAidl UP-TO-DATE
:android:compileDebugRenderscript UP-TO-DATE
:android:generateDebugBuildConfig UP-TO-DATE
:android:generateDebugAssets UP-TO-DATE
:android:mergeDebugAssets UP-TO-DATE
:android:generateDebugResValues UP-TO-DATE
:android:generateDebugResources UP-TO-DATE
:android:mergeDebugResources UP-TO-DATE
:android:processDebugManifest UP-TO-DATE
:android:processDebugResources UP-TO-DATE
:android:generateDebugSources UP-TO-DATE
:android:processDebugJavaRes UP-TO-DATE
:android:compileDebugJava UP-TO-DATE
:android:extractDebugAnnotations UP-TO-DATE
:android:mergeDebugProguardFiles UP-TO-DATE
:android:packageDebugJar UP-TO-DATE
:android:compileDebugNdk UP-TO-DATE
:android:packageDebugJniLibs UP-TO-DATE
:android:packageDebugLocalJar UP-TO-DATE
:android:packageDebugRenderscript UP-TO-DATE
:android:packageDebugResources UP-TO-DATE
:android:bundleDebug UP-TO-DATE
:android:compileDebugSources UP-TO-DATE
:android:assembleDebug UP-TO-DATE
:android:copyReleaseLint UP-TO-DATE
:android:checkReleaseManifest
:android:prepareReleaseDependencies
:android:compileReleaseAidl UP-TO-DATE
:android:compileReleaseRenderscript UP-TO-DATE
:android:generateReleaseBuildConfig UP-TO-DATE
:android:generateReleaseAssets UP-TO-DATE
:android:mergeReleaseAssets UP-TO-DATE
:android:generateReleaseResValues UP-TO-DATE
:android:generateReleaseResources UP-TO-DATE
:android:mergeReleaseResources UP-TO-DATE
:android:processReleaseManifest UP-TO-DATE
:android:processReleaseResources UP-TO-DATE
:android:generateReleaseSources UP-TO-DATE
:android:processReleaseJavaRes UP-TO-DATE
:android:compileReleaseJava UP-TO-DATE
:android:extractReleaseAnnotations UP-TO-DATE
:android:mergeReleaseProguardFiles UP-TO-DATE
:android:packageReleaseJar UP-TO-DATE
:android:compileReleaseNdk UP-TO-DATE
:android:packageReleaseJniLibs UP-TO-DATE
:android:packageReleaseLocalJar UP-TO-DATE
:android:packageReleaseRenderscript UP-TO-DATE
:android:packageReleaseResources UP-TO-DATE
:android:bundleRelease UP-TO-DATE
:android:compileReleaseSources UP-TO-DATE
:android:assembleRelease UP-TO-DATE
:android:assemble UP-TO-DATE
:android:lint
Ran lint on variant release: 1552 issues found
Ran lint on variant debug: 1552 issues found
Wrote HTML report to file:/home/,/android/build/outputs/lint-results.html
Wrote XML report to /home/,/android/build/outputs/lint-results.xml
:android:preCompileDebugUnitTestJava
:android:prepareDebugUnitTestDependencies
:android:processDebugUnitTestJavaRes UP-TO-DATE
:android:compileDebugUnitTestJava UP-TO-DATE
:android:compileDebugUnitTestSources UP-TO-DATE
:android:mockableAndroidJar UP-TO-DATE
:android:assembleDebugUnitTest UP-TO-DATE
:android:testDebug
:android:preCompileReleaseUnitTestJava
:android:prepareReleaseUnitTestDependencies
:android:processReleaseUnitTestJavaRes UP-TO-DATE
:android:compileReleaseUnitTestJava UP-TO-DATE
:android:compileReleaseUnitTestSources UP-TO-DATE
:android:assembleReleaseUnitTest UP-TO-DATE
:android:testRelease
:android:test
:android:check
:android:build

BUILD SUCCESSFUL

Total time: 1 mins 51.973 secs
18:08:17: External task execution finished ‘build’.[/details]

  • Android Plugin for Gradle 2.1.3
  • gradle distributionUrl=https://services.gradle.org/distributions/gradle-2.14.1-all.zip

Failed

[details=Executing external task ‘build’ output]18:18:43: Executing external task ‘build’…
Configuration on demand is an incubating feature.
Incremental java compilation is an incubating feature.
Crashlytics was applied to an android-library project.
Android-library support is currently an incubating feature.
Contact support@fabric.io with any issues.
:android:preBuild UP-TO-DATE
:android:preDebugBuild UP-TO-DATE
:android:compileDebugNdk UP-TO-DATE
:android:compileLint
:android:copyDebugLint UP-TO-DATE
:android:checkDebugManifest
:android:preDebugAndroidTestBuild UP-TO-DATE
:android:preDebugUnitTestBuild UP-TO-DATE
:android:preReleaseBuild UP-TO-DATE
:android:preReleaseUnitTestBuild UP-TO-DATE
:android:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
:android:prepareComAppsflyerAfAndroidSdk460Library UP-TO-DATE
:android:prepareComGoogleAndroidGmsPlayServicesAnalytics940Library UP-TO-DATE
:android:prepareComGoogleAndroidGmsPlayServicesAnalyticsImpl940Library UP-TO-DATE
:android:prepareComGoogleAndroidGmsPlayServicesBase940Library UP-TO-DATE
:android:prepareComGoogleAndroidGmsPlayServicesBasement940Library UP-TO-DATE
:android:prepareComGoogleAndroidGmsPlayServicesGcm940Library UP-TO-DATE
:android:prepareComGoogleAndroidGmsPlayServicesIid940Library UP-TO-DATE
:android:prepareComGoogleAndroidGmsPlayServicesTasks940Library UP-TO-DATE
:android:prepareDebugDependencies
:android:compileDebugAidl
:android:compileDebugRenderscript UP-TO-DATE
:android:generateDebugBuildConfig UP-TO-DATE
:android:mergeDebugShaders
:android:compileDebugShaders
:android:generateDebugAssets
:android:mergeDebugAssets
:android:generateDebugResValues UP-TO-DATE
:android:generateDebugResources UP-TO-DATE
:android:mergeDebugResources
:android:processDebugManifest UP-TO-DATE
:android:processDebugResources
:android:generateDebugSources
:android:incrementalDebugJavaCompilationSafeguard
:android:compileDebugJavaWithJavac
:android:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/home/…/client/ui/generic/AnalyticsManager.java:217: warning: non-varargs call of varargs method with inexact argument type for last parameter;
sendGoogleTagEvent(name, DataLayer.mapOf(params));
^
cast to Object for a varargs call
cast to Object for a non-varargs call and to suppress this warning
/home/…/client/util/DynamicStringResourceSupplier.java:28: warning: non-varargs call of varargs method with inexact argument type for last parameter;
return stringId != 0 ? context.getString(stringId, formatArgs) : defaultValue;
^
cast to Object for a varargs call
cast to Object for a non-varargs call and to suppress this warning
/home/…/client/ui/quote/details/chartsettings/TimescalesTabViewController.java:110: error: cannot find symbol
Spinner rangeSpinner = (Spinner) view.findViewById(R.id.range_spinner);
^
symbol: variable range_spinner
location: class id
/home/…/client/ui/quote/details/chartsettings/TimescalesTabViewController.java:111: error: cannot find symbol
Spinner periodSpinner = (Spinner) view.findViewById(R.id.period_spinner);
^
symbol: variable period_spinner
location: class id
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
2 warnings
:android:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:android:compileDebugJavaWithJavac’.

Compilation failed; see the compiler error output for details.

  • 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: 1 mins 46.813 secs
Compilation failed; see the compiler error output for details.
18:20:31: External task execution finished ‘build’.[/details]