The ProjectLayout.directoryProperty() method has been deprecated
Asked Answered
P

1

8

After update to gradle 5.2.1

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.

So I run ./gradlew :app:clean --warning-mode all

I have warnings in console:

The ProjectLayout.directoryProperty() method has been deprecated. This is scheduled to be removed in Gradle 6.0. Please use the ObjectFactory.directoryProperty() method instead.

The ProjectLayout.fileProperty() method has been deprecated. This is scheduled to be removed in Gradle 6.0. Please use the ObjectFactory.fileProperty() method instead.

Even if its a newly created empty Android project without libraries. Also searching for ProjectLayout doesnt give any result.

P.S I already know that its warning, not error. But I just need to know whats wrong with gradle again.

Pulchia answered 4/3, 2019 at 20:47 Comment(1)
This is probably just an internal API that the Android Gradle Tool uses, and they will update when they support 6.0 (they support 5.1 now IIRC)Gaddis
G
0

This is just an internal API that the Android Gradle Tool uses, and they will update when they support 6.0 (they support 5.1 now IIRC)

The issue is being tracked here (and is currently assigned to a Google Developer) https://issuetracker.google.com/issues/127538936

Gaddis answered 29/5, 2019 at 14:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.