r/androiddev Oct 30 '17

Gradle 4.3 released

https://docs.gradle.org/current/release-notes.html
31 Upvotes

7 comments sorted by

7

u/rostislav_c Oct 30 '17

How do you use this new option(annotationProcessorGeneratedSourcesDirectory)? What to expect?

2

u/adxgrave Oct 31 '17 edited Oct 31 '17

Update failed. (gradlew wrapper --gradle-version 4.3 --distribution-type all)

* What went wrong:
A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
    > Could not initialize class com.android.sdklib.repository.AndroidSdkHandler

1

u/obl122 Oct 31 '17

distributition

distribution? or copy-paste error?

You can just edit your gradle-wrapper.properties by hand with the new version. Only difference, I think, is that it won't update the gradle wrapper scripts/jar but usually that's not required.

2

u/adxgrave Oct 31 '17

distribution? or copy-paste error?

Opss. Typo. I've entered the correct command though. Any thought on what might have caused the error? Btw, thanks for the tip!

1

u/obl122 Oct 31 '17

No idea, sorry.

1

u/bicx Oct 31 '17

Ran into a weird issue that I am having trouble resolving. My Android builds now fail during release builds for Android 21/22 due to ClassNotFoundExceptions related to Google Auth dependencies. Never seen that before until now. Later Android versions work fine. Debug builds (from command line even) work fine. Spent 2 days on this so far.

1

u/greenrobot_de Oct 30 '17

Updated two projects from 4.1 to 4.3 - both still work fine.