Unable to find method 'org.gradle.api.file.ProjectLayout.files([Ljava/lang/Object;)Lorg/gradle/api/file/FileCollection;'
See original GitHub issueHi guys,
I’m trying to add Aspectj on my android application, but I’m currently facing an error when I try to sync the gradle files:
Unable to find method 'org.gradle.api.file.ProjectLayout.files([Ljava/lang/Object;)Lorg/gradle/api/file/FileCollection;'
I’m currently using AS 3.2.1 and Gradle 4.6
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Unable to find method 'org.gradle.api.file.ProjectLayout ...
The issue was that I upgraded to Android Studio v4, and seem like the download project was created using Android Studio v3. After...
Read more >Help/Discuss - Gradle Forums
The Sync output displays the following: ERROR: Unable to find method 'org.gradle.api.tasks.TaskInputs.file(Ljava/lang/Object;)Lorg/gradle ...
Read more >Working With Files - Gradle User Manual
The API has two parts to it: Specifying which files and directories to process. Specifying what to do with them. The File paths...
Read more >DirectoryProperty (Gradle API 7.6)
Returns a FileTree that allows the files and directories contained in this directory to be queried ... Methods inherited from interface org.gradle.api.file.
Read more >Authoring Tasks - Gradle User Manual
See Using a predicate. NO-SOURCE. Task did not need to execute its actions. Task has inputs and outputs, but no sources. For example,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@luanalbineli try to update Android Gradle plugin to 3.0.1 at least or higher.
I was helped by gradle version downgrade 6>5