Could not find org.projectlombok:lombok:.

2,740 views
Skip to first unread message

Ilias P

unread,
Mar 18, 2021, 6:27:39 AM3/18/21
to Project Lombok
I am getting this message on a fresh project, where I have just added 6-7 classes and thats all. This is an android project (using android studio) and has an app and a library

Both modules have the dependency

compileOnly 'org.projectlombok:lombok:1.18.16'
annotationProcessor 'org.projectlombok:lombok:1.18.16'

and when i try to run the app, I get: 
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find org.projectlombok:lombok:.
     Required by:
         project :app

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

Thorsten Glaser

unread,
Mar 18, 2021, 10:41:58 AM3/18/21
to Project Lombok
On Wed, 17 Mar 2021, Ilias P wrote:

> - Declare repository providing the artifact, see the documentation at

You need the mavenCentral() in…

allprojects {
repositories {
google()
jcenter()
mavenCentral()
}

… in the top-level (not app) build.gradle file.

(Also, 1.18.18 ☺)

Good luck,
//mirabilos
--
Infrastrukturexperte • tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Telephon +49 228 54881-393 • Fax: +49 228 54881-235
HRB AG Bonn 5168 • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

*************************************************

Mit dem tarent-Newsletter nichts mehr verpassen: www.tarent.de/newsletter

*************************************************
Reply all
Reply to author
Forward
0 new messages