Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to find method 'org.gradle.api.file.ProjectLayout.files([Ljava/lang/Object;)Lorg/gradle/api/file/FileCollection;'

See original GitHub issue

Hi 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:closed
  • Created 5 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

Archinamoncommented, Nov 25, 2018

@luanalbineli try to update Android Gradle plugin to 3.0.1 at least or higher.

Alexufocommented, Jul 4, 2020

I was helped by gradle version downgrade 6>5

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found